public static interface Message.Builder extends CopyableBuilder<Message.Builder,Message>
| Modifier and Type | Method and Description |
|---|---|
Message.Builder |
attributes(Map<String,String> attributes)
SenderId, SentTimestamp, ApproximateReceiveCount, and/or
ApproximateFirstReceiveTimestamp. |
Message.Builder |
body(String body)
The message's contents (not URL-encoded).
|
Message.Builder |
md5OfBody(String md5OfBody)
An MD5 digest of the non-URL-encoded message body string.
|
Message.Builder |
md5OfMessageAttributes(String md5OfMessageAttributes)
An MD5 digest of the non-URL-encoded message attribute string.
|
Message.Builder |
messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a
Name, Type, and Value. |
Message.Builder |
messageId(String messageId)
A unique identifier for the message.
|
Message.Builder |
receiptHandle(String receiptHandle)
An identifier associated with the act of receiving the message.
|
copyapply, buildMessage.Builder messageId(String messageId)
A unique identifier for the message. A MessageIdis considered unique across all AWS accounts for
an extended period of time.
messageId - A unique identifier for the message. A MessageIdis considered unique across all AWS
accounts for an extended period of time.Message.Builder receiptHandle(String receiptHandle)
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.
receiptHandle - 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.Message.Builder md5OfBody(String md5OfBody)
An MD5 digest of the non-URL-encoded message body string.
md5OfBody - An MD5 digest of the non-URL-encoded message body string.Message.Builder body(String body)
The message's contents (not URL-encoded).
body - The message's contents (not URL-encoded).Message.Builder attributes(Map<String,String> attributes)
SenderId, SentTimestamp, ApproximateReceiveCount, and/or
ApproximateFirstReceiveTimestamp. SentTimestamp and
ApproximateFirstReceiveTimestamp are each returned as an integer representing the epoch time in milliseconds.
attributes - SenderId, SentTimestamp, ApproximateReceiveCount, and/or
ApproximateFirstReceiveTimestamp. SentTimestamp and
ApproximateFirstReceiveTimestamp are each returned as an integer representing the epoch time in milliseconds.Message.Builder md5OfMessageAttributes(String md5OfMessageAttributes)
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.
md5OfMessageAttributes - 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.Message.Builder messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Each message attribute consists of a Name, Type, and Value. For more
information, see Message Attribute Items and Validation in the Amazon Simple Queue Service Developer Guide.
messageAttributes - Each message attribute consists of a Name, Type, and Value. For
more information, see Message Attribute Items and Validation in the Amazon Simple Queue Service Developer Guide.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.