AWSSQSMessage
Objective-C
@interface AWSSQSMessage
Swift
class AWSSQSMessage
An Amazon SQS message.
-
A map of the attributes requested in
ReceiveMessage
to their respective values. Supported attributes:ApproximateReceiveCount
ApproximateFirstReceiveTimestamp
MessageDeduplicationId
MessageGroupId
SenderId
SentTimestamp
SequenceNumber
ApproximateFirstReceiveTimestamp
andSentTimestamp
are each returned as an integer representing the epoch time in milliseconds.Declaration
Objective-C
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nullable attributes;
Swift
var attributes: [String : String]? { get set }
-
The message’s contents (not URL-encoded).
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable body;
Swift
var body: String? { get set }
-
An MD5 digest of the non-URL-encoded message body string.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable MD5OfBody;
Swift
var md5OfBody: String? { get set }
-
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.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable MD5OfMessageAttributes;
Swift
var md5OfMessageAttributes: String? { get set }
-
Each message attribute consists of a
Name
,Type
, andValue
. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.Declaration
Objective-C
@property (nonatomic, strong) NSDictionary<NSString *, AWSSQSMessageAttributeValue *> *_Nullable messageAttributes;
Swift
var messageAttributes: [String : AWSSQSMessageAttributeValue]? { get set }
-
A unique identifier for the message. A
MessageId
is considered unique across all Amazon Web Services accounts for an extended period of time.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable messageId;
Swift
var messageId: String? { get set }
-
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.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable receiptHandle;
Swift
var receiptHandle: String? { get set }