Class ThrottlingRule
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.ThrottlingRule
-
public final class ThrottlingRule extends Object
The ThrottlingRule model.
-
-
Constructor Summary
Constructors Constructor Description ThrottlingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Float
count()
Get the count property: The count property.Boolean
dynamicThrottlingEnabled()
Get the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.String
key()
Get the key property: The key property.List<RequestMatchPattern>
matchPatterns()
Get the matchPatterns property: The matchPatterns property.Float
minCount()
Get the minCount property: The minCount property.Float
renewalPeriod()
Get the renewalPeriod property: The renewalPeriod property.void
validate()
Validates the instance.ThrottlingRule
withCount(Float count)
Set the count property: The count property.ThrottlingRule
withDynamicThrottlingEnabled(Boolean dynamicThrottlingEnabled)
Set the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.ThrottlingRule
withKey(String key)
Set the key property: The key property.ThrottlingRule
withMatchPatterns(List<RequestMatchPattern> matchPatterns)
Set the matchPatterns property: The matchPatterns property.ThrottlingRule
withMinCount(Float minCount)
Set the minCount property: The minCount property.ThrottlingRule
withRenewalPeriod(Float renewalPeriod)
Set the renewalPeriod property: The renewalPeriod property.
-
-
-
Method Detail
-
key
public String key()
Get the key property: The key property.- Returns:
- the key value.
-
withKey
public ThrottlingRule withKey(String key)
Set the key property: The key property.- Parameters:
key
- the key value to set.- Returns:
- the ThrottlingRule object itself.
-
renewalPeriod
public Float renewalPeriod()
Get the renewalPeriod property: The renewalPeriod property.- Returns:
- the renewalPeriod value.
-
withRenewalPeriod
public ThrottlingRule withRenewalPeriod(Float renewalPeriod)
Set the renewalPeriod property: The renewalPeriod property.- Parameters:
renewalPeriod
- the renewalPeriod value to set.- Returns:
- the ThrottlingRule object itself.
-
count
public Float count()
Get the count property: The count property.- Returns:
- the count value.
-
withCount
public ThrottlingRule withCount(Float count)
Set the count property: The count property.- Parameters:
count
- the count value to set.- Returns:
- the ThrottlingRule object itself.
-
minCount
public Float minCount()
Get the minCount property: The minCount property.- Returns:
- the minCount value.
-
withMinCount
public ThrottlingRule withMinCount(Float minCount)
Set the minCount property: The minCount property.- Parameters:
minCount
- the minCount value to set.- Returns:
- the ThrottlingRule object itself.
-
dynamicThrottlingEnabled
public Boolean dynamicThrottlingEnabled()
Get the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.- Returns:
- the dynamicThrottlingEnabled value.
-
withDynamicThrottlingEnabled
public ThrottlingRule withDynamicThrottlingEnabled(Boolean dynamicThrottlingEnabled)
Set the dynamicThrottlingEnabled property: The dynamicThrottlingEnabled property.- Parameters:
dynamicThrottlingEnabled
- the dynamicThrottlingEnabled value to set.- Returns:
- the ThrottlingRule object itself.
-
matchPatterns
public List<RequestMatchPattern> matchPatterns()
Get the matchPatterns property: The matchPatterns property.- Returns:
- the matchPatterns value.
-
withMatchPatterns
public ThrottlingRule withMatchPatterns(List<RequestMatchPattern> matchPatterns)
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.
-
-