Class PortRange
java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.PortRange
Range of port numbers to use as translated ports on each translated address. If not specified and NAPT is enabled,
this range defaults to 1,024 - 49,999. (Ports under 1,024 should not be used because these are special purpose ports
reserved by IANA. Ports 50,000 and above are reserved for non-NAPT use.).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmaxPort()
Get the maxPort property: The maximum port number.minPort()
Get the minPort property: The minimum port number.void
validate()
Validates the instance.withMaxPort
(Integer maxPort) Set the maxPort property: The maximum port number.withMinPort
(Integer minPort) Set the minPort property: The minimum port number.
-
Constructor Details
-
PortRange
public PortRange()
-
-
Method Details
-
minPort
Get the minPort property: The minimum port number.- Returns:
- the minPort value.
-
withMinPort
Set the minPort property: The minimum port number.- Parameters:
minPort
- the minPort value to set.- Returns:
- the PortRange object itself.
-
maxPort
Get the maxPort property: The maximum port number.- Returns:
- the maxPort value.
-
withMaxPort
Set the maxPort property: The maximum port number.- Parameters:
maxPort
- the maxPort value to set.- Returns:
- the PortRange object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-