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
ConstructorsConstructorDescriptionCreates an instance of DeletedAccountProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Creation time of the deleted account.Get the deletionTime property: Deletion time of the deleted account.static DeletedAccountPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeletedAccountProperties from the JsonReader.location()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class 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
-
DeletedAccountProperties
public DeletedAccountProperties()Creates an instance of DeletedAccountProperties class.
-
-
Method Details
-
storageAccountResourceId
Get the storageAccountResourceId property: Full resource id of the original storage account.- Returns:
- the storageAccountResourceId value.
-
location
Get the location property: Location of the deleted account.- Returns:
- the location value.
-
restoreReference
Get the restoreReference property: Can be used to attempt recovering this deleted account via PutStorageAccount API.- Returns:
- the restoreReference value.
-
creationTime
Get the creationTime property: Creation time of the deleted account.- Returns:
- the creationTime value.
-
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
- Specified by:
toJsonin interfacecom.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.
-