@Generated(value="software.amazon.awssdk:codegen") public final class CustomHTTPHeader extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomHTTPHeader.Builder,CustomHTTPHeader>
A custom header for custom request and response handling. This is used in CustomResponse and CustomRequestHandling.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomHTTPHeader.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CustomHTTPHeader.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the custom header.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomHTTPHeader.Builder> |
serializableBuilderClass() |
CustomHTTPHeader.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value of the custom header.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name
x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for
the header name sample, WAF inserts the header x-amzn-waf-sample.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name
x-amzn-waf-, to avoid confusion with the headers that are already in the request. For
example, for the header name sample, WAF inserts the header x-amzn-waf-sample.
public final String value()
The value of the custom header.
public CustomHTTPHeader.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CustomHTTPHeader.Builder,CustomHTTPHeader>public static CustomHTTPHeader.Builder builder()
public static Class<? extends CustomHTTPHeader.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.