Class VnetGatewayProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.VnetGatewayProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VnetGatewayProperties>
public final class VnetGatewayProperties
extends Object
implements com.azure.json.JsonSerializable<VnetGatewayProperties>
VnetGateway resource specific properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VnetGatewayProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VnetGatewayProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.vnetName()
Get the vnetName property: The Virtual Network name.Get the vpnPackageUri property: The URI where the VPN package can be downloaded.withVnetName
(String vnetName) Set the vnetName property: The Virtual Network name.withVpnPackageUri
(String vpnPackageUri) Set the vpnPackageUri property: The URI where the VPN package can be downloaded.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
-
VnetGatewayProperties
public VnetGatewayProperties()Creates an instance of VnetGatewayProperties class.
-
-
Method Details
-
vnetName
Get the vnetName property: The Virtual Network name.- Returns:
- the vnetName value.
-
withVnetName
Set the vnetName property: The Virtual Network name.- Parameters:
vnetName
- the vnetName value to set.- Returns:
- the VnetGatewayProperties object itself.
-
vpnPackageUri
Get the vpnPackageUri property: The URI where the VPN package can be downloaded.- Returns:
- the vpnPackageUri value.
-
withVpnPackageUri
Set the vpnPackageUri property: The URI where the VPN package can be downloaded.- Parameters:
vpnPackageUri
- the vpnPackageUri value to set.- Returns:
- the VnetGatewayProperties 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<VnetGatewayProperties>
- Throws:
IOException
-
fromJson
public static VnetGatewayProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VnetGatewayProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VnetGatewayProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the VnetGatewayProperties.
-