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