aws_sdk_connect/operation/associate_lex_bot/
builders.rspub use crate::operation::associate_lex_bot::_associate_lex_bot_output::AssociateLexBotOutputBuilder;
pub use crate::operation::associate_lex_bot::_associate_lex_bot_input::AssociateLexBotInputBuilder;
impl crate::operation::associate_lex_bot::builders::AssociateLexBotInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::associate_lex_bot::AssociateLexBotOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_lex_bot::AssociateLexBotError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.associate_lex_bot();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct AssociateLexBotFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::associate_lex_bot::builders::AssociateLexBotInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::associate_lex_bot::AssociateLexBotOutput,
crate::operation::associate_lex_bot::AssociateLexBotError,
> for AssociateLexBotFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::associate_lex_bot::AssociateLexBotOutput,
crate::operation::associate_lex_bot::AssociateLexBotError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl AssociateLexBotFluentBuilder {
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::associate_lex_bot::builders::AssociateLexBotInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::associate_lex_bot::AssociateLexBotOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_lex_bot::AssociateLexBotError,
::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::associate_lex_bot::AssociateLexBot::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::associate_lex_bot::AssociateLexBot::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::associate_lex_bot::AssociateLexBotOutput,
crate::operation::associate_lex_bot::AssociateLexBotError,
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 instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.instance_id(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_instance_id(input);
self
}
pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_instance_id()
}
pub fn lex_bot(mut self, input: crate::types::LexBot) -> Self {
self.inner = self.inner.lex_bot(input);
self
}
pub fn set_lex_bot(mut self, input: ::std::option::Option<crate::types::LexBot>) -> Self {
self.inner = self.inner.set_lex_bot(input);
self
}
pub fn get_lex_bot(&self) -> &::std::option::Option<crate::types::LexBot> {
self.inner.get_lex_bot()
}
}