Compartilhar via


AutoUpgradePolicyResource Class

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

Implements

public final class AutoUpgradePolicyResource
implements JsonSerializable<AutoUpgradePolicyResource>

Cosmos DB resource auto-upgrade policy.

Constructor Summary

Constructor Description
AutoUpgradePolicyResource()

Creates an instance of AutoUpgradePolicyResource class.

Method Summary

Modifier and Type Method and Description
static AutoUpgradePolicyResource fromJson(JsonReader jsonReader)

Reads an instance of AutoUpgradePolicyResource from the JsonReader.

ThroughputPolicyResource throughputPolicy()

Get the throughputPolicy property: Represents throughput policy which service must adhere to for auto-upgrade.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoUpgradePolicyResource withThroughputPolicy(ThroughputPolicyResource throughputPolicy)

Set the throughputPolicy property: Represents throughput policy which service must adhere to for auto-upgrade.

Methods inherited from java.lang.Object

Constructor Details

AutoUpgradePolicyResource

public AutoUpgradePolicyResource()

Creates an instance of AutoUpgradePolicyResource class.

Method Details

fromJson

public static AutoUpgradePolicyResource fromJson(JsonReader jsonReader)

Reads an instance of AutoUpgradePolicyResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AutoUpgradePolicyResource.

throughputPolicy

public ThroughputPolicyResource throughputPolicy()

Get the throughputPolicy property: Represents throughput policy which service must adhere to for auto-upgrade.

Returns:

the throughputPolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withThroughputPolicy

public AutoUpgradePolicyResource withThroughputPolicy(ThroughputPolicyResource throughputPolicy)

Set the throughputPolicy property: Represents throughput policy which service must adhere to for auto-upgrade.

Parameters:

throughputPolicy - the throughputPolicy value to set.

Returns:

the AutoUpgradePolicyResource object itself.

Applies to