Class PinholeTimeouts
java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.PinholeTimeouts
Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionicmp()
Get the icmp property: Pinhole timeout for ICMP pinholes in seconds.tcp()
Get the tcp property: Pinhole timeout for TCP pinholes in seconds.udp()
Get the udp property: Pinhole timeout for UDP pinholes in seconds.void
validate()
Validates the instance.Set the icmp property: Pinhole timeout for ICMP pinholes in seconds.Set the tcp property: Pinhole timeout for TCP pinholes in seconds.Set the udp property: Pinhole timeout for UDP pinholes in seconds.
-
Constructor Details
-
PinholeTimeouts
public PinholeTimeouts()
-
-
Method Details
-
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
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
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
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
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
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.
-