Class ServiceCosmosDbConfigurationInfo


  • public final class ServiceCosmosDbConfigurationInfo
    extends Object
    The settings for the Cosmos DB database backing the service.
    • Constructor Detail

      • ServiceCosmosDbConfigurationInfo

        public ServiceCosmosDbConfigurationInfo()
    • Method Detail

      • offerThroughput

        public Integer offerThroughput()
        Get the offerThroughput property: The provisioned throughput for the backing database.
        Returns:
        the offerThroughput value.
      • withOfferThroughput

        public ServiceCosmosDbConfigurationInfo withOfferThroughput​(Integer offerThroughput)
        Set the offerThroughput property: The provisioned throughput for the backing database.
        Parameters:
        offerThroughput - the offerThroughput value to set.
        Returns:
        the ServiceCosmosDbConfigurationInfo object itself.
      • keyVaultKeyUri

        public String keyVaultKeyUri()
        Get the keyVaultKeyUri property: The URI of the customer-managed key for the backing database.
        Returns:
        the keyVaultKeyUri value.
      • withKeyVaultKeyUri

        public ServiceCosmosDbConfigurationInfo withKeyVaultKeyUri​(String keyVaultKeyUri)
        Set the keyVaultKeyUri property: The URI of the customer-managed key for the backing database.
        Parameters:
        keyVaultKeyUri - the keyVaultKeyUri value to set.
        Returns:
        the ServiceCosmosDbConfigurationInfo object itself.
      • validate

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