@Generated(value="software.amazon.awssdk:codegen") public final class BlockAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockAction.Builder,BlockAction>
Specifies that WAF should block the request and optionally defines additional custom handling for the response to the web request.
This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BlockAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BlockAction.Builder |
builder() |
CustomResponse |
customResponse()
Defines a custom response for the web request.
|
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 BlockAction.Builder> |
serializableBuilderClass() |
BlockAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CustomResponse customResponse()
Defines a custom response for the web request.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
public BlockAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BlockAction.Builder,BlockAction>public static BlockAction.Builder builder()
public static Class<? extends BlockAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.