Partager via


DatabaseAccountKeysMetadata Class

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

Implements

public final class DatabaseAccountKeysMetadata
implements JsonSerializable<DatabaseAccountKeysMetadata>

The metadata related to each access key for the given Cosmos DB database account.

Constructor Summary

Constructor Description
DatabaseAccountKeysMetadata()

Creates an instance of DatabaseAccountKeysMetadata class.

Method Summary

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

Reads an instance of DatabaseAccountKeysMetadata from the JsonReader.

AccountKeyMetadata primaryMasterKey()

Get the primaryMasterKey property: The metadata related to the Primary Read-Write Key for the given Cosmos DB database account.

AccountKeyMetadata primaryReadonlyMasterKey()

Get the primaryReadonlyMasterKey property: The metadata related to the Primary Read-Only Key for the given Cosmos DB database account.

AccountKeyMetadata secondaryMasterKey()

Get the secondaryMasterKey property: The metadata related to the Secondary Read-Write Key for the given Cosmos DB database account.

AccountKeyMetadata secondaryReadonlyMasterKey()

Get the secondaryReadonlyMasterKey property: The metadata related to the Secondary Read-Only Key for the given Cosmos DB database account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DatabaseAccountKeysMetadata

public DatabaseAccountKeysMetadata()

Creates an instance of DatabaseAccountKeysMetadata class.

Method Details

fromJson

public static DatabaseAccountKeysMetadata fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountKeysMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

primaryMasterKey

public AccountKeyMetadata primaryMasterKey()

Get the primaryMasterKey property: The metadata related to the Primary Read-Write Key for the given Cosmos DB database account.

Returns:

the primaryMasterKey value.

primaryReadonlyMasterKey

public AccountKeyMetadata primaryReadonlyMasterKey()

Get the primaryReadonlyMasterKey property: The metadata related to the Primary Read-Only Key for the given Cosmos DB database account.

Returns:

the primaryReadonlyMasterKey value.

secondaryMasterKey

public AccountKeyMetadata secondaryMasterKey()

Get the secondaryMasterKey property: The metadata related to the Secondary Read-Write Key for the given Cosmos DB database account.

Returns:

the secondaryMasterKey value.

secondaryReadonlyMasterKey

public AccountKeyMetadata secondaryReadonlyMasterKey()

Get the secondaryReadonlyMasterKey property: The metadata related to the Secondary Read-Only Key for the given Cosmos DB database account.

Returns:

the secondaryReadonlyMasterKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to