Class AutoscaleSettingsResource


  • public final class AutoscaleSettingsResource
    extends Object
    Cosmos DB provisioned throughput settings object.
    • Constructor Detail

      • AutoscaleSettingsResource

        public AutoscaleSettingsResource()
    • Method Detail

      • maxThroughput

        public int maxThroughput()
        Get the maxThroughput property: Represents maximum throughput container can scale up to.
        Returns:
        the maxThroughput value.
      • withMaxThroughput

        public AutoscaleSettingsResource withMaxThroughput​(int maxThroughput)
        Set the maxThroughput property: Represents maximum throughput container can scale up to.
        Parameters:
        maxThroughput - the maxThroughput value to set.
        Returns:
        the AutoscaleSettingsResource object itself.
      • autoUpgradePolicy

        public AutoUpgradePolicyResource autoUpgradePolicy()
        Get the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.
        Returns:
        the autoUpgradePolicy value.
      • withAutoUpgradePolicy

        public AutoscaleSettingsResource withAutoUpgradePolicy​(AutoUpgradePolicyResource autoUpgradePolicy)
        Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.
        Parameters:
        autoUpgradePolicy - the autoUpgradePolicy value to set.
        Returns:
        the AutoscaleSettingsResource object itself.
      • targetMaxThroughput

        public Integer targetMaxThroughput()
        Get the targetMaxThroughput property: Represents target maximum throughput container can scale up to once offer is no longer in pending state.
        Returns:
        the targetMaxThroughput value.
      • validate

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