@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2CustomHttpHeader extends Object implements Serializable, Cloneable, StructuredPojo
A custom header for custom request and response handling.
Constructor and Description |
---|
AwsWafv2CustomHttpHeader() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2CustomHttpHeader |
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.
|
AwsWafv2CustomHttpHeader |
withName(String name)
The name of the custom header.
|
AwsWafv2CustomHttpHeader |
withValue(String value)
The value of the custom header.
|
public void setName(String name)
The name of the custom header.
name
- The name of the custom header.public String getName()
The name of the custom header.
public AwsWafv2CustomHttpHeader withName(String name)
The name of the custom header.
name
- The name of the custom header.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 AwsWafv2CustomHttpHeader withValue(String value)
The value of the custom header.
value
- The value of the custom header.public String toString()
toString
in class Object
Object.toString()
public AwsWafv2CustomHttpHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.