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 Details

    • CheckZonePeersRequest

      public CheckZonePeersRequest()
      Creates an instance of CheckZonePeersRequest class.
  • Method Details

    • location

      public String location()
      Get the location property: The Microsoft location.
      Returns:
      the location value.
    • withLocation

      public CheckZonePeersRequest withLocation(String location)
      Set the location property: The Microsoft location.
      Parameters:
      location - the location value to set.
      Returns:
      the CheckZonePeersRequest object itself.
    • subscriptionIds

      public List<String> subscriptionIds()
      Get the subscriptionIds property: The peer Microsoft Azure subscription ID.
      Returns:
      the subscriptionIds value.
    • withSubscriptionIds

      public CheckZonePeersRequest withSubscriptionIds(List<String> subscriptionIds)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.