Class PortReuseHoldTimes
java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.PortReuseHoldTimes
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
-
Method Summary
Modifier and TypeMethodDescriptiontcp()
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
validate()
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.
-
Constructor Details
-
PortReuseHoldTimes
public PortReuseHoldTimes()
-
-
Method Details
-
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
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
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
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.
-