@Generated(value="software.amazon.awssdk:codegen") public final class CustomRequestHandling extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomRequestHandling.Builder,CustomRequestHandling>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomRequestHandling.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CustomRequestHandling.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInsertHeaders()
Returns true if the InsertHeaders property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<CustomHTTPHeader> |
insertHeaders()
The HTTP headers to insert into the request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomRequestHandling.Builder> |
serializableBuilderClass() |
CustomRequestHandling.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasInsertHeaders()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInsertHeaders() to see if a value was sent in this field.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CustomRequestHandling.Builder,CustomRequestHandling>public static CustomRequestHandling.Builder builder()
public static Class<? extends CustomRequestHandling.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.