@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddHeaderAction extends Object implements Serializable, Cloneable, StructuredPojo
The action to add a header to a message. When executed, this action will add the given header to the message.
Constructor and Description |
---|
AddHeaderAction() |
Modifier and Type | Method and Description |
---|---|
AddHeaderAction |
clone() |
boolean |
equals(Object obj) |
String |
getHeaderName()
The name of the header to add to an email.
|
String |
getHeaderValue()
The value of the header to add to the email.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeaderName(String headerName)
The name of the header to add to an email.
|
void |
setHeaderValue(String headerValue)
The value of the header to add to the email.
|
String |
toString()
Returns a string representation of this object.
|
AddHeaderAction |
withHeaderName(String headerName)
The name of the header to add to an email.
|
AddHeaderAction |
withHeaderValue(String headerValue)
The value of the header to add to the email.
|
public void setHeaderName(String headerName)
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
headerName
- The name of the header to add to an email. The header must be prefixed with "X-". Headers are added
regardless of whether the header name pre-existed in the email.public String getHeaderName()
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
public AddHeaderAction withHeaderName(String headerName)
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
headerName
- The name of the header to add to an email. The header must be prefixed with "X-". Headers are added
regardless of whether the header name pre-existed in the email.public void setHeaderValue(String headerValue)
The value of the header to add to the email.
headerValue
- The value of the header to add to the email.public String getHeaderValue()
The value of the header to add to the email.
public AddHeaderAction withHeaderValue(String headerValue)
The value of the header to add to the email.
headerValue
- The value of the header to add to the email.public String toString()
toString
in class Object
Object.toString()
public AddHeaderAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.