Class SecretAttributes

java.lang.Object
com.azure.resourcemanager.keyvault.models.Attributes
com.azure.resourcemanager.keyvault.models.SecretAttributes
All Implemented Interfaces:
com.azure.json.JsonSerializable<Attributes>

public final class SecretAttributes extends Attributes
The secret management attributes.
  • Constructor Details

    • SecretAttributes

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

    • updated

      public OffsetDateTime updated()
      Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.
      Overrides:
      updated in class Attributes
      Returns:
      the updated value.
    • created

      public OffsetDateTime created()
      Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.
      Overrides:
      created in class Attributes
      Returns:
      the created value.
    • withEnabled

      public SecretAttributes withEnabled(Boolean enabled)
      Set the enabled property: Determines whether the object is enabled.
      Overrides:
      withEnabled in class Attributes
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the Attributes object itself.
    • withNotBefore

      public SecretAttributes withNotBefore(OffsetDateTime notBefore)
      Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
      Overrides:
      withNotBefore in class Attributes
      Parameters:
      notBefore - the notBefore value to set.
      Returns:
      the Attributes object itself.
    • withExpires

      public SecretAttributes withExpires(OffsetDateTime expires)
      Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
      Overrides:
      withExpires in class Attributes
      Parameters:
      expires - the expires value to set.
      Returns:
      the Attributes object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Attributes
      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<Attributes>
      Overrides:
      toJson in class Attributes
      Throws:
      IOException
    • fromJson

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