RateLimitRule Class

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.

RateLimitRule withRateLimitDurationInMinutes(int rateLimitDurationInMinutes)

Set defines rate limit duration.

RateLimitRule withRateLimitThreshold(int rateLimitThreshold)

Set defines rate limit threshold.

Methods inherited from CustomRule

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

RateLimitRule

public RateLimitRule()

Method Details

rateLimitDurationInMinutes

public int rateLimitDurationInMinutes()

Get defines rate limit duration. Default is 1 minute.

Returns:

the rateLimitDurationInMinutes value

rateLimitThreshold

public int rateLimitThreshold()

Get defines rate limit threshold.

Returns:

the rateLimitThreshold value

withRateLimitDurationInMinutes

public RateLimitRule withRateLimitDurationInMinutes(int rateLimitDurationInMinutes)

Set defines rate limit duration. Default is 1 minute.

Parameters:

rateLimitDurationInMinutes - the rateLimitDurationInMinutes value to set

Returns:

the RateLimitRule object itself.

withRateLimitThreshold

public RateLimitRule withRateLimitThreshold(int rateLimitThreshold)

Set defines rate limit threshold.

Parameters:

rateLimitThreshold - the rateLimitThreshold value to set

Returns:

the RateLimitRule object itself.

Applies to