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>
The secret management attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated()Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.static SecretAttributesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecretAttributes from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) updated()Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Determines whether the object is enabled.withExpires(OffsetDateTime expires) Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.withNotBefore(OffsetDateTime notBefore) Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.Methods inherited from class Attributes
enabled, expires, notBeforeMethods inherited from class 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
-
SecretAttributes
public SecretAttributes()Creates an instance of SecretAttributes class.
-
-
Method Details
-
updated
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.- Overrides:
updatedin classAttributes- Returns:
- the updated value.
-
created
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.- Overrides:
createdin classAttributes- Returns:
- the created value.
-
withEnabled
Set the enabled property: Determines whether the object is enabled.- Overrides:
withEnabledin classAttributes- Parameters:
enabled- the enabled value to set.- Returns:
- the Attributes object itself.
-
withNotBefore
Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.- Overrides:
withNotBeforein classAttributes- Parameters:
notBefore- the notBefore value to set.- Returns:
- the Attributes object itself.
-
withExpires
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.- Overrides:
withExpiresin classAttributes- Parameters:
expires- the expires value to set.- Returns:
- the Attributes object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAttributes- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Attributes>- Overrides:
toJsonin classAttributes- Throws:
IOException
-
fromJson
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.
-