Class DatabaseAccountKeysMetadata

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 Details

    • DatabaseAccountKeysMetadata

      public DatabaseAccountKeysMetadata()
      Creates an instance of DatabaseAccountKeysMetadata class.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.