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()Creates an instance of PinholeTimeouts class.
-
-
Method Details
-
tcp
Get the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.- Returns:
- the tcp value.
-
withTcp
Set the tcp property: Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.- 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 30 seconds.- Returns:
- the udp value.
-
withUdp
Set the udp property: Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds.- 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 30 seconds.- Returns:
- the icmp value.
-
withIcmp
Set the icmp property: Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds.- 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.
-