Struct aws_sdk_iotanalytics::operation::batch_put_message::builders::BatchPutMessageInputBuilder
source · #[non_exhaustive]pub struct BatchPutMessageInputBuilder { /* private fields */ }Expand description
A builder for BatchPutMessageInput.
Implementations§
source§impl BatchPutMessageInputBuilder
impl BatchPutMessageInputBuilder
sourcepub fn channel_name(self, input: impl Into<String>) -> Self
pub fn channel_name(self, input: impl Into<String>) -> Self
The name of the channel where the messages are sent.
This field is required.sourcepub fn set_channel_name(self, input: Option<String>) -> Self
pub fn set_channel_name(self, input: Option<String>) -> Self
The name of the channel where the messages are sent.
sourcepub fn get_channel_name(&self) -> &Option<String>
pub fn get_channel_name(&self) -> &Option<String>
The name of the channel where the messages are sent.
sourcepub fn messages(self, input: Message) -> Self
pub fn messages(self, input: Message) -> Self
Appends an item to messages.
To override the contents of this collection use set_messages.
The list of messages to be sent. Each message has the format: { "messageId": "string", "payload": "string"}.
The field names of message payloads (data) that you send to IoT Analytics:
-
Must contain only alphanumeric characters and undescores (_). No other special characters are allowed.
-
Must begin with an alphabetic character or single underscore (_).
-
Cannot contain hyphens (-).
-
In regular expression terms: "^\[A-Za-z_\](\[A-Za-z0-9\]*|\[A-Za-z0-9\]\[A-Za-z0-9_\]*)$".
-
Cannot be more than 255 characters.
-
Are case insensitive. (Fields named foo and FOO in the same payload are considered duplicates.)
For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01": 29}, {"01_temp": 29} or {"__temp_01": 29} are invalid in message payloads.
sourcepub fn set_messages(self, input: Option<Vec<Message>>) -> Self
pub fn set_messages(self, input: Option<Vec<Message>>) -> Self
The list of messages to be sent. Each message has the format: { "messageId": "string", "payload": "string"}.
The field names of message payloads (data) that you send to IoT Analytics:
-
Must contain only alphanumeric characters and undescores (_). No other special characters are allowed.
-
Must begin with an alphabetic character or single underscore (_).
-
Cannot contain hyphens (-).
-
In regular expression terms: "^\[A-Za-z_\](\[A-Za-z0-9\]*|\[A-Za-z0-9\]\[A-Za-z0-9_\]*)$".
-
Cannot be more than 255 characters.
-
Are case insensitive. (Fields named foo and FOO in the same payload are considered duplicates.)
For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01": 29}, {"01_temp": 29} or {"__temp_01": 29} are invalid in message payloads.
sourcepub fn get_messages(&self) -> &Option<Vec<Message>>
pub fn get_messages(&self) -> &Option<Vec<Message>>
The list of messages to be sent. Each message has the format: { "messageId": "string", "payload": "string"}.
The field names of message payloads (data) that you send to IoT Analytics:
-
Must contain only alphanumeric characters and undescores (_). No other special characters are allowed.
-
Must begin with an alphabetic character or single underscore (_).
-
Cannot contain hyphens (-).
-
In regular expression terms: "^\[A-Za-z_\](\[A-Za-z0-9\]*|\[A-Za-z0-9\]\[A-Za-z0-9_\]*)$".
-
Cannot be more than 255 characters.
-
Are case insensitive. (Fields named foo and FOO in the same payload are considered duplicates.)
For example, {"temp_01": 29} or {"_temp_01": 29} are valid, but {"temp-01": 29}, {"01_temp": 29} or {"__temp_01": 29} are invalid in message payloads.
sourcepub fn build(self) -> Result<BatchPutMessageInput, BuildError>
pub fn build(self) -> Result<BatchPutMessageInput, BuildError>
Consumes the builder and constructs a BatchPutMessageInput.
source§impl BatchPutMessageInputBuilder
impl BatchPutMessageInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<BatchPutMessageOutput, SdkError<BatchPutMessageError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<BatchPutMessageOutput, SdkError<BatchPutMessageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for BatchPutMessageInputBuilder
impl Clone for BatchPutMessageInputBuilder
source§fn clone(&self) -> BatchPutMessageInputBuilder
fn clone(&self) -> BatchPutMessageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BatchPutMessageInputBuilder
impl Debug for BatchPutMessageInputBuilder
source§impl Default for BatchPutMessageInputBuilder
impl Default for BatchPutMessageInputBuilder
source§fn default() -> BatchPutMessageInputBuilder
fn default() -> BatchPutMessageInputBuilder
impl StructuralPartialEq for BatchPutMessageInputBuilder
Auto Trait Implementations§
impl Freeze for BatchPutMessageInputBuilder
impl RefUnwindSafe for BatchPutMessageInputBuilder
impl Send for BatchPutMessageInputBuilder
impl Sync for BatchPutMessageInputBuilder
impl Unpin for BatchPutMessageInputBuilder
impl UnwindSafe for BatchPutMessageInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more