Struct aws_sdk_iotanalytics::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
The ID you want to assign to the message. Each messageId
must be unique within each batch sent.
sourcepub fn set_message_id(self, input: Option<String>) -> Self
pub fn set_message_id(self, input: Option<String>) -> Self
The ID you want to assign to the message. Each messageId
must be unique within each batch sent.
sourcepub fn get_message_id(&self) -> &Option<String>
pub fn get_message_id(&self) -> &Option<String>
The ID you want to assign to the message. Each messageId
must be unique within each batch sent.
sourcepub fn payload(self, input: Blob) -> Self
pub fn payload(self, input: Blob) -> Self
The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.
This field is required.sourcepub fn set_payload(self, input: Option<Blob>) -> Self
pub fn set_payload(self, input: Option<Blob>) -> Self
The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.
sourcepub fn get_payload(&self) -> &Option<Blob>
pub fn get_payload(&self) -> &Option<Blob>
The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.
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 for MessageBuilder
impl PartialEq 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 ==
.