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 Details

    • NaptConfiguration

      public NaptConfiguration()
  • Method Details

    • enabled

      public NaptEnabled enabled()
      Get the enabled property: Whether NAPT is enabled for connections to this attached data network.
      Returns:
      the enabled value.
    • withEnabled

      public NaptConfiguration withEnabled(NaptEnabled enabled)
      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

      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 - 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

      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 - 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

      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. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi 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. 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

      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.