VpnGatewayIpConfiguration Class

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

Implements

public final class VpnGatewayIpConfiguration
implements JsonSerializable<VpnGatewayIpConfiguration>

IP Configuration of a VPN Gateway Resource.

Constructor Summary

Constructor Description
VpnGatewayIpConfiguration()

Creates an instance of VpnGatewayIpConfiguration class.

Method Summary

Modifier and Type Method and Description
static VpnGatewayIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VpnGatewayIpConfiguration from the JsonReader.

String id()

Get the id property: The identifier of the IP configuration for a VPN Gateway.

String privateIpAddress()

Get the privateIpAddress property: The private IP address of this IP configuration.

String publicIpAddress()

Get the publicIpAddress property: The public IP address of this IP configuration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VpnGatewayIpConfiguration withId(String id)

Set the id property: The identifier of the IP configuration for a VPN Gateway.

VpnGatewayIpConfiguration withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: The private IP address of this IP configuration.

VpnGatewayIpConfiguration withPublicIpAddress(String publicIpAddress)

Set the publicIpAddress property: The public IP address of this IP configuration.

Methods inherited from java.lang.Object

Constructor Details

VpnGatewayIpConfiguration

public VpnGatewayIpConfiguration()

Creates an instance of VpnGatewayIpConfiguration class.

Method Details

fromJson

public static VpnGatewayIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VpnGatewayIpConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnGatewayIpConfiguration 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 VpnGatewayIpConfiguration.

id

public String id()

Get the id property: The identifier of the IP configuration for a VPN Gateway.

Returns:

the id value.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: The private IP address of this IP configuration.

Returns:

the privateIpAddress value.

publicIpAddress

public String publicIpAddress()

Get the publicIpAddress property: The public IP address of this IP configuration.

Returns:

the publicIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public VpnGatewayIpConfiguration withId(String id)

Set the id property: The identifier of the IP configuration for a VPN Gateway.

Parameters:

id - the id value to set.

Returns:

the VpnGatewayIpConfiguration object itself.

withPrivateIpAddress

public VpnGatewayIpConfiguration withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: The private IP address of this IP configuration.

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the VpnGatewayIpConfiguration object itself.

withPublicIpAddress

public VpnGatewayIpConfiguration withPublicIpAddress(String publicIpAddress)

Set the publicIpAddress property: The public IP address of this IP configuration.

Parameters:

publicIpAddress - the publicIpAddress value to set.

Returns:

the VpnGatewayIpConfiguration object itself.

Applies to