@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageHeader extends Object implements Serializable, Cloneable, StructuredPojo
Contains the name and value pair of an email header to add to your email. You can have up to 15 MessageHeaders. A header can contain information such as the sender, receiver, route, or timestamp.
Constructor and Description |
---|
MessageHeader() |
Modifier and Type | Method and Description |
---|---|
MessageHeader |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the message header.
|
String |
getValue()
The value of the message header.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the message header.
|
void |
setValue(String value)
The value of the message header.
|
String |
toString()
Returns a string representation of this object.
|
MessageHeader |
withName(String name)
The name of the message header.
|
MessageHeader |
withValue(String value)
The value of the message header.
|
public void setName(String name)
The name of the message header. The header name can contain up to 126 characters.
name
- The name of the message header. The header name can contain up to 126 characters.public String getName()
The name of the message header. The header name can contain up to 126 characters.
public MessageHeader withName(String name)
The name of the message header. The header name can contain up to 126 characters.
name
- The name of the message header. The header name can contain up to 126 characters.public void setValue(String value)
The value of the message header. The header value can contain up to 870 characters, including the length of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.
value
- The value of the message header. The header value can contain up to 870 characters, including the length
of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as
YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.public String getValue()
The value of the message header. The header value can contain up to 870 characters, including the length of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.
public MessageHeader withValue(String value)
The value of the message header. The header value can contain up to 870 characters, including the length of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.
value
- The value of the message header. The header value can contain up to 870 characters, including the length
of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as
YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.public String toString()
toString
in class Object
Object.toString()
public MessageHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.