ThroughputPolicyResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ThroughputPolicyResource
- com.
Implements
public final class ThroughputPolicyResource
implements JsonSerializable<ThroughputPolicyResource>
Cosmos DB resource throughput policy.
Constructor Summary
Constructor | Description |
---|---|
ThroughputPolicyResource() |
Creates an instance of Throughput |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Throughput |
fromJson(JsonReader jsonReader)
Reads an instance of Throughput |
Integer |
incrementPercent()
Get the increment |
Boolean |
isEnabled()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Throughput |
withIncrementPercent(Integer incrementPercent)
Set the increment |
Throughput |
withIsEnabled(Boolean isEnabled)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
ThroughputPolicyResource
public ThroughputPolicyResource()
Creates an instance of ThroughputPolicyResource class.
Method Details
fromJson
public static ThroughputPolicyResource fromJson(JsonReader jsonReader)
Reads an instance of ThroughputPolicyResource from the JsonReader.
Parameters:
Returns:
Throws:
incrementPercent
public Integer incrementPercent()
Get the incrementPercent property: Represents the percentage by which throughput can increase every time throughput policy kicks in.
Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Determines whether the ThroughputPolicy is active or not.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withIsEnabled
public ThroughputPolicyResource withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Determines whether the ThroughputPolicy is active or not.
Parameters:
Returns:
Applies to
Azure SDK for Java