Class PortReuseHoldTimes

java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.PortReuseHoldTimes

public final class PortReuseHoldTimes extends Object
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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    tcp()
    Get the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
    udp()
    Get the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
    void
    Validates the instance.
    Set the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
    Set the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortReuseHoldTimes

      public PortReuseHoldTimes()
  • Method Details

    • tcp

      public Integer tcp()
      Get the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused. Default for TCP is 2 minutes.
      Returns:
      the tcp value.
    • withTcp

      public PortReuseHoldTimes withTcp(Integer tcp)
      Set the tcp property: Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused. Default for TCP is 2 minutes.
      Parameters:
      tcp - the tcp value to set.
      Returns:
      the PortReuseHoldTimes object itself.
    • udp

      public Integer udp()
      Get the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused. Default for UDP is 1 minute.
      Returns:
      the udp value.
    • withUdp

      public PortReuseHoldTimes withUdp(Integer udp)
      Set the udp property: Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused. Default for UDP is 1 minute.
      Parameters:
      udp - the udp value to set.
      Returns:
      the PortReuseHoldTimes object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.