com.amazonaws.services.sqs.model
Class Message

java.lang.Object
  extended by com.amazonaws.services.sqs.model.Message

public class Message
extends java.lang.Object


Constructor Summary
Message()
          Default constructor for a new Message object.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.lang.String getBody()
           
 java.lang.String getMD5OfBody()
           
 java.lang.String getMessageId()
           
 java.lang.String getReceiptHandle()
           
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
           
 void setBody(java.lang.String body)
           
 void setMD5OfBody(java.lang.String mD5OfBody)
           
 void setMessageId(java.lang.String messageId)
           
 void setReceiptHandle(java.lang.String receiptHandle)
           
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Message withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
           Returns a reference to this object so that method calls can be chained together.
 Message withBody(java.lang.String body)
           Returns a reference to this object so that method calls can be chained together.
 Message withMD5OfBody(java.lang.String mD5OfBody)
           Returns a reference to this object so that method calls can be chained together.
 Message withMessageId(java.lang.String messageId)
           Returns a reference to this object so that method calls can be chained together.
 Message withReceiptHandle(java.lang.String receiptHandle)
           Returns a reference to this object so that method calls can be chained together.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message()
Default constructor for a new Message object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getMessageId

public java.lang.String getMessageId()
Returns:

setMessageId

public void setMessageId(java.lang.String messageId)
Parameters:
messageId -

withMessageId

public Message withMessageId(java.lang.String messageId)

Returns a reference to this object so that method calls can be chained together.

Parameters:
messageId -
Returns:
A reference to this updated object so that method calls can be chained together.

getReceiptHandle

public java.lang.String getReceiptHandle()
Returns:

setReceiptHandle

public void setReceiptHandle(java.lang.String receiptHandle)
Parameters:
receiptHandle -

withReceiptHandle

public Message withReceiptHandle(java.lang.String receiptHandle)

Returns a reference to this object so that method calls can be chained together.

Parameters:
receiptHandle -
Returns:
A reference to this updated object so that method calls can be chained together.

getMD5OfBody

public java.lang.String getMD5OfBody()
Returns:

setMD5OfBody

public void setMD5OfBody(java.lang.String mD5OfBody)
Parameters:
mD5OfBody -

withMD5OfBody

public Message withMD5OfBody(java.lang.String mD5OfBody)

Returns a reference to this object so that method calls can be chained together.

Parameters:
mD5OfBody -
Returns:
A reference to this updated object so that method calls can be chained together.

getBody

public java.lang.String getBody()
Returns:

setBody

public void setBody(java.lang.String body)
Parameters:
body -

withBody

public Message withBody(java.lang.String body)

Returns a reference to this object so that method calls can be chained together.

Parameters:
body -
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Returns:

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Parameters:
attributes -

withAttributes

public Message withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributes -
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.