Class ThroughputPolicyResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.ThroughputPolicyResource

public final class ThroughputPolicyResource extends Object
Cosmos DB resource throughput policy.
  • Constructor Details

    • ThroughputPolicyResource

      public ThroughputPolicyResource()
      Creates an instance of ThroughputPolicyResource class.
  • Method Details

    • 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.