VpnNatRuleMapping Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VpnNatRuleMapping

Implements

public final class VpnNatRuleMapping
implements JsonSerializable<VpnNatRuleMapping>

Vpn NatRule mapping.

Constructor Summary

Constructor Description
VpnNatRuleMapping()

Creates an instance of VpnNatRuleMapping class.

Method Summary

Modifier and Type Method and Description
String addressSpace()

Get the addressSpace property: Address space for Vpn NatRule mapping.

static VpnNatRuleMapping fromJson(JsonReader jsonReader)

Reads an instance of VpnNatRuleMapping from the JsonReader.

String portRange()

Get the portRange property: Port range for Vpn NatRule mapping.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VpnNatRuleMapping withAddressSpace(String addressSpace)

Set the addressSpace property: Address space for Vpn NatRule mapping.

VpnNatRuleMapping withPortRange(String portRange)

Set the portRange property: Port range for Vpn NatRule mapping.

Methods inherited from java.lang.Object

Constructor Details

VpnNatRuleMapping

public VpnNatRuleMapping()

Creates an instance of VpnNatRuleMapping class.

Method Details

addressSpace

public String addressSpace()

Get the addressSpace property: Address space for Vpn NatRule mapping.

Returns:

the addressSpace value.

fromJson

public static VpnNatRuleMapping fromJson(JsonReader jsonReader)

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.

portRange

public String portRange()

Get the portRange property: Port range for Vpn NatRule mapping.

Returns:

the portRange value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to