Class PortRange
java.lang.Object
com.azure.resourcemanager.containerservice.models.PortRange
The port range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionportEnd()Get the portEnd property: The maximum port that is included in the range.Get the portStart property: The minimum port that is included in the range.protocol()Get the protocol property: The network protocol of the port.voidvalidate()Validates the instance.withPortEnd(Integer portEnd) Set the portEnd property: The maximum port that is included in the range.withPortStart(Integer portStart) Set the portStart property: The minimum port that is included in the range.withProtocol(Protocol protocol) Set the protocol property: The network protocol of the port.
-
Constructor Details
-
PortRange
public PortRange()Creates an instance of PortRange class.
-
-
Method Details
-
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
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
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
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
Get the protocol property: The network protocol of the port.- Returns:
- the protocol value.
-
withProtocol
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.
-