Class RateLimitForwardedIP
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.RateLimitForwardedIP
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RateLimitForwardedIP.Builder,RateLimitForwardedIP>
@Generated("software.amazon.awssdk:codegen") public final class RateLimitForwardedIP extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RateLimitForwardedIP.Builder,RateLimitForwardedIP>
Specifies the first IP address in an HTTP header as an aggregate key for a rate-based rule. Each distinct forwarded IP address contributes to the aggregation instance.
This setting is used only in the
RateBasedStatementCustomKeyspecification of a rate-based rule statement. When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the forwarded IP address by specifyingFORWARDED_IPin your rate-based statement'sAggregateKeyType.This data type supports using the forwarded IP address in the web request aggregation for a rate-based rule, in
RateBasedStatementCustomKey. The JSON specification for using the forwarded IP address doesn't explicitly use this data type.JSON specification:
"ForwardedIP": {}When you use this specification, you must also configure the forwarded IP address in the rate-based statement's
ForwardedIPConfig.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRateLimitForwardedIP.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RateLimitForwardedIP.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RateLimitForwardedIP.Builder>serializableBuilderClass()RateLimitForwardedIP.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
toBuilder
public RateLimitForwardedIP.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RateLimitForwardedIP.Builder,RateLimitForwardedIP>
-
builder
public static RateLimitForwardedIP.Builder builder()
-
serializableBuilderClass
public static Class<? extends RateLimitForwardedIP.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-