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 SummaryNested Classes Modifier and Type Class Description static classAddressRateLimiting.Builder
 - 
Constructor SummaryConstructors Constructor Description AddressRateLimiting(Boolean isEnabled, Integer allowedRatePerAddress, Integer maxDelayedCountPerAddress, Integer blockResponseCode)Deprecated.
 - 
Method SummaryAll 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- 
builderpublic static AddressRateLimiting.Builder builder() Create a new builder.
 - 
toBuilderpublic AddressRateLimiting.Builder toBuilder() 
 - 
getIsEnabledpublic Boolean getIsEnabled() Enables or disables the address rate limiting Web Application Firewall feature.- Returns:
- the value
 
 - 
getAllowedRatePerAddresspublic Integer getAllowedRatePerAddress() The number of allowed requests per second from one IP address.If unspecified, defaults to 1. - Returns:
- the value
 
 - 
getMaxDelayedCountPerAddresspublic Integer getMaxDelayedCountPerAddress() The maximum number of requests allowed to be queued before subsequent requests are dropped.If unspecified, defaults to 10. - Returns:
- the value
 
 - 
getBlockResponseCodepublic 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
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-