@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageHeader extends Object implements Serializable, Cloneable, StructuredPojo
Contains the name and value of a message header that you add to an email.
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 message header name has to meet the following criteria:
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
name
- The name of the message header. The message header name has to meet the following criteria:
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
public String getName()
The name of the message header. The message header name has to meet the following criteria:
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
public MessageHeader withName(String name)
The name of the message header. The message header name has to meet the following criteria:
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
name
- The name of the message header. The message header name has to meet the following criteria:
Can contain any printable ASCII character (33 - 126) except for colon (:).
Can contain no more than 126 characters.
public void setValue(String value)
The value of the message header. The message header value has to meet the following criteria:
Can contain any printable ASCII character.
Can contain no more than 870 characters.
value
- The value of the message header. The message header value has to meet the following criteria:
Can contain any printable ASCII character.
Can contain no more than 870 characters.
public String getValue()
The value of the message header. The message header value has to meet the following criteria:
Can contain any printable ASCII character.
Can contain no more than 870 characters.
Can contain any printable ASCII character.
Can contain no more than 870 characters.
public MessageHeader withValue(String value)
The value of the message header. The message header value has to meet the following criteria:
Can contain any printable ASCII character.
Can contain no more than 870 characters.
value
- The value of the message header. The message header value has to meet the following criteria:
Can contain any printable ASCII character.
Can contain no more than 870 characters.
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.