Class AutoscaleSettingsResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.AutoscaleSettingsResource
Cosmos DB provisioned throughput settings object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AutoscaleSettingsResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.intGet the maxThroughput property: Represents maximum throughput container can scale up to.Get the targetMaxThroughput property: Represents target maximum throughput container can scale up to once offer is no longer in pending state.voidvalidate()Validates the instance.withAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy) Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.withMaxThroughput(int maxThroughput) Set the maxThroughput property: Represents maximum throughput container can scale up to.
-
Constructor Details
-
AutoscaleSettingsResource
public AutoscaleSettingsResource()Creates an instance of AutoscaleSettingsResource class.
-
-
Method Details
-
maxThroughput
public int maxThroughput()Get the maxThroughput property: Represents maximum throughput container can scale up to.- Returns:
- the maxThroughput value.
-
withMaxThroughput
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
Get the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.- Returns:
- the autoUpgradePolicy value.
-
withAutoUpgradePolicy
Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.- Parameters:
autoUpgradePolicy- the autoUpgradePolicy value to set.- Returns:
- the AutoscaleSettingsResource object itself.
-
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.
-