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

A builder for CreateSlotInput.

Implementations§

The name of the slot. Slot names must be unique within the bot that contains the slot.

Examples found in repository?
src/client.rs (line 2839)
2838
2839
2840
2841
        pub fn slot_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.slot_name(input.into());
            self
        }

The name of the slot. Slot names must be unique within the bot that contains the slot.

Examples found in repository?
src/client.rs (line 2844)
2843
2844
2845
2846
        pub fn set_slot_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_slot_name(input);
            self
        }

A description of the slot. Use this to help identify the slot in lists.

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

A description of the slot. Use this to help identify the slot in lists.

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

The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.

Examples found in repository?
src/client.rs (line 2859)
2858
2859
2860
2861
        pub fn slot_type_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.slot_type_id(input.into());
            self
        }

The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.

Examples found in repository?
src/client.rs (line 2864)
2863
2864
2865
2866
        pub fn set_slot_type_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_slot_type_id(input);
            self
        }

Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.

Examples found in repository?
src/client.rs (line 2872)
2868
2869
2870
2871
2872
2873
2874
        pub fn value_elicitation_setting(
            mut self,
            input: crate::model::SlotValueElicitationSetting,
        ) -> Self {
            self.inner = self.inner.value_elicitation_setting(input);
            self
        }

Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.

Examples found in repository?
src/client.rs (line 2880)
2876
2877
2878
2879
2880
2881
2882
        pub fn set_value_elicitation_setting(
            mut self,
            input: std::option::Option<crate::model::SlotValueElicitationSetting>,
        ) -> Self {
            self.inner = self.inner.set_value_elicitation_setting(input);
            self
        }

Determines how slot values are used in Amazon CloudWatch logs. If the value of the obfuscationSetting parameter is DefaultObfuscation, slot values are obfuscated in the log output. If the value is None, the actual value is present in the log output.

The default is to obfuscate values in the CloudWatch logs.

Examples found in repository?
src/client.rs (line 2886)
2885
2886
2887
2888
        pub fn obfuscation_setting(mut self, input: crate::model::ObfuscationSetting) -> Self {
            self.inner = self.inner.obfuscation_setting(input);
            self
        }

Determines how slot values are used in Amazon CloudWatch logs. If the value of the obfuscationSetting parameter is DefaultObfuscation, slot values are obfuscated in the log output. If the value is None, the actual value is present in the log output.

The default is to obfuscate values in the CloudWatch logs.

Examples found in repository?
src/client.rs (line 2895)
2891
2892
2893
2894
2895
2896
2897
        pub fn set_obfuscation_setting(
            mut self,
            input: std::option::Option<crate::model::ObfuscationSetting>,
        ) -> Self {
            self.inner = self.inner.set_obfuscation_setting(input);
            self
        }

The identifier of the bot associated with the slot.

Examples found in repository?
src/client.rs (line 2900)
2899
2900
2901
2902
        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 associated with the slot.

Examples found in repository?
src/client.rs (line 2905)
2904
2905
2906
2907
        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 associated with the slot.

Examples found in repository?
src/client.rs (line 2910)
2909
2910
2911
2912
        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 associated with the slot.

Examples found in repository?
src/client.rs (line 2915)
2914
2915
2916
2917
        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 that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.

Examples found in repository?
src/client.rs (line 2920)
2919
2920
2921
2922
        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 that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.

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

The identifier of the intent that contains the slot.

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

The identifier of the intent that contains the slot.

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

Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.

If the multipleValuesSetting is not set, the default value is false.

Examples found in repository?
src/client.rs (line 2944)
2940
2941
2942
2943
2944
2945
2946
        pub fn multiple_values_setting(
            mut self,
            input: crate::model::MultipleValuesSetting,
        ) -> Self {
            self.inner = self.inner.multiple_values_setting(input);
            self
        }

Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.

If the multipleValuesSetting is not set, the default value is false.

Examples found in repository?
src/client.rs (line 2953)
2949
2950
2951
2952
2953
2954
2955
        pub fn set_multiple_values_setting(
            mut self,
            input: std::option::Option<crate::model::MultipleValuesSetting>,
        ) -> Self {
            self.inner = self.inner.set_multiple_values_setting(input);
            self
        }

Specifications for the constituent sub slots and the expression for the composite slot.

Examples found in repository?
src/client.rs (line 2958)
2957
2958
2959
2960
        pub fn sub_slot_setting(mut self, input: crate::model::SubSlotSetting) -> Self {
            self.inner = self.inner.sub_slot_setting(input);
            self
        }

Specifications for the constituent sub slots and the expression for the composite slot.

Examples found in repository?
src/client.rs (line 2966)
2962
2963
2964
2965
2966
2967
2968
        pub fn set_sub_slot_setting(
            mut self,
            input: std::option::Option<crate::model::SubSlotSetting>,
        ) -> Self {
            self.inner = self.inner.set_sub_slot_setting(input);
            self
        }

Consumes the builder and constructs a CreateSlotInput.

Examples found in repository?
src/client.rs (line 2806)
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateSlot,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateSlotError>,
        > {
            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::CreateSlotOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateSlotError>,
        > {
            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