@Generated(value="software.amazon.awssdk:codegen") public final class DefaultAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DefaultAction.Builder,DefaultAction>
In a WebACL, this is the action that you want WAF to perform when a web request doesn't match any of the rules
in the WebACL. The default action must be a terminating action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
AllowAction |
allow()
Specifies that WAF should allow requests by default.
|
BlockAction |
block()
Specifies that WAF should block requests by default.
|
static DefaultAction.Builder |
builder() |
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 DefaultAction.Builder> |
serializableBuilderClass() |
DefaultAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BlockAction block()
Specifies that WAF should block requests by default.
public final AllowAction allow()
Specifies that WAF should allow requests by default.
public DefaultAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DefaultAction.Builder,DefaultAction>public static DefaultAction.Builder builder()
public static Class<? extends DefaultAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.