java.lang.Object
com.azure.resourcemanager.containerservice.models.PortRange

public final class PortRange extends Object
The port range.
  • Constructor Details

    • PortRange

      public PortRange()
      Creates an instance of PortRange class.
  • Method Details

    • portStart

      public Integer portStart()
      Get the portStart property: The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd.
      Returns:
      the portStart value.
    • withPortStart

      public PortRange withPortStart(Integer portStart)
      Set the portStart property: The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd.
      Parameters:
      portStart - the portStart value to set.
      Returns:
      the PortRange object itself.
    • portEnd

      public Integer portEnd()
      Get the portEnd property: The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart.
      Returns:
      the portEnd value.
    • withPortEnd

      public PortRange withPortEnd(Integer portEnd)
      Set the portEnd property: The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart.
      Parameters:
      portEnd - the portEnd value to set.
      Returns:
      the PortRange object itself.
    • protocol

      public Protocol protocol()
      Get the protocol property: The network protocol of the port.
      Returns:
      the protocol value.
    • withProtocol

      public PortRange withProtocol(Protocol protocol)
      Set the protocol property: The network protocol of the port.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the PortRange object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.