Class DeletedSecret
java.lang.Object
com.azure.security.keyvault.secrets.models.KeyVaultSecret
com.azure.security.keyvault.secrets.models.DeletedSecret
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultSecret>
Deleted Secret is the resource consisting of name, recovery id, deleted date, scheduled purge date and its attributes
inherited from
KeyVaultSecret.
It is managed by Secret Service.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeletedSecretfromJson(com.azure.json.JsonReader jsonReader) Reads an instance ofDeletedSecretfrom the JsonReader.Get the deleted UTC time.Get the recoveryId identifier.Get the scheduled purge UTC time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.security.keyvault.secrets.models.KeyVaultSecret
getId, getName, getProperties, getValue, setPropertiesMethods 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
-
DeletedSecret
public DeletedSecret()Creates a new instance ofDeletedSecret.
-
-
Method Details
-
getRecoveryId
Get the recoveryId identifier.- Returns:
- the recoveryId identifier.
-
getScheduledPurgeDate
Get the scheduled purge UTC time.- Returns:
- the scheduledPurgeDate UTC time.
-
getDeletedOn
Get the deleted UTC time.- Returns:
- the deletedDate UTC time.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultSecret>- Overrides:
toJsonin classKeyVaultSecret- Throws:
IOException
-
fromJson
Reads an instance ofDeletedSecretfrom the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of
DeletedSecretif 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 theDeletedSecret.
-