Class AvailabilityZonePeers
java.lang.Object
com.azure.resourcemanager.resources.models.AvailabilityZonePeers
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailabilityZonePeers>
public final class AvailabilityZonePeers
extends Object
implements com.azure.json.JsonSerializable<AvailabilityZonePeers>
List of availability zones shared by the subscriptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZone property: The availabilityZone.static AvailabilityZonePeersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailabilityZonePeers from the JsonReader.peers()Get the peers property: Details of shared availability zone.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the peers property: Details of shared availability zone.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AvailabilityZonePeers
public AvailabilityZonePeers()Creates an instance of AvailabilityZonePeers class.
-
-
Method Details
-
availabilityZone
Get the availabilityZone property: The availabilityZone.- Returns:
- the availabilityZone value.
-
peers
Get the peers property: Details of shared availability zone.- Returns:
- the peers value.
-
withPeers
Set the peers property: Details of shared availability zone.- Parameters:
peers- the peers value to set.- Returns:
- the AvailabilityZonePeers object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AvailabilityZonePeers>- Throws:
IOException
-
fromJson
public static AvailabilityZonePeers fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailabilityZonePeers from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailabilityZonePeers 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 AvailabilityZonePeers.
-