Class PinholeTimeouts

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

public final class PinholeTimeouts extends Object
Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.
  • Constructor Details

    • PinholeTimeouts

      public PinholeTimeouts()
  • Method Details

    • tcp

      public Integer tcp()
      Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes, as per RFC 5382 section 5.
      Returns:
      the tcp value.
    • withTcp

      public PinholeTimeouts withTcp(Integer tcp)
      Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 2 hours 4 minutes, as per RFC 5382 section 5.
      Parameters:
      tcp - the tcp value to set.
      Returns:
      the PinholeTimeouts object itself.
    • udp

      public Integer udp()
      Get the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 section 4.3.
      Returns:
      the udp value.
    • withUdp

      public PinholeTimeouts withUdp(Integer udp)
      Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 5 minutes, as per RFC 4787 section 4.3.
      Parameters:
      udp - the udp value to set.
      Returns:
      the PinholeTimeouts object itself.
    • icmp

      public Integer icmp()
      Get the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds, as per RFC 5508 section 3.2.
      Returns:
      the icmp value.
    • withIcmp

      public PinholeTimeouts withIcmp(Integer icmp)
      Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 60 seconds, as per RFC 5508 section 3.2.
      Parameters:
      icmp - the icmp value to set.
      Returns:
      the PinholeTimeouts object itself.
    • validate

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