Class NaptConfiguration
java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration
The network address and port translation settings to use for the attached data network.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get the enabled property: Whether NAPT is enabled for connections to this attached data network.Get the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.Get the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds.Get the portRange property: Range of port numbers to use as translated ports on each translated address.Get the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for use by another pinhole.void
validate()
Validates the instance.withEnabled
(NaptEnabled enabled) Set the enabled property: Whether NAPT is enabled for connections to this attached data network.withPinholeLimits
(Integer pinholeLimits) Set the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.withPinholeTimeouts
(PinholeTimeouts pinholeTimeouts) Set the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds.withPortRange
(PortRange portRange) Set the portRange property: Range of port numbers to use as translated ports on each translated address.withPortReuseHoldTime
(PortReuseHoldTimes portReuseHoldTime) Set the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for use by another pinhole.
-
Constructor Details
-
NaptConfiguration
public NaptConfiguration()
-
-
Method Details
-
enabled
Get the enabled property: Whether NAPT is enabled for connections to this attached data network.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether NAPT is enabled for connections to this attached data network.- Parameters:
enabled
- the enabled value to set.- Returns:
- the NaptConfiguration object itself.
-
portRange
Get the portRange property: 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.).- Returns:
- the portRange value.
-
withPortRange
Set the portRange property: 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.).- Parameters:
portRange
- the portRange value to set.- Returns:
- the NaptConfiguration object itself.
-
portReuseHoldTime
Get the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for use by another pinhole. All hold times must be minimum 1 second.- Returns:
- the portReuseHoldTime value.
-
withPortReuseHoldTime
Set the portReuseHoldTime property: The minimum time (in seconds) that will pass before a port that was used by a closed pinhole can be recycled for use by another pinhole. All hold times must be minimum 1 second.- Parameters:
portReuseHoldTime
- the portReuseHoldTime value to set.- Returns:
- the NaptConfiguration object itself.
-
pinholeLimits
Get the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface.- Returns:
- the pinholeLimits value.
-
withPinholeLimits
Set the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface.- Parameters:
pinholeLimits
- the pinholeLimits value to set.- Returns:
- the NaptConfiguration object itself.
-
pinholeTimeouts
Get the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.- Returns:
- the pinholeTimeouts value.
-
withPinholeTimeouts
Set the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.- Parameters:
pinholeTimeouts
- the pinholeTimeouts value to set.- Returns:
- the NaptConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-