Struct aws_sdk_chime::operation::send_channel_message::builders::SendChannelMessageInputBuilder
source · #[non_exhaustive]pub struct SendChannelMessageInputBuilder { /* private fields */ }
Expand description
A builder for SendChannelMessageInput
.
Implementations§
source§impl SendChannelMessageInputBuilder
impl SendChannelMessageInputBuilder
sourcepub fn channel_arn(self, input: impl Into<String>) -> Self
pub fn channel_arn(self, input: impl Into<String>) -> Self
The ARN of the channel.
This field is required.sourcepub fn set_channel_arn(self, input: Option<String>) -> Self
pub fn set_channel_arn(self, input: Option<String>) -> Self
The ARN of the channel.
sourcepub fn get_channel_arn(&self) -> &Option<String>
pub fn get_channel_arn(&self) -> &Option<String>
The ARN of the channel.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The content of the message.
This field is required.sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The content of the message.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The content of the message.
sourcepub fn type(self, input: ChannelMessageType) -> Self
pub fn type(self, input: ChannelMessageType) -> Self
The type of message, STANDARD
or CONTROL
.
sourcepub fn set_type(self, input: Option<ChannelMessageType>) -> Self
pub fn set_type(self, input: Option<ChannelMessageType>) -> Self
The type of message, STANDARD
or CONTROL
.
sourcepub fn get_type(&self) -> &Option<ChannelMessageType>
pub fn get_type(&self) -> &Option<ChannelMessageType>
The type of message, STANDARD
or CONTROL
.
sourcepub fn persistence(self, input: ChannelMessagePersistenceType) -> Self
pub fn persistence(self, input: ChannelMessagePersistenceType) -> Self
Boolean that controls whether the message is persisted on the back end. Required.
This field is required.sourcepub fn set_persistence(
self,
input: Option<ChannelMessagePersistenceType>
) -> Self
pub fn set_persistence( self, input: Option<ChannelMessagePersistenceType> ) -> Self
Boolean that controls whether the message is persisted on the back end. Required.
sourcepub fn get_persistence(&self) -> &Option<ChannelMessagePersistenceType>
pub fn get_persistence(&self) -> &Option<ChannelMessagePersistenceType>
Boolean that controls whether the message is persisted on the back end. Required.
sourcepub fn metadata(self, input: impl Into<String>) -> Self
pub fn metadata(self, input: impl Into<String>) -> Self
The optional metadata for each message.
sourcepub fn set_metadata(self, input: Option<String>) -> Self
pub fn set_metadata(self, input: Option<String>) -> Self
The optional metadata for each message.
sourcepub fn get_metadata(&self) -> &Option<String>
pub fn get_metadata(&self) -> &Option<String>
The optional metadata for each message.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
The Idempotency
token for each client request.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
The Idempotency
token for each client request.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
The Idempotency
token for each client request.
sourcepub fn chime_bearer(self, input: impl Into<String>) -> Self
pub fn chime_bearer(self, input: impl Into<String>) -> Self
The AppInstanceUserArn
of the user that makes the API call.
sourcepub fn set_chime_bearer(self, input: Option<String>) -> Self
pub fn set_chime_bearer(self, input: Option<String>) -> Self
The AppInstanceUserArn
of the user that makes the API call.
sourcepub fn get_chime_bearer(&self) -> &Option<String>
pub fn get_chime_bearer(&self) -> &Option<String>
The AppInstanceUserArn
of the user that makes the API call.
sourcepub fn build(self) -> Result<SendChannelMessageInput, BuildError>
pub fn build(self) -> Result<SendChannelMessageInput, BuildError>
Consumes the builder and constructs a SendChannelMessageInput
.
source§impl SendChannelMessageInputBuilder
impl SendChannelMessageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendChannelMessageOutput, SdkError<SendChannelMessageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendChannelMessageOutput, SdkError<SendChannelMessageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendChannelMessageInputBuilder
impl Clone for SendChannelMessageInputBuilder
source§fn clone(&self) -> SendChannelMessageInputBuilder
fn clone(&self) -> SendChannelMessageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SendChannelMessageInputBuilder
impl Default for SendChannelMessageInputBuilder
source§fn default() -> SendChannelMessageInputBuilder
fn default() -> SendChannelMessageInputBuilder
source§impl PartialEq for SendChannelMessageInputBuilder
impl PartialEq for SendChannelMessageInputBuilder
source§fn eq(&self, other: &SendChannelMessageInputBuilder) -> bool
fn eq(&self, other: &SendChannelMessageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.