Class FilePathAvailabilityRequest

java.lang.Object
com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<FilePathAvailabilityRequest>

public final class FilePathAvailabilityRequest extends Object implements com.azure.json.JsonSerializable<FilePathAvailabilityRequest>
File path availability request content - availability is based on the name and the subnetId.
  • Constructor Details

    • FilePathAvailabilityRequest

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

    • name

      public String name()
      Get the name property: File path to verify.
      Returns:
      the name value.
    • withName

      public FilePathAvailabilityRequest withName(String name)
      Set the name property: File path to verify.
      Parameters:
      name - the name value to set.
      Returns:
      the FilePathAvailabilityRequest object itself.
    • subnetId

      public String subnetId()
      Get the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes.
      Returns:
      the subnetId value.
    • withSubnetId

      public FilePathAvailabilityRequest withSubnetId(String subnetId)
      Set the subnetId property: The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes.
      Parameters:
      subnetId - the subnetId value to set.
      Returns:
      the FilePathAvailabilityRequest object itself.
    • availabilityZone

      public String availabilityZone()
      Get the availabilityZone property: The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed.
      Returns:
      the availabilityZone value.
    • withAvailabilityZone

      public FilePathAvailabilityRequest withAvailabilityZone(String availabilityZone)
      Set the availabilityZone property: The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed.
      Parameters:
      availabilityZone - the availabilityZone value to set.
      Returns:
      the FilePathAvailabilityRequest 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<FilePathAvailabilityRequest>
      Throws:
      IOException
    • fromJson

      public static FilePathAvailabilityRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FilePathAvailabilityRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FilePathAvailabilityRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the FilePathAvailabilityRequest.