Class CheckZonePeersResultInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.CheckZonePeersResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckZonePeersResultInner>
public final class CheckZonePeersResultInner
extends Object
implements com.azure.json.JsonSerializable<CheckZonePeersResultInner>
Result of the Check zone peers operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckZonePeersResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZonePeers property: The Availability Zones shared by the subscriptions.static CheckZonePeersResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckZonePeersResultInner from the JsonReader.location()Get the location property: the location of the subscription.Get the subscriptionId property: The subscription ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvailabilityZonePeers(List<AvailabilityZonePeers> availabilityZonePeers) Set the availabilityZonePeers property: The Availability Zones shared by the subscriptions.withLocation(String location) Set the location property: the location of the subscription.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
-
CheckZonePeersResultInner
public CheckZonePeersResultInner()Creates an instance of CheckZonePeersResultInner class.
-
-
Method Details
-
subscriptionId
Get the subscriptionId property: The subscription ID.- Returns:
- the subscriptionId value.
-
location
Get the location property: the location of the subscription.- Returns:
- the location value.
-
withLocation
Set the location property: the location of the subscription.- Parameters:
location- the location value to set.- Returns:
- the CheckZonePeersResultInner object itself.
-
availabilityZonePeers
Get the availabilityZonePeers property: The Availability Zones shared by the subscriptions.- Returns:
- the availabilityZonePeers value.
-
withAvailabilityZonePeers
public CheckZonePeersResultInner withAvailabilityZonePeers(List<AvailabilityZonePeers> availabilityZonePeers) Set the availabilityZonePeers property: The Availability Zones shared by the subscriptions.- Parameters:
availabilityZonePeers- the availabilityZonePeers value to set.- Returns:
- the CheckZonePeersResultInner 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<CheckZonePeersResultInner>- Throws:
IOException
-
fromJson
public static CheckZonePeersResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckZonePeersResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CheckZonePeersResultInner 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 CheckZonePeersResultInner.
-