Compartilhar via


AutoscaleSettingsResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.AutoscaleSettingsResource

Implements

public final class AutoscaleSettingsResource
implements JsonSerializable<AutoscaleSettingsResource>

Cosmos DB provisioned throughput settings object.

Constructor Summary

Constructor Description
AutoscaleSettingsResource()

Creates an instance of AutoscaleSettingsResource class.

Method Summary

Modifier and Type Method and Description
AutoUpgradePolicyResource autoUpgradePolicy()

Get the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.

static AutoscaleSettingsResource fromJson(JsonReader jsonReader)

Reads an instance of AutoscaleSettingsResource from the JsonReader.

int maxThroughput()

Get the maxThroughput property: Represents maximum throughput container can scale up to.

Integer targetMaxThroughput()

Get the targetMaxThroughput property: Represents target maximum throughput container can scale up to once offer is no longer in pending state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoscaleSettingsResource withAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy)

Set the autoUpgradePolicy property: Cosmos DB resource auto-upgrade policy.

AutoscaleSettingsResource withMaxThroughput(int maxThroughput)

Set the maxThroughput property: Represents maximum throughput container can scale up to.

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:

the autoUpgradePolicy value.

fromJson

public static AutoscaleSettingsResource fromJson(JsonReader jsonReader)

Reads an instance of AutoscaleSettingsResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutoscaleSettingsResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

maxThroughput

public int maxThroughput()

Get the maxThroughput property: Represents maximum throughput container can scale up to.

Returns:

the maxThroughput value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to