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>

public final class DeletedSecret extends 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 Details

    • DeletedSecret

      public DeletedSecret()
  • Method Details

    • getRecoveryId

      public String getRecoveryId()
      Get the recoveryId identifier.
      Returns:
      the recoveryId identifier.
    • getScheduledPurgeDate

      public OffsetDateTime getScheduledPurgeDate()
      Get the scheduled purge UTC time.
      Returns:
      the scheduledPurgeDate UTC time.
    • getDeletedOn

      public OffsetDateTime getDeletedOn()
      Get the deleted UTC time.
      Returns:
      the deletedDate UTC time.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Description copied from interface: com.azure.json.JsonSerializable
      Writes the object to the passed JsonWriter.

      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 other JsonSerializable objects for serialization, they'll write the field name only then pass the JsonWriter to the other JsonSerializable object. This way objects writing JSON will be self-encapsulated for writing properly formatted JSON.

      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KeyVaultSecret>
      Overrides:
      toJson in class KeyVaultSecret
      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 the jsonWriter.
    • fromJson

      public static DeletedSecret fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DeletedSecret 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 the DeletedSecret.