Class VpnNatRuleMapping
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VpnNatRuleMapping
-
public final class VpnNatRuleMapping extends Object
Vpn NatRule mapping.
-
-
Constructor Summary
Constructors Constructor Description VpnNatRuleMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddressSpace()Get the addressSpace property: Address space for Vpn NatRule mapping.StringportRange()Get the portRange property: Port range for Vpn NatRule mapping.voidvalidate()Validates the instance.VpnNatRuleMappingwithAddressSpace(String addressSpace)Set the addressSpace property: Address space for Vpn NatRule mapping.VpnNatRuleMappingwithPortRange(String portRange)Set the portRange property: Port range for Vpn NatRule mapping.
-
-
-
Method Detail
-
addressSpace
public String addressSpace()
Get the addressSpace property: Address space for Vpn NatRule mapping.- Returns:
- the addressSpace value.
-
withAddressSpace
public VpnNatRuleMapping withAddressSpace(String addressSpace)
Set the addressSpace property: Address space for Vpn NatRule mapping.- Parameters:
addressSpace- the addressSpace value to set.- Returns:
- the VpnNatRuleMapping object itself.
-
portRange
public String portRange()
Get the portRange property: Port range for Vpn NatRule mapping.- Returns:
- the portRange value.
-
withPortRange
public VpnNatRuleMapping withPortRange(String portRange)
Set the portRange property: Port range for Vpn NatRule mapping.- Parameters:
portRange- the portRange value to set.- Returns:
- the VpnNatRuleMapping object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-