Interface PromptAttemptSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PromptAttemptSpecification.Builder,
,PromptAttemptSpecification> SdkBuilder<PromptAttemptSpecification.Builder,
,PromptAttemptSpecification> SdkPojo
- Enclosing class:
PromptAttemptSpecification
-
Method Summary
Modifier and TypeMethodDescriptionallowedInputTypes
(Consumer<AllowedInputTypes.Builder> allowedInputTypes) Indicates the allowed input types of the prompt attempt.allowedInputTypes
(AllowedInputTypes allowedInputTypes) Indicates the allowed input types of the prompt attempt.allowInterrupt
(Boolean allowInterrupt) Indicates whether the user can interrupt a speech prompt attempt from the bot.audioAndDTMFInputSpecification
(Consumer<AudioAndDTMFInputSpecification.Builder> audioAndDTMFInputSpecification) Specifies the settings on audio and DTMF input.audioAndDTMFInputSpecification
(AudioAndDTMFInputSpecification audioAndDTMFInputSpecification) Specifies the settings on audio and DTMF input.textInputSpecification
(Consumer<TextInputSpecification.Builder> textInputSpecification) Specifies the settings on text input.textInputSpecification
(TextInputSpecification textInputSpecification) Specifies the settings on text input.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
allowInterrupt
Indicates whether the user can interrupt a speech prompt attempt from the bot.
- Parameters:
allowInterrupt
- Indicates whether the user can interrupt a speech prompt attempt from the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedInputTypes
Indicates the allowed input types of the prompt attempt.
- Parameters:
allowedInputTypes
- Indicates the allowed input types of the prompt attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedInputTypes
default PromptAttemptSpecification.Builder allowedInputTypes(Consumer<AllowedInputTypes.Builder> allowedInputTypes) Indicates the allowed input types of the prompt attempt.
This is a convenience method that creates an instance of theAllowedInputTypes.Builder
avoiding the need to create one manually viaAllowedInputTypes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallowedInputTypes(AllowedInputTypes)
.- Parameters:
allowedInputTypes
- a consumer that will call methods onAllowedInputTypes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
audioAndDTMFInputSpecification
PromptAttemptSpecification.Builder audioAndDTMFInputSpecification(AudioAndDTMFInputSpecification audioAndDTMFInputSpecification) Specifies the settings on audio and DTMF input.
- Parameters:
audioAndDTMFInputSpecification
- Specifies the settings on audio and DTMF input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audioAndDTMFInputSpecification
default PromptAttemptSpecification.Builder audioAndDTMFInputSpecification(Consumer<AudioAndDTMFInputSpecification.Builder> audioAndDTMFInputSpecification) Specifies the settings on audio and DTMF input.
This is a convenience method that creates an instance of theAudioAndDTMFInputSpecification.Builder
avoiding the need to create one manually viaAudioAndDTMFInputSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaudioAndDTMFInputSpecification(AudioAndDTMFInputSpecification)
.- Parameters:
audioAndDTMFInputSpecification
- a consumer that will call methods onAudioAndDTMFInputSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
textInputSpecification
PromptAttemptSpecification.Builder textInputSpecification(TextInputSpecification textInputSpecification) Specifies the settings on text input.
- Parameters:
textInputSpecification
- Specifies the settings on text input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textInputSpecification
default PromptAttemptSpecification.Builder textInputSpecification(Consumer<TextInputSpecification.Builder> textInputSpecification) Specifies the settings on text input.
This is a convenience method that creates an instance of theTextInputSpecification.Builder
avoiding the need to create one manually viaTextInputSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextInputSpecification(TextInputSpecification)
.- Parameters:
textInputSpecification
- a consumer that will call methods onTextInputSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-