java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota

public final class CommitmentQuota extends Object
Cognitive Services account commitment quota.
  • Constructor Details

    • CommitmentQuota

      public CommitmentQuota()
  • Method Details

    • quantity

      public Long quantity()
      Get the quantity property: Commitment quota quantity.
      Returns:
      the quantity value.
    • withQuantity

      public CommitmentQuota withQuantity(Long quantity)
      Set the quantity property: Commitment quota quantity.
      Parameters:
      quantity - the quantity value to set.
      Returns:
      the CommitmentQuota object itself.
    • unit

      public String unit()
      Get the unit property: Commitment quota unit.
      Returns:
      the unit value.
    • withUnit

      public CommitmentQuota withUnit(String unit)
      Set the unit property: Commitment quota unit.
      Parameters:
      unit - the unit value to set.
      Returns:
      the CommitmentQuota object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.