Class CheckZonePeersRequest
java.lang.Object
com.azure.resourcemanager.resources.models.CheckZonePeersRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckZonePeersRequest>
public final class CheckZonePeersRequest
extends Object
implements com.azure.json.JsonSerializable<CheckZonePeersRequest>
Check zone peers request parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckZonePeersRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckZonePeersRequest from the JsonReader.location()Get the location property: The Microsoft location.Get the subscriptionIds property: The peer Microsoft Azure subscription ID.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: The Microsoft location.withSubscriptionIds(List<String> subscriptionIds) Set the subscriptionIds property: The peer Microsoft Azure subscription ID.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
-
CheckZonePeersRequest
public CheckZonePeersRequest()Creates an instance of CheckZonePeersRequest class.
-
-
Method Details
-
location
Get the location property: The Microsoft location.- Returns:
- the location value.
-
withLocation
Set the location property: The Microsoft location.- Parameters:
location- the location value to set.- Returns:
- the CheckZonePeersRequest object itself.
-
subscriptionIds
Get the subscriptionIds property: The peer Microsoft Azure subscription ID.- Returns:
- the subscriptionIds value.
-
withSubscriptionIds
Set the subscriptionIds property: The peer Microsoft Azure subscription ID.- Parameters:
subscriptionIds- the subscriptionIds value to set.- Returns:
- the CheckZonePeersRequest 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<CheckZonePeersRequest>- Throws:
IOException
-
fromJson
public static CheckZonePeersRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckZonePeersRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CheckZonePeersRequest 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 CheckZonePeersRequest.
-