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
source§impl PartialEq for BatchPutMessageInputBuilder
impl PartialEq for BatchPutMessageInputBuilder
source§fn eq(&self, other: &BatchPutMessageInputBuilder) -> bool
fn eq(&self, other: &BatchPutMessageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.