@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CountAction extends Object implements Serializable, Cloneable, StructuredPojo
Specifies that WAF should count the request. Optionally defines additional custom handling for the request.
This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
| Constructor and Description |
|---|
CountAction() |
| Modifier and Type | Method and Description |
|---|---|
CountAction |
clone() |
boolean |
equals(Object obj) |
CustomRequestHandling |
getCustomRequestHandling()
Defines custom handling for the web request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCustomRequestHandling(CustomRequestHandling customRequestHandling)
Defines custom handling for the web request.
|
String |
toString()
Returns a string representation of this object.
|
CountAction |
withCustomRequestHandling(CustomRequestHandling customRequestHandling)
Defines custom handling for the web request.
|
public void setCustomRequestHandling(CustomRequestHandling customRequestHandling)
Defines custom handling 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.
customRequestHandling - Defines custom handling 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 CustomRequestHandling getCustomRequestHandling()
Defines custom handling 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 CountAction withCustomRequestHandling(CustomRequestHandling customRequestHandling)
Defines custom handling 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.
customRequestHandling - Defines custom handling 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 ObjectObject.toString()public CountAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.