Interface DialogCodeHookInvocationSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DialogCodeHookInvocationSetting.Builder,
,DialogCodeHookInvocationSetting> SdkBuilder<DialogCodeHookInvocationSetting.Builder,
,DialogCodeHookInvocationSetting> SdkPojo
- Enclosing class:
DialogCodeHookInvocationSetting
public static interface DialogCodeHookInvocationSetting.Builder
extends SdkPojo, CopyableBuilder<DialogCodeHookInvocationSetting.Builder,DialogCodeHookInvocationSetting>
-
Method Summary
Modifier and TypeMethodDescriptionDetermines whether a dialog code hook is used when the intent is activated.enableCodeHookInvocation
(Boolean enableCodeHookInvocation) Indicates whether a Lambda function should be invoked for the dialog.invocationLabel
(String invocationLabel) A label that indicates the dialog step from which the dialog code hook is happening.postCodeHookSpecification
(Consumer<PostDialogCodeHookInvocationSpecification.Builder> postCodeHookSpecification) Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.postCodeHookSpecification
(PostDialogCodeHookInvocationSpecification postCodeHookSpecification) Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.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
-
enableCodeHookInvocation
Indicates whether a Lambda function should be invoked for the dialog.
- Parameters:
enableCodeHookInvocation
- Indicates whether a Lambda function should be invoked for the dialog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
active
Determines whether a dialog code hook is used when the intent is activated.
- Parameters:
active
- Determines whether a dialog code hook is used when the intent is activated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationLabel
A label that indicates the dialog step from which the dialog code hook is happening.
- Parameters:
invocationLabel
- A label that indicates the dialog step from which the dialog code hook is happening.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postCodeHookSpecification
DialogCodeHookInvocationSetting.Builder postCodeHookSpecification(PostDialogCodeHookInvocationSpecification postCodeHookSpecification) Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
- Parameters:
postCodeHookSpecification
- Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postCodeHookSpecification
default DialogCodeHookInvocationSetting.Builder postCodeHookSpecification(Consumer<PostDialogCodeHookInvocationSpecification.Builder> postCodeHookSpecification) Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
This is a convenience method that creates an instance of thePostDialogCodeHookInvocationSpecification.Builder
avoiding the need to create one manually viaPostDialogCodeHookInvocationSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topostCodeHookSpecification(PostDialogCodeHookInvocationSpecification)
.- Parameters:
postCodeHookSpecification
- a consumer that will call methods onPostDialogCodeHookInvocationSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-