Class RateLimitRule
java.lang.Object
com.microsoft.azure.management.cdn.CustomRule
com.microsoft.azure.management.cdn.RateLimitRule
Defines a rate limiting rule that can be included in a waf policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get defines rate limit duration.int
Get defines rate limit threshold.withRateLimitDurationInMinutes
(int rateLimitDurationInMinutes) Set defines rate limit duration.withRateLimitThreshold
(int rateLimitThreshold) Set defines rate limit threshold.Methods inherited from class com.microsoft.azure.management.cdn.CustomRule
action, enabledState, matchConditions, name, priority, withAction, withEnabledState, withMatchConditions, withName, withPriority
-
Constructor Details
-
RateLimitRule
public RateLimitRule()
-
-
Method Details
-
rateLimitThreshold
public int rateLimitThreshold()Get defines rate limit threshold.- Returns:
- the rateLimitThreshold value
-
withRateLimitThreshold
Set defines rate limit threshold.- Parameters:
rateLimitThreshold
- the rateLimitThreshold value to set- Returns:
- the RateLimitRule object itself.
-
rateLimitDurationInMinutes
public int rateLimitDurationInMinutes()Get defines rate limit duration. Default is 1 minute.- Returns:
- the rateLimitDurationInMinutes value
-
withRateLimitDurationInMinutes
Set defines rate limit duration. Default is 1 minute.- Parameters:
rateLimitDurationInMinutes
- the rateLimitDurationInMinutes value to set- Returns:
- the RateLimitRule object itself.
-