Packagecom.amazonaws.services.sqs.model
Classpublic class Message
InheritanceMessage Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 4
Since : February 1. 2011
Runtime Versions : Flash Player 10.1, AIR 2.5

SQS message object. It is used by ReceiveMessage action.



Public Methods
 MethodDefined By
  
Default constructor for a new Message object.
Message
  
Returns list of attributes.
Message
  
getBody():String
Returns message body.
Message
  
getMD5OfBody():String
Returns MD5 of message body.
Message
  
getMessageId():String
Returns message Id.
Message
  
Returns message receipt handle.
Message
  
setAttributes(attributes:Map):void
Sets message attributes.
Message
  
setBody(body:String):void
Sets message body.
Message
  
setMD5OfBody(mD5OfBody:String):void
Sets MD5 of message body.
Message
  
setMessageId(messageId:String):void
Sets message Id.
Message
  
setReceiptHandle(receiptHandle:String):void
Sets message receipt handle.
Message
  
toString():String
Returns a string representation of this object; useful for testing and debugging.
Message
  
withAttributes(attributes:Map):Message
Returns a reference to this object so that method calls can be chained together.
Message
  
withBody(body:String):Message
Sets message body and returns a reference to this updated object.
Message
  
withMD5OfBody(mD5OfBody:String):Message
Sets MD5 of message body and returns a reference to this updated object.
Message
  
withMessageId(messageId:String):Message
Sets message Id and returns a reference to this updated object.
Message
  
withReceiptHandle(receiptHandle:String):Message
Sets message receipt handle and returns a reference to this updated object.
Message
Constructor Detail
Message()Constructor
public function Message()

Default constructor for a new Message object.

Method Detail
getAttributes()method
public function getAttributes():Map

Returns list of attributes.

Returns
Map — List of attributes.
getBody()method 
public function getBody():String

Returns message body.

Returns
String — message body.
getMD5OfBody()method 
public function getMD5OfBody():String

Returns MD5 of message body.

Returns
String — MD5 of message body.
getMessageId()method 
public function getMessageId():String

Returns message Id.

Returns
String — message Id.
getReceiptHandle()method 
public function getReceiptHandle():String

Returns message receipt handle.

Returns
String — message receipt handle.
setAttributes()method 
public function setAttributes(attributes:Map):void

Sets message attributes.

Parameters

attributes:Map — message attributes.

setBody()method 
public function setBody(body:String):void

Sets message body.

Parameters

body:String — message body (UTF-8 supported).

setMD5OfBody()method 
public function setMD5OfBody(mD5OfBody:String):void

Sets MD5 of message body.

Parameters

mD5OfBody:String — MD5 of message body.

setMessageId()method 
public function setMessageId(messageId:String):void

Sets message Id.

Parameters

messageId:String — message Id.

setReceiptHandle()method 
public function setReceiptHandle(receiptHandle:String):void

Sets message receipt handle.

Parameters

receiptHandle:String — message receipt handle.

toString()method 
public function toString():String

Returns a string representation of this object; useful for testing and debugging.

Returns
String — A string representation of this object.
withAttributes()method 
public function withAttributes(attributes:Map):Message

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

Parameters

attributes:Map — message attributes.

Returns
Message — A reference to this updated object so that method calls can be chained together.
withBody()method 
public function withBody(body:String):Message

Sets message body and returns a reference to this updated object.

Parameters

body:String — message body.

Returns
Message — A reference to this updated object so that method calls can be chained together.
withMD5OfBody()method 
public function withMD5OfBody(mD5OfBody:String):Message

Sets MD5 of message body and returns a reference to this updated object.

Parameters

mD5OfBody:String

Returns
Message — A reference to this updated object so that method calls can be chained together.
withMessageId()method 
public function withMessageId(messageId:String):Message

Sets message Id and returns a reference to this updated object.

Parameters

messageId:String

Returns
Message — A reference to this updated object so that method calls can be chained together.
withReceiptHandle()method 
public function withReceiptHandle(receiptHandle:String):Message

Sets message receipt handle and returns a reference to this updated object.

Parameters

receiptHandle:String — message receipt handle.

Returns
Message — A reference to this updated object so that method calls can be chained together.