java.lang.Object
com.azure.resourcemanager.cosmos.models.DatabaseAccountKeysMetadata
public final class DatabaseAccountKeysMetadata
extends Object
The metadata related to each access key for the given Cosmos DB database account.
-
Constructor Summary
Constructors
Creates an instance of DatabaseAccountKeysMetadata class.
-
Method Summary
Get the primaryMasterKey property: The metadata related to the Primary Read-Write Key for the given Cosmos DB
database account.
Get the primaryReadonlyMasterKey property: The metadata related to the Primary Read-Only Key for the given Cosmos
DB database account.
Get the secondaryMasterKey property: The metadata related to the Secondary Read-Write Key for the given Cosmos DB
database account.
Get the secondaryReadonlyMasterKey property: The metadata related to the Secondary Read-Only Key for the given
Cosmos DB database account.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DatabaseAccountKeysMetadata
public DatabaseAccountKeysMetadata()
Creates an instance of DatabaseAccountKeysMetadata class.
-
Method Details
-
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.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.