pub use crate::operation::send_channel_message::_send_channel_message_output::SendChannelMessageOutputBuilder;
pub use crate::operation::send_channel_message::_send_channel_message_input::SendChannelMessageInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct SendChannelMessageFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::send_channel_message::builders::SendChannelMessageInputBuilder,
}
impl SendChannelMessageFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
}
}
#[doc(hidden)]
pub async fn customize_middleware(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::send_channel_message::SendChannelMessage,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::send_channel_message::SendChannelMessageError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
::std::result::Result::Ok(crate::client::customize::CustomizableOperation {
handle,
operation,
})
}
#[doc(hidden)]
pub async fn send_middleware(
self,
) -> ::std::result::Result<
crate::operation::send_channel_message::SendChannelMessageOutput,
::aws_smithy_http::result::SdkError<
crate::operation::send_channel_message::SendChannelMessageError,
>,
> {
let op = self
.inner
.build()
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::send_channel_message::SendChannelMessageOutput,
::aws_smithy_http::result::SdkError<
crate::operation::send_channel_message::SendChannelMessageError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::send_channel_message::SendChannelMessage,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::send_channel_message::SendChannelMessageError,
>,
> {
self.customize_middleware().await
}
pub fn channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.channel_arn(input.into());
self
}
pub fn set_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_channel_arn(input);
self
}
pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.content(input.into());
self
}
pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_content(input);
self
}
pub fn r#type(mut self, input: crate::types::ChannelMessageType) -> Self {
self.inner = self.inner.r#type(input);
self
}
pub fn set_type(
mut self,
input: ::std::option::Option<crate::types::ChannelMessageType>,
) -> Self {
self.inner = self.inner.set_type(input);
self
}
pub fn persistence(mut self, input: crate::types::ChannelMessagePersistenceType) -> Self {
self.inner = self.inner.persistence(input);
self
}
pub fn set_persistence(
mut self,
input: ::std::option::Option<crate::types::ChannelMessagePersistenceType>,
) -> Self {
self.inner = self.inner.set_persistence(input);
self
}
pub fn metadata(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.metadata(input.into());
self
}
pub fn set_metadata(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_metadata(input);
self
}
pub fn client_request_token(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.client_request_token(input.into());
self
}
pub fn set_client_request_token(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_client_request_token(input);
self
}
pub fn chime_bearer(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.chime_bearer(input.into());
self
}
pub fn set_chime_bearer(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_chime_bearer(input);
self
}
}