public class MessageMetadata
extends java.lang.Object
implements java.io.Serializable
Contains metadata related to a message.
| Constructor and Description |
|---|
MessageMetadata() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessageId()
The identifier of the message that contains the metadata information.
|
java.util.List<Receipt> |
getReceipts()
The list of receipt information for a message for different recipients.
|
int |
hashCode() |
void |
setMessageId(java.lang.String messageId)
The identifier of the message that contains the metadata information.
|
void |
setReceipts(java.util.Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageMetadata |
withMessageId(java.lang.String messageId)
The identifier of the message that contains the metadata information.
|
MessageMetadata |
withReceipts(java.util.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 java.lang.String getMessageId()
The identifier of the message that contains the metadata information.
Constraints:
Length: 1 - 256
The identifier of the message that contains the metadata information.
public void setMessageId(java.lang.String messageId)
The identifier of the message that contains the metadata information.
Constraints:
Length: 1 - 256
messageId - The identifier of the message that contains the metadata information.
public MessageMetadata withMessageId(java.lang.String messageId)
The identifier of the message that contains the metadata information.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
messageId - The identifier of the message that contains the metadata information.
public java.util.List<Receipt> getReceipts()
The list of receipt information for a message for different recipients.
The list of receipt information for a message for different recipients.
public void setReceipts(java.util.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.
Returns a reference to this object so that method calls can be chained together.
receipts - The list of receipt information for a message for different recipients.
public MessageMetadata withReceipts(java.util.Collection<Receipt> receipts)
The list of receipt information for a message for different recipients.
Returns a reference to this object so that method calls can be chained together.
receipts - The list of receipt information for a message for different recipients.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object