Class PrivateAccessVirtualNetwork
java.lang.Object
com.azure.resourcemanager.appservice.models.PrivateAccessVirtualNetwork
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateAccessVirtualNetwork>
public final class PrivateAccessVirtualNetwork
extends Object
implements com.azure.json.JsonSerializable<PrivateAccessVirtualNetwork>
Description of a Virtual Network that is useable for private site access.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PrivateAccessVirtualNetwork class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateAccessVirtualNetwork
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateAccessVirtualNetwork from the JsonReader.key()
Get the key property: The key (ID) of the Virtual Network.name()
Get the name property: The name of the Virtual Network.Get the resourceId property: The ARM uri of the Virtual Network.subnets()
Get the subnets property: A List of subnets that access is allowed to on this Virtual Network.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the key property: The key (ID) of the Virtual Network.Set the name property: The name of the Virtual Network.withResourceId
(String resourceId) Set the resourceId property: The ARM uri of the Virtual Network.withSubnets
(List<PrivateAccessSubnet> subnets) Set the subnets property: A List of subnets that access is allowed to on this Virtual Network.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
-
PrivateAccessVirtualNetwork
public PrivateAccessVirtualNetwork()Creates an instance of PrivateAccessVirtualNetwork class.
-
-
Method Details
-
name
Get the name property: The name of the Virtual Network.- Returns:
- the name value.
-
withName
Set the name property: The name of the Virtual Network.- Parameters:
name
- the name value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
key
Get the key property: The key (ID) of the Virtual Network.- Returns:
- the key value.
-
withKey
Set the key property: The key (ID) of the Virtual Network.- Parameters:
key
- the key value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
resourceId
Get the resourceId property: The ARM uri of the Virtual Network.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The ARM uri of the Virtual Network.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
subnets
Get the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.- Returns:
- the subnets value.
-
withSubnets
Set the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.- Parameters:
subnets
- the subnets value to set.- Returns:
- the PrivateAccessVirtualNetwork 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<PrivateAccessVirtualNetwork>
- Throws:
IOException
-
fromJson
public static PrivateAccessVirtualNetwork fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PrivateAccessVirtualNetwork from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PrivateAccessVirtualNetwork 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 PrivateAccessVirtualNetwork.
-