/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies next steps to run after the dialog code hook
* finishes.See Also:
AWS
* API Reference
Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline const DialogState& GetSuccessNextStep() const{ return m_successNextStep; } /** *Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline bool SuccessNextStepHasBeenSet() const { return m_successNextStepHasBeenSet; } /** *Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline void SetSuccessNextStep(const DialogState& value) { m_successNextStepHasBeenSet = true; m_successNextStep = value; } /** *Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline void SetSuccessNextStep(DialogState&& value) { m_successNextStepHasBeenSet = true; m_successNextStep = std::move(value); } /** *Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline PostDialogCodeHookInvocationSpecification& WithSuccessNextStep(const DialogState& value) { SetSuccessNextStep(value); return *this;} /** *Specifics the next step the bot runs after the dialog code hook finishes * successfully.
*/ inline PostDialogCodeHookInvocationSpecification& WithSuccessNextStep(DialogState&& value) { SetSuccessNextStep(std::move(value)); return *this;} /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline const ConditionalSpecification& GetSuccessConditional() const{ return m_successConditional; } /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline bool SuccessConditionalHasBeenSet() const { return m_successConditionalHasBeenSet; } /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline void SetSuccessConditional(const ConditionalSpecification& value) { m_successConditionalHasBeenSet = true; m_successConditional = value; } /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline void SetSuccessConditional(ConditionalSpecification&& value) { m_successConditionalHasBeenSet = true; m_successConditional = std::move(value); } /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline PostDialogCodeHookInvocationSpecification& WithSuccessConditional(const ConditionalSpecification& value) { SetSuccessConditional(value); return *this;} /** *A list of conditional branches to evaluate after the dialog code hook * finishes successfully.
*/ inline PostDialogCodeHookInvocationSpecification& WithSuccessConditional(ConditionalSpecification&& value) { SetSuccessConditional(std::move(value)); return *this;} inline const ResponseSpecification& GetFailureResponse() const{ return m_failureResponse; } inline bool FailureResponseHasBeenSet() const { return m_failureResponseHasBeenSet; } inline void SetFailureResponse(const ResponseSpecification& value) { m_failureResponseHasBeenSet = true; m_failureResponse = value; } inline void SetFailureResponse(ResponseSpecification&& value) { m_failureResponseHasBeenSet = true; m_failureResponse = std::move(value); } inline PostDialogCodeHookInvocationSpecification& WithFailureResponse(const ResponseSpecification& value) { SetFailureResponse(value); return *this;} inline PostDialogCodeHookInvocationSpecification& WithFailureResponse(ResponseSpecification&& value) { SetFailureResponse(std::move(value)); return *this;} /** *Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step the bot runs after the dialog code hook throws an
* exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
A list of conditional branches to evaluate after the dialog code hook throws
* an exception or returns with the State
field of the
* Intent
object set to Failed
.
Specifies the next step that the bot runs when the code hook times out.
*/ inline const DialogState& GetTimeoutNextStep() const{ return m_timeoutNextStep; } /** *Specifies the next step that the bot runs when the code hook times out.
*/ inline bool TimeoutNextStepHasBeenSet() const { return m_timeoutNextStepHasBeenSet; } /** *Specifies the next step that the bot runs when the code hook times out.
*/ inline void SetTimeoutNextStep(const DialogState& value) { m_timeoutNextStepHasBeenSet = true; m_timeoutNextStep = value; } /** *Specifies the next step that the bot runs when the code hook times out.
*/ inline void SetTimeoutNextStep(DialogState&& value) { m_timeoutNextStepHasBeenSet = true; m_timeoutNextStep = std::move(value); } /** *Specifies the next step that the bot runs when the code hook times out.
*/ inline PostDialogCodeHookInvocationSpecification& WithTimeoutNextStep(const DialogState& value) { SetTimeoutNextStep(value); return *this;} /** *Specifies the next step that the bot runs when the code hook times out.
*/ inline PostDialogCodeHookInvocationSpecification& WithTimeoutNextStep(DialogState&& value) { SetTimeoutNextStep(std::move(value)); return *this;} /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline const ConditionalSpecification& GetTimeoutConditional() const{ return m_timeoutConditional; } /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline bool TimeoutConditionalHasBeenSet() const { return m_timeoutConditionalHasBeenSet; } /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline void SetTimeoutConditional(const ConditionalSpecification& value) { m_timeoutConditionalHasBeenSet = true; m_timeoutConditional = value; } /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline void SetTimeoutConditional(ConditionalSpecification&& value) { m_timeoutConditionalHasBeenSet = true; m_timeoutConditional = std::move(value); } /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline PostDialogCodeHookInvocationSpecification& WithTimeoutConditional(const ConditionalSpecification& value) { SetTimeoutConditional(value); return *this;} /** *A list of conditional branches to evaluate if the code hook times out.
*/ inline PostDialogCodeHookInvocationSpecification& WithTimeoutConditional(ConditionalSpecification&& value) { SetTimeoutConditional(std::move(value)); return *this;} private: ResponseSpecification m_successResponse; bool m_successResponseHasBeenSet = false; DialogState m_successNextStep; bool m_successNextStepHasBeenSet = false; ConditionalSpecification m_successConditional; bool m_successConditionalHasBeenSet = false; ResponseSpecification m_failureResponse; bool m_failureResponseHasBeenSet = false; DialogState m_failureNextStep; bool m_failureNextStepHasBeenSet = false; ConditionalSpecification m_failureConditional; bool m_failureConditionalHasBeenSet = false; ResponseSpecification m_timeoutResponse; bool m_timeoutResponseHasBeenSet = false; DialogState m_timeoutNextStep; bool m_timeoutNextStepHasBeenSet = false; ConditionalSpecification m_timeoutConditional; bool m_timeoutConditionalHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws