Class NaptConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.mobilenetwork.models.NaptConfiguration
-
public final class NaptConfiguration extends Object
The Network Address and Port Translation settings to use for the attached data network.
-
-
Constructor Summary
Constructors Constructor Description NaptConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NaptEnabled
enabled()
Get the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork.Integer
pinholeLimits()
Get the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.PinholeTimeouts
pinholeTimeouts()
Get the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds.PortRange
portRange()
Get the portRange property: Range of port numbers to use as translated ports on each translated address.PortReuseHoldTimes
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.void
validate()
Validates the instance.NaptConfiguration
withEnabled(NaptEnabled enabled)
Set the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork.NaptConfiguration
withPinholeLimits(Integer pinholeLimits)
Set the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.NaptConfiguration
withPinholeTimeouts(PinholeTimeouts pinholeTimeouts)
Set the pinholeTimeouts property: Expiry times of inactive NAPT pinholes, in seconds.NaptConfiguration
withPortRange(PortRange portRange)
Set the portRange property: Range of port numbers to use as translated ports on each translated address.NaptConfiguration
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.
-
-
-
Method Detail
-
enabled
public NaptEnabled enabled()
Get the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork.- Returns:
- the enabled value.
-
withEnabled
public NaptConfiguration withEnabled(NaptEnabled enabled)
Set the enabled property: Whether NAPT is enabled for connections to this attachedDataNetwork.- Parameters:
enabled
- the enabled value to set.- Returns:
- the NaptConfiguration object itself.
-
portRange
public PortRange 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 - 65,535. (Ports under 1,024 should not be used because these are special purpose ports reserved by IANA.).- Returns:
- the portRange value.
-
withPortRange
public NaptConfiguration withPortRange(PortRange portRange)
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 - 65,535. (Ports under 1,024 should not be used because these are special purpose ports reserved by IANA.).- Parameters:
portRange
- the portRange value to set.- Returns:
- the NaptConfiguration object itself.
-
portReuseHoldTime
public PortReuseHoldTimes 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
public NaptConfiguration 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. All hold times must be minimum 1 second.- Parameters:
portReuseHoldTime
- the portReuseHoldTime value to set.- Returns:
- the NaptConfiguration object itself.
-
pinholeLimits
public Integer pinholeLimits()
Get the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.- Returns:
- the pinholeLimits value.
-
withPinholeLimits
public NaptConfiguration withPinholeLimits(Integer pinholeLimits)
Set the pinholeLimits property: Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.- Parameters:
pinholeLimits
- the pinholeLimits value to set.- Returns:
- the NaptConfiguration object itself.
-
pinholeTimeouts
public PinholeTimeouts 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
public NaptConfiguration withPinholeTimeouts(PinholeTimeouts pinholeTimeouts)
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.
-
-