Attributes Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.Attributes

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
OffsetDateTime 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.

OffsetDateTime 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 JsonReader.

OffsetDateTime notBefore()

Get the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime 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 notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.

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:

the created value.

enabled

public Boolean enabled()

Get the enabled property: Determines whether the object is enabled.

Returns:

the enabled value.

expires

public OffsetDateTime expires()

Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.

Returns:

the expires value.

fromJson

public static Attributes fromJson(JsonReader jsonReader)

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.

notBefore

public OffsetDateTime notBefore()

Get the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.

Returns:

the notBefore value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

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.

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.

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.

Applies to