@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SingleHeader extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
One of the headers in a web request, identified by name, for example, User-Agent
or Referer
. This setting isn't case sensitive.
This is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
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 Object
Object.toString()
public SingleHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.