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 PortReuseHoldTimes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.void
validate()
Validates the instance.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.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.
-
-
-
Method Detail
-
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.
-
-