Class ThrottlingRule
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.ThrottlingRule
The ThrottlingRule model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncount()
Get the count property: The count property.Get the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.key()
Get the key property: The key property.Get the matchPatterns property: The matchPatterns property.minCount()
Get the minCount property: The minCount property.Get the renewalPeriod property: The renewalPeriod property.void
validate()
Validates the instance.Set the count property: The count property.withDynamicThrottlingEnabled
(Boolean dynamicThrottlingEnabled) Set the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.Set the key property: The key property.withMatchPatterns
(List<RequestMatchPattern> matchPatterns) Set the matchPatterns property: The matchPatterns property.withMinCount
(Float minCount) Set the minCount property: The minCount property.withRenewalPeriod
(Float renewalPeriod) Set the renewalPeriod property: The renewalPeriod property.
-
Constructor Details
-
ThrottlingRule
public ThrottlingRule()
-
-
Method Details
-
key
Get the key property: The key property.- Returns:
- the key value.
-
withKey
Set the key property: The key property.- Parameters:
key
- the key value to set.- Returns:
- the ThrottlingRule object itself.
-
renewalPeriod
Get the renewalPeriod property: The renewalPeriod property.- Returns:
- the renewalPeriod value.
-
withRenewalPeriod
Set the renewalPeriod property: The renewalPeriod property.- Parameters:
renewalPeriod
- the renewalPeriod value to set.- Returns:
- the ThrottlingRule object itself.
-
count
Get the count property: The count property.- Returns:
- the count value.
-
withCount
Set the count property: The count property.- Parameters:
count
- the count value to set.- Returns:
- the ThrottlingRule object itself.
-
minCount
Get the minCount property: The minCount property.- Returns:
- the minCount value.
-
withMinCount
Set the minCount property: The minCount property.- Parameters:
minCount
- the minCount value to set.- Returns:
- the ThrottlingRule object itself.
-
dynamicThrottlingEnabled
Get the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.- Returns:
- the dynamicThrottlingEnabled value.
-
withDynamicThrottlingEnabled
Set the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.- Parameters:
dynamicThrottlingEnabled
- the dynamicThrottlingEnabled value to set.- Returns:
- the ThrottlingRule object itself.
-
matchPatterns
Get the matchPatterns property: The matchPatterns property.- Returns:
- the matchPatterns value.
-
withMatchPatterns
Set the matchPatterns property: The matchPatterns property.- Parameters:
matchPatterns
- the matchPatterns value to set.- Returns:
- the ThrottlingRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-