pub use crate::operation::delete_channel_moderator::_delete_channel_moderator_output::DeleteChannelModeratorOutputBuilder;
pub use crate::operation::delete_channel_moderator::_delete_channel_moderator_input::DeleteChannelModeratorInputBuilder;
impl crate::operation::delete_channel_moderator::builders::DeleteChannelModeratorInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::delete_channel_moderator::DeleteChannelModeratorOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_channel_moderator::DeleteChannelModeratorError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.delete_channel_moderator();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[deprecated(note = "Replaced by DeleteChannelModerator in the Amazon Chime SDK Messaging Namespace")]
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct DeleteChannelModeratorFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::delete_channel_moderator::builders::DeleteChannelModeratorInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::delete_channel_moderator::DeleteChannelModeratorOutput,
crate::operation::delete_channel_moderator::DeleteChannelModeratorError,
> for DeleteChannelModeratorFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::delete_channel_moderator::DeleteChannelModeratorOutput,
crate::operation::delete_channel_moderator::DeleteChannelModeratorError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl DeleteChannelModeratorFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::delete_channel_moderator::builders::DeleteChannelModeratorInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::delete_channel_moderator::DeleteChannelModeratorOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_channel_moderator::DeleteChannelModeratorError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::delete_channel_moderator::DeleteChannelModerator::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::delete_channel_moderator::DeleteChannelModerator::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::delete_channel_moderator::DeleteChannelModeratorOutput,
crate::operation::delete_channel_moderator::DeleteChannelModeratorError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
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 get_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_channel_arn()
}
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 get_channel_moderator_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_channel_moderator_arn()
}
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
}
pub fn get_chime_bearer(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_chime_bearer()
}
}