Partager via


AccountKeyMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.AccountKeyMetadata

Implements

public final class AccountKeyMetadata
implements JsonSerializable<AccountKeyMetadata>

The metadata related to an access key for a given database account.

Constructor Summary

Constructor Description
AccountKeyMetadata()

Creates an instance of AccountKeyMetadata class.

Method Summary

Modifier and Type Method and Description
static AccountKeyMetadata fromJson(JsonReader jsonReader)

Reads an instance of AccountKeyMetadata from the JsonReader.

OffsetDateTime generationTime()

Get the generationTime property: Generation time in UTC of the key in ISO-8601 format.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AccountKeyMetadata

public AccountKeyMetadata()

Creates an instance of AccountKeyMetadata class.

Method Details

fromJson

public static AccountKeyMetadata fromJson(JsonReader jsonReader)

Reads an instance of AccountKeyMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AccountKeyMetadata 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 AccountKeyMetadata.

generationTime

public OffsetDateTime generationTime()

Get the generationTime property: Generation time in UTC of the key in ISO-8601 format. If the value is missing from the object, it means that the last key regeneration was triggered before 2022-06-18.

Returns:

the generationTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to