public class Message extends Object implements Serializable
Constructor and Description |
---|
Message()
Default constructor for a new Message object.
|
Modifier and Type | Method and Description |
---|---|
Message |
addAttributesEntry(String key,
String value)
The method adds a new key-value pair into Attributes parameter, and
returns a reference to this object so that method calls can be chained
together.
|
Message |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes() |
String |
getBody() |
String |
getMD5OfBody() |
String |
getMessageId() |
String |
getReceiptHandle() |
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes) |
void |
setBody(String body) |
void |
setMD5OfBody(String mD5OfBody) |
void |
setMessageId(String messageId) |
void |
setReceiptHandle(String receiptHandle) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Message |
withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
|
Message |
withBody(String body)
Returns a reference to this object so that method calls can be chained together.
|
Message |
withMD5OfBody(String mD5OfBody)
Returns a reference to this object so that method calls can be chained together.
|
Message |
withMessageId(String messageId)
Returns a reference to this object so that method calls can be chained together.
|
Message |
withReceiptHandle(String receiptHandle)
Returns a reference to this object so that method calls can be chained together.
|
public Message()
public String getMessageId()
public void setMessageId(String messageId)
messageId
- public Message withMessageId(String messageId)
Returns a reference to this object so that method calls can be chained together.
messageId
- public String getReceiptHandle()
public void setReceiptHandle(String receiptHandle)
receiptHandle
- public Message withReceiptHandle(String receiptHandle)
Returns a reference to this object so that method calls can be chained together.
receiptHandle
- public String getMD5OfBody()
public void setMD5OfBody(String mD5OfBody)
mD5OfBody
- public Message withMD5OfBody(String mD5OfBody)
Returns a reference to this object so that method calls can be chained together.
mD5OfBody
- public String getBody()
public void setBody(String body)
body
- public Message withBody(String body)
Returns a reference to this object so that method calls can be chained together.
body
- public Message withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- public Message addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into Attributes.public Message clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.