DatabaseAccountKeysMetadata Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. DatabaseAccountKeysMetadata
- com.
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 Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
Account |
primaryMasterKey()
Get the primary |
Account |
primaryReadonlyMasterKey()
Get the primary |
Account |
secondaryMasterKey()
Get the secondary |
Account |
secondaryReadonlyMasterKey()
Get the secondary |
Json |
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:
Returns:
Throws:
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:
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:
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:
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:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java