Class VpnNatRuleMapping
java.lang.Object
com.azure.resourcemanager.network.models.VpnNatRuleMapping
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnNatRuleMapping>
public final class VpnNatRuleMapping
extends Object
implements com.azure.json.JsonSerializable<VpnNatRuleMapping>
Vpn NatRule mapping.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressSpace property: Address space for Vpn NatRule mapping.static VpnNatRuleMappingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VpnNatRuleMapping from the JsonReader.Get the portRange property: Port range for Vpn NatRule mapping.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressSpace(String addressSpace) Set the addressSpace property: Address space for Vpn NatRule mapping.withPortRange(String portRange) Set the portRange property: Port range for Vpn NatRule mapping.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VpnNatRuleMapping
public VpnNatRuleMapping()Creates an instance of VpnNatRuleMapping class.
-
-
Method Details
-
addressSpace
Get the addressSpace property: Address space for Vpn NatRule mapping.- Returns:
- the addressSpace value.
-
withAddressSpace
Set the addressSpace property: Address space for Vpn NatRule mapping.- Parameters:
addressSpace- the addressSpace value to set.- Returns:
- the VpnNatRuleMapping object itself.
-
portRange
Get the portRange property: Port range for Vpn NatRule mapping.- Returns:
- the portRange value.
-
withPortRange
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VpnNatRuleMapping>- Throws:
IOException
-
fromJson
Reads an instance of VpnNatRuleMapping from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VpnNatRuleMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VpnNatRuleMapping.
-