RateLimitRule Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. CustomRule - com.
microsoft. azure. management. cdn. RateLimitRule
- com.
- com.
public class RateLimitRule
extends CustomRule
Defines a rate limiting rule that can be included in a waf policy.
Constructor Summary
Constructor | Description | |
---|---|---|
RateLimitRule() |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
rateLimitDurationInMinutes()
Get defines rate limit duration. |
int |
rateLimitThreshold()
Get defines rate limit threshold. |
Rate |
withRateLimitDurationInMinutes(int rateLimitDurationInMinutes)
Set defines rate limit duration. |
Rate |
withRateLimitThreshold(int rateLimitThreshold)
Set defines rate limit threshold. |
Methods inherited from CustomRule
Methods inherited from java.lang.Object
Constructor Details
RateLimitRule
public RateLimitRule()
Method Details
rateLimitDurationInMinutes
public int rateLimitDurationInMinutes()
Get defines rate limit duration. Default is 1 minute.
Returns:
rateLimitThreshold
public int rateLimitThreshold()
Get defines rate limit threshold.
Returns:
withRateLimitDurationInMinutes
public RateLimitRule withRateLimitDurationInMinutes(int rateLimitDurationInMinutes)
Set defines rate limit duration. Default is 1 minute.
Parameters:
Returns:
withRateLimitThreshold
public RateLimitRule withRateLimitThreshold(int rateLimitThreshold)
Set defines rate limit threshold.
Parameters:
Returns:
Applies to
Azure SDK for Java