@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata related to a message.
Constructor and Description |
---|
MessageMetadata() |
Modifier and Type | Method and Description |
---|---|
MessageMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getMessageId()
The identifier of the message that contains the metadata information.
|
List<Receipt> |
getReceipts()
The list of receipt information for a message for different recipients.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessageId(String messageId)
The identifier of the message that contains the metadata information.
|
void |
setReceipts(Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
|
String |
toString()
Returns a string representation of this object.
|
MessageMetadata |
withMessageId(String messageId)
The identifier of the message that contains the metadata information.
|
MessageMetadata |
withReceipts(Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
|
MessageMetadata |
withReceipts(Receipt... receipts)
The list of receipt information for a message for different recipients.
|
public void setMessageId(String messageId)
The identifier of the message that contains the metadata information.
messageId
- The identifier of the message that contains the metadata information.public String getMessageId()
The identifier of the message that contains the metadata information.
public MessageMetadata withMessageId(String messageId)
The identifier of the message that contains the metadata information.
messageId
- The identifier of the message that contains the metadata information.public List<Receipt> getReceipts()
The list of receipt information for a message for different recipients.
public void setReceipts(Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
receipts
- The list of receipt information for a message for different recipients.public MessageMetadata withReceipts(Receipt... receipts)
The list of receipt information for a message for different recipients.
NOTE: This method appends the values to the existing list (if any). Use
setReceipts(java.util.Collection)
or withReceipts(java.util.Collection)
if you want to override
the existing values.
receipts
- The list of receipt information for a message for different recipients.public MessageMetadata withReceipts(Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
receipts
- The list of receipt information for a message for different recipients.public String toString()
toString
in class Object
Object.toString()
public MessageMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.