@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomRequestHandling extends Object implements Serializable, Cloneable, StructuredPojo
Custom request handling behavior that inserts custom headers into a web request. You can add custom request handling for the rule actions allow and count.
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide.
| Constructor and Description | 
|---|
| CustomRequestHandling() | 
| Modifier and Type | Method and Description | 
|---|---|
| CustomRequestHandling | clone() | 
| boolean | equals(Object obj) | 
| List<CustomHTTPHeader> | getInsertHeaders()
 The HTTP headers to insert into the request. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setInsertHeaders(Collection<CustomHTTPHeader> insertHeaders)
 The HTTP headers to insert into the request. | 
| String | toString()Returns a string representation of this object. | 
| CustomRequestHandling | withInsertHeaders(Collection<CustomHTTPHeader> insertHeaders)
 The HTTP headers to insert into the request. | 
| CustomRequestHandling | withInsertHeaders(CustomHTTPHeader... insertHeaders)
 The HTTP headers to insert into the request. | 
public List<CustomHTTPHeader> getInsertHeaders()
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
public void setInsertHeaders(Collection<CustomHTTPHeader> insertHeaders)
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
insertHeaders - The HTTP headers to insert into the request. Duplicate header names are not allowed. 
        For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
public CustomRequestHandling withInsertHeaders(CustomHTTPHeader... insertHeaders)
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
 NOTE: This method appends the values to the existing list (if any). Use
 setInsertHeaders(java.util.Collection) or withInsertHeaders(java.util.Collection) if you want
 to override the existing values.
 
insertHeaders - The HTTP headers to insert into the request. Duplicate header names are not allowed. 
        For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
public CustomRequestHandling withInsertHeaders(Collection<CustomHTTPHeader> insertHeaders)
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
insertHeaders - The HTTP headers to insert into the request. Duplicate header names are not allowed. 
        For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
public String toString()
toString in class ObjectObject.toString()public CustomRequestHandling clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.