java.lang.Object
com.azure.resourcemanager.cosmos.models.DatabaseAccountKeysMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseAccountKeysMetadata>
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
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of DatabaseAccountKeysMetadata from the JsonReader.
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.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
-
fromJson
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.