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

public final class CallRateLimit extends Object
The call rate limit Cognitive Services account.
  • Constructor Details

    • CallRateLimit

      public CallRateLimit()
  • Method Details

    • count

      public Float count()
      Get the count property: The count value of Call Rate Limit.
      Returns:
      the count value.
    • withCount

      public CallRateLimit withCount(Float count)
      Set the count property: The count value of Call Rate Limit.
      Parameters:
      count - the count value to set.
      Returns:
      the CallRateLimit object itself.
    • renewalPeriod

      public Float renewalPeriod()
      Get the renewalPeriod property: The renewal period in seconds of Call Rate Limit.
      Returns:
      the renewalPeriod value.
    • withRenewalPeriod

      public CallRateLimit withRenewalPeriod(Float renewalPeriod)
      Set the renewalPeriod property: The renewal period in seconds of Call Rate Limit.
      Parameters:
      renewalPeriod - the renewalPeriod value to set.
      Returns:
      the CallRateLimit object itself.
    • rules

      public List<ThrottlingRule> rules()
      Get the rules property: The rules property.
      Returns:
      the rules value.
    • withRules

      public CallRateLimit withRules(List<ThrottlingRule> rules)
      Set the rules property: The rules property.
      Parameters:
      rules - the rules value to set.
      Returns:
      the CallRateLimit object itself.
    • validate

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