Class DeletedAccountProperties

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

public final class DeletedAccountProperties extends Object implements com.azure.json.JsonSerializable<DeletedAccountProperties>
Attributes of a deleted storage account.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DeletedAccountProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the creationTime property: Creation time of the deleted account.
    Get the deletionTime property: Deletion time of the deleted account.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DeletedAccountProperties from the JsonReader.
    Get the location property: Location of the deleted account.
    Get the restoreReference property: Can be used to attempt recovering this deleted account via PutStorageAccount API.
    Get the storageAccountResourceId property: Full resource id of the original storage account.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DeletedAccountProperties

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

    • storageAccountResourceId

      public String storageAccountResourceId()
      Get the storageAccountResourceId property: Full resource id of the original storage account.
      Returns:
      the storageAccountResourceId value.
    • location

      public String location()
      Get the location property: Location of the deleted account.
      Returns:
      the location value.
    • restoreReference

      public String restoreReference()
      Get the restoreReference property: Can be used to attempt recovering this deleted account via PutStorageAccount API.
      Returns:
      the restoreReference value.
    • creationTime

      public String creationTime()
      Get the creationTime property: Creation time of the deleted account.
      Returns:
      the creationTime value.
    • deletionTime

      public String deletionTime()
      Get the deletionTime property: Deletion time of the deleted account.
      Returns:
      the deletionTime value.
    • 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<DeletedAccountProperties>
      Throws:
      IOException
    • fromJson

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