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 Summary
ConstructorsConstructorDescriptionCreates an instance of FilePathAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZone property: The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region.static FilePathAvailabilityRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FilePathAvailabilityRequest from the JsonReader.name()Get the name property: File path to verify.subnetId()Get the subnetId property: The Azure Resource URI for a delegated subnet.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.Set the name property: File path to verify.withSubnetId(String subnetId) Set the subnetId property: The Azure Resource URI for a delegated subnet.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
-
FilePathAvailabilityRequest
public FilePathAvailabilityRequest()Creates an instance of FilePathAvailabilityRequest class.
-
-
Method Details
-
name
Get the name property: File path to verify.- Returns:
- the name value.
-
withName
Set the name property: File path to verify.- Parameters:
name- the name value to set.- Returns:
- the FilePathAvailabilityRequest object itself.
-
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-