Class ThroughputPolicyResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputPolicyResource
Cosmos DB resource throughput policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ThroughputPolicyResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.Get the isEnabled property: Determines whether the ThroughputPolicy is active or not.voidvalidate()Validates the instance.withIncrementPercent(Integer incrementPercent) Set the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Determines whether the ThroughputPolicy is active or not.
-
Constructor Details
-
ThroughputPolicyResource
public ThroughputPolicyResource()Creates an instance of ThroughputPolicyResource class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: Determines whether the ThroughputPolicy is active or not.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Determines whether the ThroughputPolicy is active or not.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the ThroughputPolicyResource object itself.
-
incrementPercent
Get the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.- Returns:
- the incrementPercent value.
-
withIncrementPercent
Set the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.- Parameters:
incrementPercent- the incrementPercent value to set.- Returns:
- the ThroughputPolicyResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-