Interface CreateSlotRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSlotRequest.Builder,,CreateSlotRequest> LexModelsV2Request.Builder,SdkBuilder<CreateSlotRequest.Builder,,CreateSlotRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSlotRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the bot associated with the slot.botVersion(String botVersion) The version of the bot associated with the slot.description(String description) A description of the slot.The identifier of the intent that contains the slot.The identifier of the language and locale that the slot will be used in.default CreateSlotRequest.BuildermultipleValuesSetting(Consumer<MultipleValuesSetting.Builder> multipleValuesSetting) Indicates whether the slot returns multiple values in one response.multipleValuesSetting(MultipleValuesSetting multipleValuesSetting) Indicates whether the slot returns multiple values in one response.default CreateSlotRequest.BuilderobfuscationSetting(Consumer<ObfuscationSetting.Builder> obfuscationSetting) Determines how slot values are used in Amazon CloudWatch logs.obfuscationSetting(ObfuscationSetting obfuscationSetting) Determines how slot values are used in Amazon CloudWatch logs.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the slot.slotTypeId(String slotTypeId) The unique identifier for the slot type associated with this slot.default CreateSlotRequest.BuildersubSlotSetting(Consumer<SubSlotSetting.Builder> subSlotSetting) Specifications for the constituent sub slots and the expression for the composite slot.subSlotSetting(SubSlotSetting subSlotSetting) Specifications for the constituent sub slots and the expression for the composite slot.default CreateSlotRequest.BuildervalueElicitationSetting(Consumer<SlotValueElicitationSetting.Builder> valueElicitationSetting) Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.valueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting) Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
slotName
The name of the slot. Slot names must be unique within the bot that contains the slot.
- Parameters:
slotName- The name of the slot. Slot names must be unique within the bot that contains the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the slot. Use this to help identify the slot in lists.
- Parameters:
description- A description of the slot. Use this to help identify the slot in lists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotTypeId
The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.
- Parameters:
slotTypeId- The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationSetting
CreateSlotRequest.Builder valueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting) Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
- Parameters:
valueElicitationSetting- Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationSetting
default CreateSlotRequest.Builder valueElicitationSetting(Consumer<SlotValueElicitationSetting.Builder> valueElicitationSetting) Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
This is a convenience method that creates an instance of theSlotValueElicitationSetting.Builderavoiding the need to create one manually viaSlotValueElicitationSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalueElicitationSetting(SlotValueElicitationSetting).- Parameters:
valueElicitationSetting- a consumer that will call methods onSlotValueElicitationSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
obfuscationSetting
Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSettingparameter isDefaultObfuscation, slot values are obfuscated in the log output. If the value isNone, the actual value is present in the log output.The default is to obfuscate values in the CloudWatch logs.
- Parameters:
obfuscationSetting- Determines how slot values are used in Amazon CloudWatch logs. If the value of theobfuscationSettingparameter isDefaultObfuscation, slot values are obfuscated in the log output. If the value isNone, the actual value is present in the log output.The default is to obfuscate values in the CloudWatch logs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
obfuscationSetting
default CreateSlotRequest.Builder obfuscationSetting(Consumer<ObfuscationSetting.Builder> obfuscationSetting) Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSettingparameter isDefaultObfuscation, slot values are obfuscated in the log output. If the value isNone, the actual value is present in the log output.The default is to obfuscate values in the CloudWatch logs.
This is a convenience method that creates an instance of theObfuscationSetting.Builderavoiding the need to create one manually viaObfuscationSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toobfuscationSetting(ObfuscationSetting).- Parameters:
obfuscationSetting- a consumer that will call methods onObfuscationSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
botId
The identifier of the bot associated with the slot.
- Parameters:
botId- The identifier of the bot associated with the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botVersion
The version of the bot associated with the slot.
- Parameters:
botVersion- The version of the bot associated with the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
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.
- Parameters:
localeId- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intentId
The identifier of the intent that contains the slot.
- Parameters:
intentId- The identifier of the intent that contains the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multipleValuesSetting
Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the
en-USlocale. If you set this value totruein any other locale, Amazon Lex throws aValidationException.If the
multipleValuesSettingis not set, the default value isfalse.- Parameters:
multipleValuesSetting- Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in theen-USlocale. If you set this value totruein any other locale, Amazon Lex throws aValidationException.If the
multipleValuesSettingis not set, the default value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multipleValuesSetting
default CreateSlotRequest.Builder multipleValuesSetting(Consumer<MultipleValuesSetting.Builder> multipleValuesSetting) Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the
en-USlocale. If you set this value totruein any other locale, Amazon Lex throws aValidationException.If the
This is a convenience method that creates an instance of themultipleValuesSettingis not set, the default value isfalse.MultipleValuesSetting.Builderavoiding the need to create one manually viaMultipleValuesSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomultipleValuesSetting(MultipleValuesSetting).- Parameters:
multipleValuesSetting- a consumer that will call methods onMultipleValuesSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subSlotSetting
Specifications for the constituent sub slots and the expression for the composite slot.
- Parameters:
subSlotSetting- Specifications for the constituent sub slots and the expression for the composite slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subSlotSetting
Specifications for the constituent sub slots and the expression for the composite slot.
This is a convenience method that creates an instance of theSubSlotSetting.Builderavoiding the need to create one manually viaSubSlotSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubSlotSetting(SubSlotSetting).- Parameters:
subSlotSetting- a consumer that will call methods onSubSlotSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateSlotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSlotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-