Class Capacity
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.Capacity
-
public final class Capacity extends Object
The object that represents all properties related to capacity enforcement on an account.
-
-
Constructor Summary
Constructors Constructor Description Capacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegertotalThroughputLimit()Get the totalThroughputLimit property: The total throughput limit imposed on the account.voidvalidate()Validates the instance.CapacitywithTotalThroughputLimit(Integer totalThroughputLimit)Set the totalThroughputLimit property: The total throughput limit imposed on the account.
-
-
-
Method Detail
-
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:
- the totalThroughputLimit value.
-
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:
totalThroughputLimit- the totalThroughputLimit value to set.- Returns:
- the Capacity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-