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

A builder for UpdateSlotInput.

Implementations§

The unique identifier for the slot to update.

Examples found in repository?
src/client.rs (line 9265)
9264
9265
9266
9267
        pub fn slot_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.slot_id(input.into());
            self
        }

The unique identifier for the slot to update.

Examples found in repository?
src/client.rs (line 9270)
9269
9270
9271
9272
        pub fn set_slot_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_slot_id(input);
            self
        }

The new name for the slot.

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

The new name for the slot.

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

The new description for the slot.

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

The new description for the slot.

Examples found in repository?
src/client.rs (line 9290)
9289
9290
9291
9292
        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 of the new slot type to associate with this slot.

Examples found in repository?
src/client.rs (line 9295)
9294
9295
9296
9297
        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 of the new slot type to associate with this slot.

Examples found in repository?
src/client.rs (line 9300)
9299
9300
9301
9302
        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
        }

A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.

Examples found in repository?
src/client.rs (line 9308)
9304
9305
9306
9307
9308
9309
9310
        pub fn value_elicitation_setting(
            mut self,
            input: crate::model::SlotValueElicitationSetting,
        ) -> Self {
            self.inner = self.inner.value_elicitation_setting(input);
            self
        }

A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.

Examples found in repository?
src/client.rs (line 9316)
9312
9313
9314
9315
9316
9317
9318
        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
        }

New settings that determine how slot values are formatted in Amazon CloudWatch logs.

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

New settings that determine how slot values are formatted in Amazon CloudWatch logs.

Examples found in repository?
src/client.rs (line 9329)
9325
9326
9327
9328
9329
9330
9331
        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 unique identifier of the bot that contains the slot.

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

The unique identifier of the bot that contains the slot.

Examples found in repository?
src/client.rs (line 9339)
9338
9339
9340
9341
        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 slot. Must always be DRAFT.

Examples found in repository?
src/client.rs (line 9344)
9343
9344
9345
9346
        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 slot. Must always be DRAFT.

Examples found in repository?
src/client.rs (line 9349)
9348
9349
9350
9351
        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 contains the slot. The string must match one of the supported locales. For more information, see Supported languages.

Examples found in repository?
src/client.rs (line 9354)
9353
9354
9355
9356
        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 contains the slot. The string must match one of the supported locales. For more information, see Supported languages.

Examples found in repository?
src/client.rs (line 9359)
9358
9359
9360
9361
        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 9364)
9363
9364
9365
9366
        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 9369)
9368
9369
9370
9371
        pub fn set_intent_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_intent_id(input);
            self
        }

Determines whether the slot accepts multiple values in one response. Multiple 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 9378)
9374
9375
9376
9377
9378
9379
9380
        pub fn multiple_values_setting(
            mut self,
            input: crate::model::MultipleValuesSetting,
        ) -> Self {
            self.inner = self.inner.multiple_values_setting(input);
            self
        }

Determines whether the slot accepts multiple values in one response. Multiple 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 9387)
9383
9384
9385
9386
9387
9388
9389
        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 9392)
9391
9392
9393
9394
        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 9400)
9396
9397
9398
9399
9400
9401
9402
        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 UpdateSlotInput.

Examples found in repository?
src/client.rs (line 9232)
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateSlot,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateSlotError>,
        > {
            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::UpdateSlotOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateSlotError>,
        > {
            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