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 ==.impl StructuralPartialEq for SendChannelMessageInputBuilder
Auto Trait Implementations§
impl Freeze for SendChannelMessageInputBuilder
impl RefUnwindSafe for SendChannelMessageInputBuilder
impl Send for SendChannelMessageInputBuilder
impl Sync for SendChannelMessageInputBuilder
impl Unpin for SendChannelMessageInputBuilder
impl UnwindSafe for SendChannelMessageInputBuilder
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