SecretAttributes Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. Attributes - com.
azure. resourcemanager. keyvault. models. SecretAttributes
- com.
- com.
public final class SecretAttributes
extends Attributes
The secret management attributes.
Constructor Summary
Constructor | Description |
---|---|
SecretAttributes() |
Creates an instance of Secret |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z. |
static
Secret |
fromJson(JsonReader jsonReader)
Reads an instance of Secret |
Json |
toJson(JsonWriter jsonWriter) |
Offset |
updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z. |
void |
validate()
Validates the instance. |
Secret |
withEnabled(Boolean enabled)
Set the enabled property: Determines whether the object is enabled. |
Secret |
withExpires(OffsetDateTime expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z. |
Secret |
withNotBefore(OffsetDateTime notBefore)
Set the not |
Methods inherited from Attributes
Methods inherited from java.lang.Object
Constructor Details
SecretAttributes
public SecretAttributes()
Creates an instance of SecretAttributes class.
Method Details
created
public OffsetDateTime created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.
Overrides:
SecretAttributes.created()Returns:
fromJson
public static SecretAttributes fromJson(JsonReader jsonReader)
Reads an instance of SecretAttributes from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SecretAttributes.toJson(JsonWriter jsonWriter)Parameters:
Throws:
updated
public OffsetDateTime updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.
Overrides:
SecretAttributes.updated()Returns:
validate
public void validate()
Validates the instance.
Overrides:
SecretAttributes.validate()withEnabled
public SecretAttributes withEnabled(Boolean enabled)
Set the enabled property: Determines whether the object is enabled.
Overrides:
SecretAttributes.withEnabled(Boolean enabled)Parameters:
withExpires
public SecretAttributes withExpires(OffsetDateTime expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
Overrides:
SecretAttributes.withExpires(OffsetDateTime expires)Parameters:
withNotBefore
public SecretAttributes withNotBefore(OffsetDateTime notBefore)
Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
Overrides:
SecretAttributes.withNotBefore(OffsetDateTime notBefore)Parameters:
Applies to
Azure SDK for Java