Class AddressRateLimiting
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waas.model.AddressRateLimiting
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class AddressRateLimiting extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe IP rate limiting configuration.Defines the amount of allowed requests from a unique IP address and the resulting block response code when that threshold is exceeded.
Note: Objects should always be created or deserialized using theAddressRateLimiting.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theAddressRateLimiting.Builder, which maintain a set of all explicitly set fields calledAddressRateLimiting.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddressRateLimiting.Builder
-
Constructor Summary
Constructors Constructor Description AddressRateLimiting(Boolean isEnabled, Integer allowedRatePerAddress, Integer maxDelayedCountPerAddress, Integer blockResponseCode)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressRateLimiting.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetAllowedRatePerAddress()The number of allowed requests per second from one IP address.IntegergetBlockResponseCode()The response status code returned when a request is blocked.BooleangetIsEnabled()Enables or disables the address rate limiting Web Application Firewall feature.IntegergetMaxDelayedCountPerAddress()The maximum number of requests allowed to be queued before subsequent requests are dropped.inthashCode()AddressRateLimiting.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
AddressRateLimiting
@Deprecated @ConstructorProperties({"isEnabled","allowedRatePerAddress","maxDelayedCountPerAddress","blockResponseCode"}) public AddressRateLimiting(Boolean isEnabled, Integer allowedRatePerAddress, Integer maxDelayedCountPerAddress, Integer blockResponseCode)
Deprecated.
-
-
Method Detail
-
builder
public static AddressRateLimiting.Builder builder()
Create a new builder.
-
toBuilder
public AddressRateLimiting.Builder toBuilder()
-
getIsEnabled
public Boolean getIsEnabled()
Enables or disables the address rate limiting Web Application Firewall feature.- Returns:
- the value
-
getAllowedRatePerAddress
public Integer getAllowedRatePerAddress()
The number of allowed requests per second from one IP address.If unspecified, defaults to 1.
- Returns:
- the value
-
getMaxDelayedCountPerAddress
public Integer getMaxDelayedCountPerAddress()
The maximum number of requests allowed to be queued before subsequent requests are dropped.If unspecified, defaults to 10.
- Returns:
- the value
-
getBlockResponseCode
public Integer getBlockResponseCode()
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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-