Class AutoscaleSettingsResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.AutoscaleSettingsResource
-
public final class AutoscaleSettingsResource extends Object
Cosmos DB provisioned throughput settings object.
-
-
Constructor Summary
Constructors Constructor Description AutoscaleSettingsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoUpgradePolicyResourceautoUpgradePolicy()Get the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.intmaxThroughput()Get the maxThroughput property: Represents maximum throughput container can scale up to.IntegertargetMaxThroughput()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.AutoscaleSettingsResourcewithAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy)Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.AutoscaleSettingsResourcewithMaxThroughput(int maxThroughput)Set the maxThroughput property: Represents maximum throughput container can scale up to.
-
-
-
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.
-
-