pub use crate::operation::create_channel_moderator::_create_channel_moderator_output::CreateChannelModeratorOutputBuilder;
pub use crate::operation::create_channel_moderator::_create_channel_moderator_input::CreateChannelModeratorInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateChannelModeratorFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_channel_moderator::builders::CreateChannelModeratorInputBuilder,
}
impl CreateChannelModeratorFluentBuilder {
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::create_channel_moderator::CreateChannelModerator,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::create_channel_moderator::CreateChannelModeratorError,
>,
> {
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::create_channel_moderator::CreateChannelModeratorOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_channel_moderator::CreateChannelModeratorError,
>,
> {
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::create_channel_moderator::CreateChannelModeratorOutput,
::aws_smithy_http::result::SdkError<
crate::operation::create_channel_moderator::CreateChannelModeratorError,
>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::create_channel_moderator::CreateChannelModerator,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<
crate::operation::create_channel_moderator::CreateChannelModeratorError,
>,
> {
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 channel_moderator_arn(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.channel_moderator_arn(input.into());
self
}
pub fn set_channel_moderator_arn(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_channel_moderator_arn(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
}
}