AutoUpgradePolicyResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. AutoUpgradePolicyResource
- com.
Implements
public final class AutoUpgradePolicyResource
implements JsonSerializable<AutoUpgradePolicyResource>
Cosmos DB resource auto-upgrade policy.
Constructor Summary
Constructor | Description |
---|---|
AutoUpgradePolicyResource() |
Creates an instance of Auto |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
Throughput |
throughputPolicy()
Get the throughput |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Auto |
withThroughputPolicy(ThroughputPolicyResource throughputPolicy)
Set the throughput |
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:
Returns:
Throws:
throughputPolicy
public ThroughputPolicyResource throughputPolicy()
Get the throughputPolicy property: Represents throughput policy which service must adhere to for auto-upgrade.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java