@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SingleHeader extends Object implements Serializable, Cloneable, StructuredPojo
Inspect one of the headers in the web request, identified by name, for example, User-Agent or
Referer. The name isn't case sensitive.
You can filter and inspect all headers with the FieldToMatch setting Headers.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Example JSON: "SingleHeader": { "Name": "haystack" }
| Constructor and Description |
|---|
SingleHeader() |
| Modifier and Type | Method and Description |
|---|---|
SingleHeader |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the query header to inspect.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the query header to inspect.
|
String |
toString()
Returns a string representation of this object.
|
SingleHeader |
withName(String name)
The name of the query header to inspect.
|
public void setName(String name)
The name of the query header to inspect.
name - The name of the query header to inspect.public String getName()
The name of the query header to inspect.
public SingleHeader withName(String name)
The name of the query header to inspect.
name - The name of the query header to inspect.public String toString()
toString in class ObjectObject.toString()public SingleHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.