Class RateLimitRule

java.lang.Object
com.microsoft.azure.management.cdn.CustomRule
com.microsoft.azure.management.cdn.RateLimitRule

public class RateLimitRule extends CustomRule
Defines a rate limiting rule that can be included in a waf policy.
  • Constructor Details

    • RateLimitRule

      public RateLimitRule()
  • Method Details

    • rateLimitThreshold

      public int rateLimitThreshold()
      Get defines rate limit threshold.
      Returns:
      the rateLimitThreshold value
    • withRateLimitThreshold

      public RateLimitRule withRateLimitThreshold(int rateLimitThreshold)
      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

      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.