public static class AddressRateLimiting.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AddressRateLimiting.Builder |
allowedRatePerAddress(Integer allowedRatePerAddress)
The number of allowed requests per second from one IP address.
|
AddressRateLimiting.Builder |
blockResponseCode(Integer blockResponseCode)
The response status code returned when a request is blocked.
|
AddressRateLimiting |
build() |
AddressRateLimiting.Builder |
copy(AddressRateLimiting model) |
AddressRateLimiting.Builder |
isEnabled(Boolean isEnabled)
Enables or disables the address rate limiting Web Application Firewall feature.
|
AddressRateLimiting.Builder |
maxDelayedCountPerAddress(Integer maxDelayedCountPerAddress)
The maximum number of requests allowed to be queued before subsequent requests are
dropped.
|
public AddressRateLimiting.Builder isEnabled(Boolean isEnabled)
Enables or disables the address rate limiting Web Application Firewall feature.
isEnabled
- the value to setpublic AddressRateLimiting.Builder allowedRatePerAddress(Integer allowedRatePerAddress)
The number of allowed requests per second from one IP address. If unspecified, defaults
to 1
.
allowedRatePerAddress
- the value to setpublic AddressRateLimiting.Builder maxDelayedCountPerAddress(Integer maxDelayedCountPerAddress)
The maximum number of requests allowed to be queued before subsequent requests are
dropped. If unspecified, defaults to 10
.
maxDelayedCountPerAddress
- the value to setpublic AddressRateLimiting.Builder blockResponseCode(Integer blockResponseCode)
The response status code returned when a request is blocked. If unspecified, defaults to
503
. The list of available response codes: 400
, 401
, 403
,
404
, 405
, 408
, 409
, 411
, 412
, 413
, 414
, 415
, 416
, 422
, 494
, 495
,
496
, 497
, 499
, 500
, 501
, 502
, 503
, 504
, 507
.
blockResponseCode
- the value to setpublic AddressRateLimiting build()
public AddressRateLimiting.Builder copy(AddressRateLimiting model)
Copyright © 2016–2024. All rights reserved.