@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2CustomRequestHandlingDetails extends Object implements Serializable, Cloneable, StructuredPojo
Custom request handling behavior that inserts custom headers into a web request. WAF uses custom request handling when the rule action doesn't block the request.
Constructor and Description |
---|
AwsWafv2CustomRequestHandlingDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2CustomRequestHandlingDetails |
clone() |
boolean |
equals(Object obj) |
List<AwsWafv2CustomHttpHeader> |
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<AwsWafv2CustomHttpHeader> insertHeaders)
The HTTP headers to insert into the request.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2CustomRequestHandlingDetails |
withInsertHeaders(AwsWafv2CustomHttpHeader... insertHeaders)
The HTTP headers to insert into the request.
|
AwsWafv2CustomRequestHandlingDetails |
withInsertHeaders(Collection<AwsWafv2CustomHttpHeader> insertHeaders)
The HTTP headers to insert into the request.
|
public AwsWafv2CustomRequestHandlingDetails()
public List<AwsWafv2CustomHttpHeader> getInsertHeaders()
The HTTP headers to insert into the request.
public void setInsertHeaders(Collection<AwsWafv2CustomHttpHeader> insertHeaders)
The HTTP headers to insert into the request.
insertHeaders
- The HTTP headers to insert into the request.public AwsWafv2CustomRequestHandlingDetails withInsertHeaders(AwsWafv2CustomHttpHeader... insertHeaders)
The HTTP headers to insert into the request.
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.public AwsWafv2CustomRequestHandlingDetails withInsertHeaders(Collection<AwsWafv2CustomHttpHeader> insertHeaders)
The HTTP headers to insert into the request.
insertHeaders
- The HTTP headers to insert into the request.public String toString()
toString
in class Object
Object.toString()
public AwsWafv2CustomRequestHandlingDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.