Class ThroughputPolicyResource
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.ThroughputPolicyResource
-
public final class ThroughputPolicyResource extends Object
Cosmos DB resource throughput policy.
-
-
Constructor Summary
Constructors Constructor Description ThroughputPolicyResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerincrementPercent()Get the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.BooleanisEnabled()Get the isEnabled property: Determines whether the ThroughputPolicy is active or not.voidvalidate()Validates the instance.ThroughputPolicyResourcewithIncrementPercent(Integer incrementPercent)Set the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.ThroughputPolicyResourcewithIsEnabled(Boolean isEnabled)Set the isEnabled property: Determines whether the ThroughputPolicy is active or not.
-
-
-
Method Detail
-
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Determines whether the ThroughputPolicy is active or not.- Returns:
- the isEnabled value.
-
withIsEnabled
public ThroughputPolicyResource withIsEnabled(Boolean isEnabled)
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
public Integer incrementPercent()
Get the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.- Returns:
- the incrementPercent value.
-
withIncrementPercent
public ThroughputPolicyResource withIncrementPercent(Integer incrementPercent)
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.
-
-