Class QuotaLimit
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.QuotaLimit
-
public final class QuotaLimit extends Object
The QuotaLimit model.
-
-
Constructor Summary
Constructors Constructor Description QuotaLimit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Float
count()
Get the count property: The count property.Float
renewalPeriod()
Get the renewalPeriod property: The renewalPeriod property.List<ThrottlingRule>
rules()
Get the rules property: The rules property.void
validate()
Validates the instance.QuotaLimit
withCount(Float count)
Set the count property: The count property.QuotaLimit
withRenewalPeriod(Float renewalPeriod)
Set the renewalPeriod property: The renewalPeriod property.QuotaLimit
withRules(List<ThrottlingRule> rules)
Set the rules property: The rules property.
-
-
-
Method Detail
-
count
public Float count()
Get the count property: The count property.- Returns:
- the count value.
-
withCount
public QuotaLimit withCount(Float count)
Set the count property: The count property.- Parameters:
count
- the count value to set.- Returns:
- the QuotaLimit object itself.
-
renewalPeriod
public Float renewalPeriod()
Get the renewalPeriod property: The renewalPeriod property.- Returns:
- the renewalPeriod value.
-
withRenewalPeriod
public QuotaLimit withRenewalPeriod(Float renewalPeriod)
Set the renewalPeriod property: The renewalPeriod property.- Parameters:
renewalPeriod
- the renewalPeriod value to set.- Returns:
- the QuotaLimit object itself.
-
rules
public List<ThrottlingRule> rules()
Get the rules property: The rules property.- Returns:
- the rules value.
-
withRules
public QuotaLimit withRules(List<ThrottlingRule> rules)
Set the rules property: The rules property.- Parameters:
rules
- the rules value to set.- Returns:
- the QuotaLimit object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-