Struct aws_sdk_sqs::types::builders::MessageBuilder
source · #[non_exhaustive]pub struct MessageBuilder { /* private fields */ }Expand description
A builder for Message.
Implementations§
source§impl MessageBuilder
impl MessageBuilder
sourcepub fn message_id(self, input: impl Into<String>) -> Self
pub fn message_id(self, input: impl Into<String>) -> Self
A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time.
sourcepub fn set_message_id(self, input: Option<String>) -> Self
pub fn set_message_id(self, input: Option<String>) -> Self
A unique identifier for the message. A MessageIdis considered unique across all Amazon Web Services accounts for an extended period of time.
sourcepub fn receipt_handle(self, input: impl Into<String>) -> Self
pub fn receipt_handle(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_receipt_handle(self, input: Option<String>) -> Self
pub fn set_receipt_handle(self, input: Option<String>) -> Self
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.
sourcepub fn md5_of_body(self, input: impl Into<String>) -> Self
pub fn md5_of_body(self, input: impl Into<String>) -> Self
An MD5 digest of the non-URL-encoded message body string.
sourcepub fn set_md5_of_body(self, input: Option<String>) -> Self
pub fn set_md5_of_body(self, input: Option<String>) -> Self
An MD5 digest of the non-URL-encoded message body string.
sourcepub fn attributes(
self,
k: MessageSystemAttributeName,
v: impl Into<String>
) -> Self
pub fn attributes( self, k: MessageSystemAttributeName, v: impl Into<String> ) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
A map of the attributes requested in to their respective values. Supported attributes:ReceiveMessage
-
ApproximateReceiveCount -
ApproximateFirstReceiveTimestamp -
MessageDeduplicationId -
MessageGroupId -
SenderId -
SentTimestamp -
SequenceNumber
ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.
sourcepub fn set_attributes(
self,
input: Option<HashMap<MessageSystemAttributeName, String>>
) -> Self
pub fn set_attributes( self, input: Option<HashMap<MessageSystemAttributeName, String>> ) -> Self
A map of the attributes requested in to their respective values. Supported attributes:ReceiveMessage
-
ApproximateReceiveCount -
ApproximateFirstReceiveTimestamp -
MessageDeduplicationId -
MessageGroupId -
SenderId -
SentTimestamp -
SequenceNumber
ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.
sourcepub fn md5_of_message_attributes(self, input: impl Into<String>) -> Self
pub fn md5_of_message_attributes(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_md5_of_message_attributes(self, input: Option<String>) -> Self
pub fn set_md5_of_message_attributes(self, input: Option<String>) -> Self
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.
sourcepub fn message_attributes(
self,
k: impl Into<String>,
v: MessageAttributeValue
) -> Self
pub fn message_attributes( self, k: impl Into<String>, v: MessageAttributeValue ) -> Self
Adds a key-value pair to message_attributes.
To override the contents of this collection use set_message_attributes.
Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.
sourcepub fn set_message_attributes(
self,
input: Option<HashMap<String, MessageAttributeValue>>
) -> Self
pub fn set_message_attributes( self, input: Option<HashMap<String, MessageAttributeValue>> ) -> Self
Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.
Trait Implementations§
source§impl Clone for MessageBuilder
impl Clone for MessageBuilder
source§fn clone(&self) -> MessageBuilder
fn clone(&self) -> MessageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MessageBuilder
impl Debug for MessageBuilder
source§impl Default for MessageBuilder
impl Default for MessageBuilder
source§fn default() -> MessageBuilder
fn default() -> MessageBuilder
source§impl PartialEq<MessageBuilder> for MessageBuilder
impl PartialEq<MessageBuilder> for MessageBuilder
source§fn eq(&self, other: &MessageBuilder) -> bool
fn eq(&self, other: &MessageBuilder) -> bool
self and other values to be equal, and is used
by ==.