pub struct Builder { /* private fields */ }
Expand description

A builder for UpdateIntentInput.

Implementations§

The unique identifier of the intent to update.

Examples found in repository?
src/client.rs (line 8874)
8873
8874
8875
8876
        pub fn intent_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.intent_id(input.into());
            self
        }

The unique identifier of the intent to update.

Examples found in repository?
src/client.rs (line 8879)
8878
8879
8880
8881
        pub fn set_intent_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_intent_id(input);
            self
        }

The new name for the intent.

Examples found in repository?
src/client.rs (line 8884)
8883
8884
8885
8886
        pub fn intent_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.intent_name(input.into());
            self
        }

The new name for the intent.

Examples found in repository?
src/client.rs (line 8889)
8888
8889
8890
8891
        pub fn set_intent_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_intent_name(input);
            self
        }

The new description of the intent.

Examples found in repository?
src/client.rs (line 8894)
8893
8894
8895
8896
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The new description of the intent.

Examples found in repository?
src/client.rs (line 8899)
8898
8899
8900
8901
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

The signature of the new built-in intent to use as the parent of this intent.

Examples found in repository?
src/client.rs (line 8904)
8903
8904
8905
8906
        pub fn parent_intent_signature(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.parent_intent_signature(input.into());
            self
        }

The signature of the new built-in intent to use as the parent of this intent.

Examples found in repository?
src/client.rs (line 8912)
8908
8909
8910
8911
8912
8913
8914
        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
        }

Appends an item to sample_utterances.

To override the contents of this collection use set_sample_utterances.

New utterances used to invoke the intent.

Examples found in repository?
src/client.rs (line 8921)
8920
8921
8922
8923
        pub fn sample_utterances(mut self, input: crate::model::SampleUtterance) -> Self {
            self.inner = self.inner.sample_utterances(input);
            self
        }

New utterances used to invoke the intent.

Examples found in repository?
src/client.rs (line 8929)
8925
8926
8927
8928
8929
8930
8931
        pub fn set_sample_utterances(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::SampleUtterance>>,
        ) -> Self {
            self.inner = self.inner.set_sample_utterances(input);
            self
        }

The new Lambda function to use between each turn of the conversation with the bot.

Examples found in repository?
src/client.rs (line 8934)
8933
8934
8935
8936
        pub fn dialog_code_hook(mut self, input: crate::model::DialogCodeHookSettings) -> Self {
            self.inner = self.inner.dialog_code_hook(input);
            self
        }

The new Lambda function to use between each turn of the conversation with the bot.

Examples found in repository?
src/client.rs (line 8942)
8938
8939
8940
8941
8942
8943
8944
        pub fn set_dialog_code_hook(
            mut self,
            input: std::option::Option<crate::model::DialogCodeHookSettings>,
        ) -> Self {
            self.inner = self.inner.set_dialog_code_hook(input);
            self
        }

The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.

Examples found in repository?
src/client.rs (line 8950)
8946
8947
8948
8949
8950
8951
8952
        pub fn fulfillment_code_hook(
            mut self,
            input: crate::model::FulfillmentCodeHookSettings,
        ) -> Self {
            self.inner = self.inner.fulfillment_code_hook(input);
            self
        }

The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.

Examples found in repository?
src/client.rs (line 8958)
8954
8955
8956
8957
8958
8959
8960
        pub fn set_fulfillment_code_hook(
            mut self,
            input: std::option::Option<crate::model::FulfillmentCodeHookSettings>,
        ) -> Self {
            self.inner = self.inner.set_fulfillment_code_hook(input);
            self
        }

Appends an item to slot_priorities.

To override the contents of this collection use set_slot_priorities.

A new list of slots and their priorities that are contained by the intent.

Examples found in repository?
src/client.rs (line 8967)
8966
8967
8968
8969
        pub fn slot_priorities(mut self, input: crate::model::SlotPriority) -> Self {
            self.inner = self.inner.slot_priorities(input);
            self
        }

A new list of slots and their priorities that are contained by the intent.

Examples found in repository?
src/client.rs (line 8975)
8971
8972
8973
8974
8975
8976
8977
        pub fn set_slot_priorities(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::SlotPriority>>,
        ) -> Self {
            self.inner = self.inner.set_slot_priorities(input);
            self
        }

New prompts that Amazon Lex sends to the user to confirm the completion of an intent.

Examples found in repository?
src/client.rs (line 8983)
8979
8980
8981
8982
8983
8984
8985
        pub fn intent_confirmation_setting(
            mut self,
            input: crate::model::IntentConfirmationSetting,
        ) -> Self {
            self.inner = self.inner.intent_confirmation_setting(input);
            self
        }

New prompts that Amazon Lex sends to the user to confirm the completion of an intent.

Examples found in repository?
src/client.rs (line 8991)
8987
8988
8989
8990
8991
8992
8993
        pub fn set_intent_confirmation_setting(
            mut self,
            input: std::option::Option<crate::model::IntentConfirmationSetting>,
        ) -> Self {
            self.inner = self.inner.set_intent_confirmation_setting(input);
            self
        }

