@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockAction extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
BlockAction() |
Modifier and Type | Method and Description |
---|---|
BlockAction |
clone() |
boolean |
equals(Object obj) |
CustomResponse |
getCustomResponse()
Defines a custom response for the web request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomResponse(CustomResponse customResponse)
Defines a custom response for the web request.
|
String |
toString()
Returns a string representation of this object.
|
BlockAction |
withCustomResponse(CustomResponse customResponse)
Defines a custom response for the web request.
|
public void setCustomResponse(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.
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.
public CustomResponse getCustomResponse()
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 withCustomResponse(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.
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.
public String toString()
toString
in class Object
Object.toString()
public BlockAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.