Class PrivateAccessSubnet
java.lang.Object
com.azure.resourcemanager.appservice.models.PrivateAccessSubnet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateAccessSubnet>
public final class PrivateAccessSubnet
extends Object
implements com.azure.json.JsonSerializable<PrivateAccessSubnet>
Description of a Virtual Network subnet that is useable for private site access.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateAccessSubnet
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateAccessSubnet from the JsonReader.key()
Get the key property: The key (ID) of the subnet.name()
Get the name property: The name of the subnet.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the key property: The key (ID) of the subnet.Set the name property: The name of the subnet.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
-
PrivateAccessSubnet
public PrivateAccessSubnet()Creates an instance of PrivateAccessSubnet class.
-
-
Method Details
-
name
Get the name property: The name of the subnet.- Returns:
- the name value.
-
withName
Set the name property: The name of the subnet.- Parameters:
name
- the name value to set.- Returns:
- the PrivateAccessSubnet object itself.
-
key
Get the key property: The key (ID) of the subnet.- Returns:
- the key value.
-
withKey
Set the key property: The key (ID) of the subnet.- Parameters:
key
- the key value to set.- Returns:
- the PrivateAccessSubnet 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<PrivateAccessSubnet>
- Throws:
IOException
-
fromJson
Reads an instance of PrivateAccessSubnet from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PrivateAccessSubnet 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 PrivateAccessSubnet.
-