Class WafAction
- java.lang.Object
-
- software.amazon.awssdk.services.waf.model.WafAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WafAction.Builder,WafAction>
@Generated("software.amazon.awssdk:codegen") public final class WafAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WafAction.Builder,WafAction>
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
For the action that is associated with a rule in a
WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in aWebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in aWebACL.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWafAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WafAction.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends WafAction.Builder>serializableBuilderClass()WafAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.WafActionTypetype()Specifies how you want AWS WAF to respond to requests that match the settings in aRule.StringtypeAsString()Specifies how you want AWS WAF to respond to requests that match the settings in aRule.-
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
-
type
public final WafActionType type()
Specifies how you want AWS WAF to respond to requests that match the settings in a
Rule. Valid settings include the following:-
ALLOW: AWS WAF allows requests -
BLOCK: AWS WAF blocks requests -
COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNTfor the default action for aWebACL.
If the service returns an enum value that is not available in the current SDK version,
typewill returnWafActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Specifies how you want AWS WAF to respond to requests that match the settings in a
Rule. Valid settings include the following:-
ALLOW: AWS WAF allows requests -
BLOCK: AWS WAF blocks requests -
COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNTfor the default action for aWebACL.
-
- See Also:
WafActionType
-
-
typeAsString
public final String typeAsString()
Specifies how you want AWS WAF to respond to requests that match the settings in a
Rule. Valid settings include the following:-
ALLOW: AWS WAF allows requests -
BLOCK: AWS WAF blocks requests -
COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNTfor the default action for aWebACL.
If the service returns an enum value that is not available in the current SDK version,
typewill returnWafActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Specifies how you want AWS WAF to respond to requests that match the settings in a
Rule. Valid settings include the following:-
ALLOW: AWS WAF allows requests -
BLOCK: AWS WAF blocks requests -
COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNTfor the default action for aWebACL.
-
- See Also:
WafActionType
-
-
toBuilder
public WafAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<WafAction.Builder,WafAction>
-
builder
public static WafAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends WafAction.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.
-
-