Message class
An Amazon SQS message.
Constructors
-
Message.new({Map<
MessageSystemAttributeName, String> ? attributes, String? body, String? mD5OfBody, String? mD5OfMessageAttributes, Map<String, MessageAttributeValue> ? messageAttributes, String? messageId, String? receiptHandle}) - Message.fromXml(XmlElement elem)
-
factory
Properties
-
attributes
→ Map<
MessageSystemAttributeName, String> ? -
A map of the attributes requested in
ReceiveMessage
to their respective values. Supported attributes:final - body → String?
-
The message's contents (not URL-encoded).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mD5OfBody → String?
-
An MD5 digest of the non-URL-encoded message body string.
final
- mD5OfMessageAttributes → String?
-
An MD5 digest of the non-URL-encoded message attribute string. You can use
this attribute to verify that Amazon SQS received the message correctly.
Amazon SQS URL-decodes the message before creating the MD5 digest. For
information about MD5, see RFC1321.
final
-
messageAttributes
→ Map<
String, MessageAttributeValue> ? -
Each message attribute consists of a
Name
,Type
, andValue
. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.final - messageId → String?
-
A unique identifier for the message. A
MessageId
is considered unique across all AWS accounts for an extended period of time.final - receiptHandle → String?
-
An identifier associated with the act of receiving the message. A new
receipt handle is returned every time you receive a message. When deleting a
message, you provide the last received receipt handle to delete the message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited