Class VpnGatewayIpConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.VpnGatewayIpConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnGatewayIpConfiguration>
public final class VpnGatewayIpConfiguration
extends Object
implements com.azure.json.JsonSerializable<VpnGatewayIpConfiguration>
IP Configuration of a VPN Gateway Resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VpnGatewayIpConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VpnGatewayIpConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VpnGatewayIpConfiguration from the JsonReader.id()
Get the id property: The identifier of the IP configuration for a VPN Gateway.Get the privateIpAddress property: The private IP address of this IP configuration.Get the publicIpAddress property: The public IP address of this IP configuration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the id property: The identifier of the IP configuration for a VPN Gateway.withPrivateIpAddress
(String privateIpAddress) Set the privateIpAddress property: The private IP address of this IP configuration.withPublicIpAddress
(String publicIpAddress) Set the publicIpAddress property: The public IP address of this IP configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VpnGatewayIpConfiguration
public VpnGatewayIpConfiguration()Creates an instance of VpnGatewayIpConfiguration class.
-
-
Method Details
-
id
Get the id property: The identifier of the IP configuration for a VPN Gateway.- Returns:
- the id value.
-
withId
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.
-
publicIpAddress
Get the publicIpAddress property: The public IP address of this IP configuration.- Returns:
- the publicIpAddress value.
-
withPublicIpAddress
Set the publicIpAddress property: The public IP address of this IP configuration.- Parameters:
publicIpAddress
- the publicIpAddress value to set.- Returns:
- the VpnGatewayIpConfiguration object itself.
-
privateIpAddress
Get the privateIpAddress property: The private IP address of this IP configuration.- Returns:
- the privateIpAddress value.
-
withPrivateIpAddress
Set the privateIpAddress property: The private IP address of this IP configuration.- Parameters:
privateIpAddress
- the privateIpAddress value to set.- Returns:
- the VpnGatewayIpConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VpnGatewayIpConfiguration>
- Throws:
IOException
-
fromJson
public static VpnGatewayIpConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-