@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 WAF to use when the rule action doesn't block the request. For example, CaptchaAction
for requests
with valid t okens, and AllowAction
.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the 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 WAF quotas in the WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the 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 WAF quotas in the 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 WAF quotas in the 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 WAF quotas in the 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 WAF quotas in the 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 WAF quotas in the 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 WAF quotas in the WAF Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CustomRequestHandling clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.