@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2ActionBlockDetails 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.
Constructor and Description |
---|
AwsWafv2ActionBlockDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2ActionBlockDetails |
clone() |
boolean |
equals(Object obj) |
AwsWafv2CustomResponseDetails |
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(AwsWafv2CustomResponseDetails customResponse)
Defines a custom response for the web request.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2ActionBlockDetails |
withCustomResponse(AwsWafv2CustomResponseDetails customResponse)
Defines a custom response for the web request.
|
public void setCustomResponse(AwsWafv2CustomResponseDetails customResponse)
Defines a custom response for the web request. For information, see Customizing web requests and responses in WAF in the WAF Developer Guide..
customResponse
- Defines a custom response for the web request. For information, see Customizing
web requests and responses in WAF in the WAF Developer Guide..public AwsWafv2CustomResponseDetails getCustomResponse()
Defines a custom response for the web request. For information, see Customizing web requests and responses in WAF in the WAF Developer Guide..
public AwsWafv2ActionBlockDetails withCustomResponse(AwsWafv2CustomResponseDetails customResponse)
Defines a custom response for the web request. For information, see Customizing web requests and responses in WAF in the WAF Developer Guide..
customResponse
- Defines a custom response for the web request. For information, see Customizing
web requests and responses in WAF in the WAF Developer Guide..public String toString()
toString
in class Object
Object.toString()
public AwsWafv2ActionBlockDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.