Capacity Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. Capacity
- com.
Implements
public final class Capacity
implements JsonSerializable<Capacity>
The object that represents all properties related to capacity enforcement on an account.
Constructor Summary
Constructor | Description |
---|---|
Capacity() |
Creates an instance of Capacity class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Capacity |
fromJson(JsonReader jsonReader)
Reads an instance of Capacity from the Json |
Json |
toJson(JsonWriter jsonWriter) |
Integer |
totalThroughputLimit()
Get the total |
void |
validate()
Validates the instance. |
Capacity |
withTotalThroughputLimit(Integer totalThroughputLimit)
Set the total |
Methods inherited from java.lang.Object
Constructor Details
Capacity
public Capacity()
Creates an instance of Capacity class.
Method Details
fromJson
public static Capacity fromJson(JsonReader jsonReader)
Reads an instance of Capacity from the JsonReader.
Parameters:
Returns:
Throws:
toJson
totalThroughputLimit
public Integer totalThroughputLimit()
Get the totalThroughputLimit property: The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput.
Returns:
validate
public void validate()
Validates the instance.
withTotalThroughputLimit
public Capacity withTotalThroughputLimit(Integer totalThroughputLimit)
Set the totalThroughputLimit property: The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput.
Parameters:
Returns:
Applies to
Azure SDK for Java