@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomHTTPHeader extends Object implements Serializable, Cloneable, StructuredPojo
A custom header for custom request and response handling. This is used in CustomResponse and CustomRequestHandling.
| Constructor and Description | 
|---|
| CustomHTTPHeader() | 
| Modifier and Type | Method and Description | 
|---|---|
| CustomHTTPHeader | clone() | 
| boolean | equals(Object obj) | 
| String | getName()
 The name of the custom header. | 
| String | getValue()
 The value of the custom header. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setName(String name)
 The name of the custom header. | 
| void | setValue(String value)
 The value of the custom header. | 
| String | toString()Returns a string representation of this object. | 
| CustomHTTPHeader | withName(String name)
 The name of the custom header. | 
| CustomHTTPHeader | withValue(String value)
 The value of the custom header. | 
public void setName(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.
 
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.
public String getName()
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 CustomHTTPHeader withName(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.
 
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.
public void setValue(String value)
The value of the custom header.
value - The value of the custom header.public String getValue()
The value of the custom header.
public CustomHTTPHeader withValue(String value)
The value of the custom header.
value - The value of the custom header.public String toString()
toString in class ObjectObject.toString()public CustomHTTPHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.