SecretAttributes Class

public final class SecretAttributes
extends Attributes

The secret management attributes.

Constructor Summary

Constructor Description
SecretAttributes()

Creates an instance of SecretAttributes 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.

static SecretAttributes fromJson(JsonReader jsonReader)

Reads an instance of SecretAttributes from the JsonReader.

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.

SecretAttributes withEnabled(Boolean enabled)

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

SecretAttributes withExpires(OffsetDateTime expires)

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

SecretAttributes withNotBefore(OffsetDateTime notBefore)

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

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:

the created value.

fromJson

public static SecretAttributes fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

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

Overrides:

SecretAttributes.updated()

Returns:

the updated value.

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:

enabled

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:

expires

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:

notBefore

Applies to