Class DeletedShare

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

public final class DeletedShare extends Object implements com.azure.json.JsonSerializable<DeletedShare>
The deleted share to be restored.
  • Constructor Details

    • DeletedShare

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

    • deletedShareName

      public String deletedShareName()
      Get the deletedShareName property: Required. Identify the name of the deleted share that will be restored.
      Returns:
      the deletedShareName value.
    • withDeletedShareName

      public DeletedShare withDeletedShareName(String deletedShareName)
      Set the deletedShareName property: Required. Identify the name of the deleted share that will be restored.
      Parameters:
      deletedShareName - the deletedShareName value to set.
      Returns:
      the DeletedShare object itself.
    • deletedShareVersion

      public String deletedShareVersion()
      Get the deletedShareVersion property: Required. Identify the version of the deleted share that will be restored.
      Returns:
      the deletedShareVersion value.
    • withDeletedShareVersion

      public DeletedShare withDeletedShareVersion(String deletedShareVersion)
      Set the deletedShareVersion property: Required. Identify the version of the deleted share that will be restored.
      Parameters:
      deletedShareVersion - the deletedShareVersion value to set.
      Returns:
      the DeletedShare 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<DeletedShare>
      Throws:
      IOException
    • fromJson

      public static DeletedShare fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DeletedShare from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DeletedShare 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 DeletedShare.