AutoscaleSettingsResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. AutoscaleSettingsResource
- com.
Implements
public final class AutoscaleSettingsResource
implements JsonSerializable<AutoscaleSettingsResource>
Cosmos DB provisioned throughput settings object.
Constructor Summary
Constructor | Description |
---|---|
AutoscaleSettingsResource() |
Creates an instance of Autoscale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Auto |
autoUpgradePolicy()
Get the auto |
static
Autoscale |
fromJson(JsonReader jsonReader)
Reads an instance of Autoscale |
int |
maxThroughput()
Get the max |
Integer |
targetMaxThroughput()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Autoscale |
withAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy)
Set the auto |
Autoscale |
withMaxThroughput(int maxThroughput)
Set the max |
Methods inherited from java.lang.Object
Constructor Details
AutoscaleSettingsResource
public AutoscaleSettingsResource()
Creates an instance of AutoscaleSettingsResource class.
Method Details
autoUpgradePolicy
public AutoUpgradePolicyResource autoUpgradePolicy()
Get the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.
Returns:
fromJson
public static AutoscaleSettingsResource fromJson(JsonReader jsonReader)
Reads an instance of AutoscaleSettingsResource from the JsonReader.
Parameters:
Returns:
Throws:
maxThroughput
public int maxThroughput()
Get the maxThroughput property: Represents maximum throughput container can scale up to.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
withAutoUpgradePolicy
public AutoscaleSettingsResource withAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy)
Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.
Parameters:
Returns:
withMaxThroughput
public AutoscaleSettingsResource withMaxThroughput(int maxThroughput)
Set the maxThroughput property: Represents maximum throughput container can scale up to.
Parameters:
Returns:
Applies to
Azure SDK for Java