The new response that Amazon Lex sends the user when the intent is closed.

Examples found in repository?
src/client.rs (line 8996)
8995
8996
8997
8998
        pub fn intent_closing_setting(mut self, input: crate::model::IntentClosingSetting) -> Self {
            self.inner = self.inner.intent_closing_setting(input);
            self
        }

The new response that Amazon Lex sends the user when the intent is closed.

Examples found in repository?
src/client.rs (line 9004)
9000
9001
9002
9003
9004
9005
9006
        pub fn set_intent_closing_setting(
            mut self,
            input: std::option::Option<crate::model::IntentClosingSetting>,
        ) -> Self {
            self.inner = self.inner.set_intent_closing_setting(input);
            self
        }

Appends an item to input_contexts.

To override the contents of this collection use set_input_contexts.

A new list of contexts that must be active in order for Amazon Lex to consider the intent.

Examples found in repository?
src/client.rs (line 9013)
9012
9013
9014
9015
        pub fn input_contexts(mut self, input: crate::model::InputContext) -> Self {
            self.inner = self.inner.input_contexts(input);
            self
        }

A new list of contexts that must be active in order for Amazon Lex to consider the intent.

Examples found in repository?
src/client.rs (line 9021)
9017
9018
9019
9020
9021
9022
9023
        pub fn set_input_contexts(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::InputContext>>,
        ) -> Self {
            self.inner = self.inner.set_input_contexts(input);
            self
        }

Appends an item to output_contexts.

To override the contents of this collection use set_output_contexts.

A new list of contexts that Amazon Lex activates when the intent is fulfilled.

Examples found in repository?
src/client.rs (line 9030)
9029
9030
9031
9032
        pub fn output_contexts(mut self, input: crate::model::OutputContext) -> Self {
            self.inner = self.inner.output_contexts(input);
            self
        }

A new list of contexts that Amazon Lex activates when the intent is fulfilled.

Examples found in repository?
src/client.rs (line 9038)
9034
9035
9036
9037
9038
9039
9040
        pub fn set_output_contexts(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::OutputContext>>,
        ) -> Self {
            self.inner = self.inner.set_output_contexts(input);
            self
        }

New configuration settings for connecting to an Amazon Kendra index.

Examples found in repository?
src/client.rs (line 9043)
9042
9043
9044
9045
        pub fn kendra_configuration(mut self, input: crate::model::KendraConfiguration) -> Self {
            self.inner = self.inner.kendra_configuration(input);
            self
        }

New configuration settings for connecting to an Amazon Kendra index.

Examples found in repository?
src/client.rs (line 9051)
9047
9048
9049
9050
9051
9052
9053
        pub fn set_kendra_configuration(
            mut self,
            input: std::option::Option<crate::model::KendraConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_kendra_configuration(input);
            self
        }

The identifier of the bot that contains the intent.

Examples found in repository?
src/client.rs (line 9056)
9055
9056
9057
9058
        pub fn bot_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.bot_id(input.into());
            self
        }

The identifier of the bot that contains the intent.

Examples found in repository?
src/client.rs (line 9061)
9060
9061
9062
9063
        pub fn set_bot_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_bot_id(input);
            self
        }

The version of the bot that contains the intent. Must be DRAFT.

Examples found in repository?
src/client.rs (line 9066)
9065
9066
9067
9068
        pub fn bot_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.bot_version(input.into());
            self
        }

The version of the bot that contains the intent. Must be DRAFT.

Examples found in repository?
src/client.rs (line 9071)
9070
9071
9072
9073
        pub fn set_bot_version(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_bot_version(input);
            self
        }

The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see Supported languages.

Examples found in repository?
src/client.rs (line 9076)
9075
9076
9077
9078
        pub fn locale_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.locale_id(input.into());
            self
        }

The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see Supported languages.

Examples found in repository?
src/client.rs (line 9081)
9080
9081
9082
9083
        pub fn set_locale_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_locale_id(input);
            self
        }

Examples found in repository?
src/client.rs (line 9089)
9085
9086
9087
9088
9089
9090
9091
        pub fn initial_response_setting(
            mut self,
            input: crate::model::InitialResponseSetting,
        ) -> Self {
            self.inner = self.inner.initial_response_setting(input);
            self
        }

Examples found in repository?
src/client.rs (line 9097)
9093
9094
9095
9096
9097
9098
9099
        pub fn set_initial_response_setting(
            mut self,
            input: std::option::Option<crate::model::InitialResponseSetting>,
        ) -> Self {
            self.inner = self.inner.set_initial_response_setting(input);
            self
        }

Consumes the builder and constructs a UpdateIntentInput.

Examples found in repository?
src/client.rs (line 8841)
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateIntent,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::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)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::UpdateIntentOutput,
            aws_smithy_http::result::SdkError<crate::error::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
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more