@Generated(value="software.amazon.awssdk:codegen") public final class RuleAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleAction.Builder,RuleAction>
The action that AWS 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
AllowAction |
allow()
Instructs AWS WAF to allow the web request.
|
BlockAction |
block()
Instructs AWS WAF to block the web request.
|
static RuleAction.Builder |
builder() |
CountAction |
count()
Instructs AWS WAF to count the web request and allow it.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RuleAction.Builder> |
serializableBuilderClass() |
RuleAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BlockAction block()
Instructs AWS WAF to block the web request.
public final AllowAction allow()
Instructs AWS WAF to allow the web request.
public final CountAction count()
Instructs AWS WAF to count the web request and allow it.
public RuleAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RuleAction.Builder,RuleAction>public static RuleAction.Builder builder()
public static Class<? extends RuleAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.