Package com.oracle.bmc.waas.model
Class AddressRateLimiting.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.AddressRateLimiting.Builder
-
- Enclosing class:
- AddressRateLimiting
public static class AddressRateLimiting.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressRateLimiting.BuilderallowedRatePerAddress(Integer allowedRatePerAddress)The number of allowed requests per second from one IP address.AddressRateLimiting.BuilderblockResponseCode(Integer blockResponseCode)The response status code returned when a request is blocked.AddressRateLimitingbuild()AddressRateLimiting.Buildercopy(AddressRateLimiting model)AddressRateLimiting.BuilderisEnabled(Boolean isEnabled)Enables or disables the address rate limiting Web Application Firewall feature.AddressRateLimiting.BuildermaxDelayedCountPerAddress(Integer maxDelayedCountPerAddress)The maximum number of requests allowed to be queued before subsequent requests are dropped.
-
-
-
Method Detail
-
isEnabled
public AddressRateLimiting.Builder isEnabled(Boolean isEnabled)
Enables or disables the address rate limiting Web Application Firewall feature.- Parameters:
isEnabled- the value to set- Returns:
- this builder
-
allowedRatePerAddress
public AddressRateLimiting.Builder allowedRatePerAddress(Integer allowedRatePerAddress)
The number of allowed requests per second from one IP address.If unspecified, defaults to 1.
- Parameters:
allowedRatePerAddress- the value to set- Returns:
- this builder
-
maxDelayedCountPerAddress
public AddressRateLimiting.Builder maxDelayedCountPerAddress(Integer maxDelayedCountPerAddress)
The maximum number of requests allowed to be queued before subsequent requests are dropped.If unspecified, defaults to 10.
- Parameters:
maxDelayedCountPerAddress- the value to set- Returns:
- this builder
-
blockResponseCode
public 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.
- Parameters:
blockResponseCode- the value to set- Returns:
- this builder
-
build
public AddressRateLimiting build()
-
copy
public AddressRateLimiting.Builder copy(AddressRateLimiting model)
-
-