Interface PostDialogCodeHookInvocationSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PostDialogCodeHookInvocationSpecification.Builder,
,PostDialogCodeHookInvocationSpecification> SdkBuilder<PostDialogCodeHookInvocationSpecification.Builder,
,PostDialogCodeHookInvocationSpecification> SdkPojo
- Enclosing class:
PostDialogCodeHookInvocationSpecification
-
Method Summary
Modifier and TypeMethodDescriptionfailureConditional
(Consumer<ConditionalSpecification.Builder> failureConditional) A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.failureConditional
(ConditionalSpecification failureConditional) A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.failureNextStep
(Consumer<DialogState.Builder> failureNextStep) Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.failureNextStep
(DialogState failureNextStep) Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.failureResponse
(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object.failureResponse
(ResponseSpecification failureResponse) Sets the value of the FailureResponse property for this object.successConditional
(Consumer<ConditionalSpecification.Builder> successConditional) A list of conditional branches to evaluate after the dialog code hook finishes successfully.successConditional
(ConditionalSpecification successConditional) A list of conditional branches to evaluate after the dialog code hook finishes successfully.successNextStep
(Consumer<DialogState.Builder> successNextStep) Specifics the next step the bot runs after the dialog code hook finishes successfully.successNextStep
(DialogState successNextStep) Specifics the next step the bot runs after the dialog code hook finishes successfully.successResponse
(Consumer<ResponseSpecification.Builder> successResponse) Sets the value of the SuccessResponse property for this object.successResponse
(ResponseSpecification successResponse) Sets the value of the SuccessResponse property for this object.timeoutConditional
(Consumer<ConditionalSpecification.Builder> timeoutConditional) A list of conditional branches to evaluate if the code hook times out.timeoutConditional
(ConditionalSpecification timeoutConditional) A list of conditional branches to evaluate if the code hook times out.timeoutNextStep
(Consumer<DialogState.Builder> timeoutNextStep) Specifies the next step that the bot runs when the code hook times out.timeoutNextStep
(DialogState timeoutNextStep) Specifies the next step that the bot runs when the code hook times out.timeoutResponse
(Consumer<ResponseSpecification.Builder> timeoutResponse) Sets the value of the TimeoutResponse property for this object.timeoutResponse
(ResponseSpecification timeoutResponse) Sets the value of the TimeoutResponse property for this object.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
-
successResponse
PostDialogCodeHookInvocationSpecification.Builder successResponse(ResponseSpecification successResponse) Sets the value of the SuccessResponse property for this object.- Parameters:
successResponse
- The new value for the SuccessResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successResponse
default PostDialogCodeHookInvocationSpecification.Builder successResponse(Consumer<ResponseSpecification.Builder> successResponse) Sets the value of the SuccessResponse property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuccessResponse(ResponseSpecification)
.- Parameters:
successResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
successNextStep
Specifics the next step the bot runs after the dialog code hook finishes successfully.
- Parameters:
successNextStep
- Specifics the next step the bot runs after the dialog code hook finishes successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successNextStep
default PostDialogCodeHookInvocationSpecification.Builder successNextStep(Consumer<DialogState.Builder> successNextStep) Specifics the next step the bot runs after the dialog code hook finishes successfully.
This is a convenience method that creates an instance of theDialogState.Builder
avoiding the need to create one manually viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuccessNextStep(DialogState)
.- Parameters:
successNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
successConditional
PostDialogCodeHookInvocationSpecification.Builder successConditional(ConditionalSpecification successConditional) A list of conditional branches to evaluate after the dialog code hook finishes successfully.
- Parameters:
successConditional
- A list of conditional branches to evaluate after the dialog code hook finishes successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successConditional
default PostDialogCodeHookInvocationSpecification.Builder successConditional(Consumer<ConditionalSpecification.Builder> successConditional) A list of conditional branches to evaluate after the dialog code hook finishes successfully.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuccessConditional(ConditionalSpecification)
.- Parameters:
successConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureResponse
PostDialogCodeHookInvocationSpecification.Builder failureResponse(ResponseSpecification failureResponse) Sets the value of the FailureResponse property for this object.- Parameters:
failureResponse
- The new value for the FailureResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureResponse
default PostDialogCodeHookInvocationSpecification.Builder failureResponse(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureResponse(ResponseSpecification)
.- Parameters:
failureResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureNextStep
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the
State
field of theIntent
object set toFailed
.- Parameters:
failureNextStep
- Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureNextStep
default PostDialogCodeHookInvocationSpecification.Builder failureNextStep(Consumer<DialogState.Builder> failureNextStep) Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the
This is a convenience method that creates an instance of theState
field of theIntent
object set toFailed
.DialogState.Builder
avoiding the need to create one manually viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureNextStep(DialogState)
.- Parameters:
failureNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureConditional
PostDialogCodeHookInvocationSpecification.Builder failureConditional(ConditionalSpecification failureConditional) A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the
State
field of theIntent
object set toFailed
.- Parameters:
failureConditional
- A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureConditional
default PostDialogCodeHookInvocationSpecification.Builder failureConditional(Consumer<ConditionalSpecification.Builder> failureConditional) A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the
This is a convenience method that creates an instance of theState
field of theIntent
object set toFailed
.ConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureConditional(ConditionalSpecification)
.- Parameters:
failureConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeoutResponse
PostDialogCodeHookInvocationSpecification.Builder timeoutResponse(ResponseSpecification timeoutResponse) Sets the value of the TimeoutResponse property for this object.- Parameters:
timeoutResponse
- The new value for the TimeoutResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutResponse
default PostDialogCodeHookInvocationSpecification.Builder timeoutResponse(Consumer<ResponseSpecification.Builder> timeoutResponse) Sets the value of the TimeoutResponse property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeoutResponse(ResponseSpecification)
.- Parameters:
timeoutResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeoutNextStep
Specifies the next step that the bot runs when the code hook times out.
- Parameters:
timeoutNextStep
- Specifies the next step that the bot runs when the code hook times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutNextStep
default PostDialogCodeHookInvocationSpecification.Builder timeoutNextStep(Consumer<DialogState.Builder> timeoutNextStep) Specifies the next step that the bot runs when the code hook times out.
This is a convenience method that creates an instance of theDialogState.Builder
avoiding the need to create one manually viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeoutNextStep(DialogState)
.- Parameters:
timeoutNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeoutConditional
PostDialogCodeHookInvocationSpecification.Builder timeoutConditional(ConditionalSpecification timeoutConditional) A list of conditional branches to evaluate if the code hook times out.
- Parameters:
timeoutConditional
- A list of conditional branches to evaluate if the code hook times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutConditional
default PostDialogCodeHookInvocationSpecification.Builder timeoutConditional(Consumer<ConditionalSpecification.Builder> timeoutConditional) A list of conditional branches to evaluate if the code hook times out.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeoutConditional(ConditionalSpecification)
.- Parameters:
timeoutConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-