Class Attributes

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

public class Attributes extends Object implements com.azure.json.JsonSerializable<Attributes>
The object attributes managed by the KeyVault service.
  • Constructor Details

    • Attributes

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Determines whether the object is enabled.
      Returns:
      the enabled value.
    • withEnabled

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

      public OffsetDateTime notBefore()
      Get the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
      Returns:
      the notBefore value.
    • withNotBefore

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

      public OffsetDateTime expires()
      Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
      Returns:
      the expires value.
    • withExpires

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

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

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

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

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