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 DeletedSecret
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance ofDeletedSecret
from the JsonReader.Get the deleted UTC time.Get the recoveryId identifier.Get the scheduled purge UTC time.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Writes the object to the passedJsonWriter
.Methods inherited from class com.azure.security.keyvault.secrets.models.KeyVaultSecret
getId, getName, getProperties, getValue, setProperties
-
Constructor Details
-
DeletedSecret
public DeletedSecret()
-
-
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
Description copied from interface:com.azure.json.JsonSerializable
Writes the object to the passedJsonWriter
.The contract for writing JSON to
JsonWriter
is that the object being written will handle opening and closing its own JSON object. So, for objects calling out to otherJsonSerializable
objects for serialization, they'll write the field name only then pass theJsonWriter
to the otherJsonSerializable
object. This way objects writing JSON will be self-encapsulated for writing properly formatted JSON.- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<KeyVaultSecret>
- Overrides:
toJson
in classKeyVaultSecret
- Parameters:
jsonWriter
- Where the object's JSON will be written.- Returns:
- The
JsonWriter
where the JSON was written. - Throws:
IOException
- If the object fails to be written to thejsonWriter
.
-
fromJson
Reads an instance ofDeletedSecret
from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of
DeletedSecret
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 theDeletedSecret
.
-