pub use crate::operation::update_intent::_update_intent_output::UpdateIntentOutputBuilder;
pub use crate::operation::update_intent::_update_intent_input::UpdateIntentInputBuilder;
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateIntentFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_intent::builders::UpdateIntentInputBuilder,
}
impl UpdateIntentFluentBuilder {
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::update_intent::UpdateIntent,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::update_intent::UpdateIntentError>,
> {
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::update_intent::UpdateIntentOutput,
::aws_smithy_http::result::SdkError<crate::operation::update_intent::UpdateIntentError>,
> {
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::update_intent::UpdateIntentOutput,
::aws_smithy_http::result::SdkError<crate::operation::update_intent::UpdateIntentError>,
> {
self.send_middleware().await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::update_intent::UpdateIntent,
::aws_http::retry::AwsResponseRetryClassifier,
>,
::aws_smithy_http::result::SdkError<crate::operation::update_intent::UpdateIntentError>,
> {
self.customize_middleware().await
}
pub fn intent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.intent_id(input.into());
self
}
pub fn set_intent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_intent_id(input);
self
}
pub fn intent_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.intent_name(input.into());
self
}
pub fn set_intent_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_intent_name(input);
self
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn parent_intent_signature(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.parent_intent_signature(input.into());
self
}
pub fn set_parent_intent_signature(
mut self,
input: ::std::option::Option<::std::string::String>,
) -> Self {
self.inner = self.inner.set_parent_intent_signature(input);
self
}
pub fn sample_utterances(mut self, input: crate::types::SampleUtterance) -> Self {
self.inner = self.inner.sample_utterances(input);
self
}
pub fn set_sample_utterances(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::SampleUtterance>>,
) -> Self {
self.inner = self.inner.set_sample_utterances(input);
self
}
pub fn dialog_code_hook(mut self, input: crate::types::DialogCodeHookSettings) -> Self {
self.inner = self.inner.dialog_code_hook(input);
self
}
pub fn set_dialog_code_hook(
mut self,
input: ::std::option::Option<crate::types::DialogCodeHookSettings>,
) -> Self {
self.inner = self.inner.set_dialog_code_hook(input);
self
}
pub fn fulfillment_code_hook(
mut self,
input: crate::types::FulfillmentCodeHookSettings,
) -> Self {
self.inner = self.inner.fulfillment_code_hook(input);
self
}
pub fn set_fulfillment_code_hook(
mut self,
input: ::std::option::Option<crate::types::FulfillmentCodeHookSettings>,
) -> Self {
self.inner = self.inner.set_fulfillment_code_hook(input);
self
}
pub fn slot_priorities(mut self, input: crate::types::SlotPriority) -> Self {
self.inner = self.inner.slot_priorities(input);
self
}
pub fn set_slot_priorities(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::SlotPriority>>,
) -> Self {
self.inner = self.inner.set_slot_priorities(input);
self
}
pub fn intent_confirmation_setting(
mut self,
input: crate::types::IntentConfirmationSetting,
) -> Self {
self.inner = self.inner.intent_confirmation_setting(input);
self
}
pub fn set_intent_confirmation_setting(
mut self,
input: ::std::option::Option<crate::types::IntentConfirmationSetting>,
) -> Self {
self.inner = self.inner.set_intent_confirmation_setting(input);
self
}
pub fn intent_closing_setting(mut self, input: crate::types::IntentClosingSetting) -> Self {
self.inner = self.inner.intent_closing_setting(input);
self
}
pub fn set_intent_closing_setting(
mut self,
input: ::std::option::Option<crate::types::IntentClosingSetting>,
) -> Self {
self.inner = self.inner.set_intent_closing_setting(input);
self
}
pub fn input_contexts(mut self, input: crate::types::InputContext) -> Self {
self.inner = self.inner.input_contexts(input);
self
}
pub fn set_input_contexts(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::InputContext>>,
) -> Self {
self.inner = self.inner.set_input_contexts(input);
self
}
pub fn output_contexts(mut self, input: crate::types::OutputContext) -> Self {
self.inner = self.inner.output_contexts(input);
self
}
pub fn set_output_contexts(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::OutputContext>>,
) -> Self {
self.inner = self.inner.set_output_contexts(input);
self
}
pub fn kendra_configuration(mut self, input: crate::types::KendraConfiguration) -> Self {
self.inner = self.inner.kendra_configuration(input);
self
}
pub fn set_kendra_configuration(
mut self,
input: ::std::option::Option<crate::types::KendraConfiguration>,
) -> Self {
self.inner = self.inner.set_kendra_configuration(input);
self
}
pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.bot_id(input.into());
self
}
pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_bot_id(input);
self
}
pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.bot_version(input.into());
self
}
pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_bot_version(input);
self
}
pub fn locale_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.locale_id(input.into());
self
}
pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_locale_id(input);
self
}
pub fn initial_response_setting(mut self, input: crate::types::InitialResponseSetting) -> Self {
self.inner = self.inner.initial_response_setting(input);
self
}
pub fn set_initial_response_setting(
mut self,
input: ::std::option::Option<crate::types::InitialResponseSetting>,
) -> Self {
self.inner = self.inner.set_initial_response_setting(input);
self
}
}