Class AwsWafv2RulesActionDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsWafv2RulesActionDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsWafv2RulesActionDetails.Builder,AwsWafv2RulesActionDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsWafv2RulesActionDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsWafv2RulesActionDetails.Builder,AwsWafv2RulesActionDetails>
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsWafv2RulesActionDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsWafv2ActionAllowDetailsallow()Instructs WAF to allow the web request.AwsWafv2ActionBlockDetailsblock()Instructs WAF to block the web request.static AwsWafv2RulesActionDetails.Builderbuilder()AwsWafv2RulesActionCaptchaDetailscaptcha()Instructs WAF to run a CAPTCHA check against the web request.AwsWafv2RulesActionCountDetailscount()Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AwsWafv2RulesActionDetails.Builder>serializableBuilderClass()AwsWafv2RulesActionDetails.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
-
allow
public final AwsWafv2ActionAllowDetails allow()
Instructs WAF to allow the web request.
- Returns:
- Instructs WAF to allow the web request.
-
block
public final AwsWafv2ActionBlockDetails block()
Instructs WAF to block the web request.
- Returns:
- Instructs WAF to block the web request.
-
captcha
public final AwsWafv2RulesActionCaptchaDetails captcha()
Instructs WAF to run a CAPTCHA check against the web request.
- Returns:
- Instructs WAF to run a CAPTCHA check against the web request.
-
count
public final AwsWafv2RulesActionCountDetails count()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
- Returns:
- Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
-
toBuilder
public AwsWafv2RulesActionDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsWafv2RulesActionDetails.Builder,AwsWafv2RulesActionDetails>
-
builder
public static AwsWafv2RulesActionDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsWafv2RulesActionDetails.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.
-
-