/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A set of actions that Amazon Lex should run if the condition is
* matched.See Also:
AWS
* API Reference
The name of the branch.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the branch.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the branch.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the branch.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the branch.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the branch.
*/ inline ConditionalBranch& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the branch.
*/ inline ConditionalBranch& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the branch.
*/ inline ConditionalBranch& WithName(const char* value) { SetName(value); return *this;} /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline const Condition& GetCondition() const{ return m_condition; } /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline ConditionalBranch& WithCondition(const Condition& value) { SetCondition(value); return *this;} /** *Contains the expression to evaluate. If the condition is true, the branch's * actions are taken.
*/ inline ConditionalBranch& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;} /** *The next step in the conversation.
*/ inline const DialogState& GetNextStep() const{ return m_nextStep; } /** *The next step in the conversation.
*/ inline bool NextStepHasBeenSet() const { return m_nextStepHasBeenSet; } /** *The next step in the conversation.
*/ inline void SetNextStep(const DialogState& value) { m_nextStepHasBeenSet = true; m_nextStep = value; } /** *The next step in the conversation.
*/ inline void SetNextStep(DialogState&& value) { m_nextStepHasBeenSet = true; m_nextStep = std::move(value); } /** *The next step in the conversation.
*/ inline ConditionalBranch& WithNextStep(const DialogState& value) { SetNextStep(value); return *this;} /** *The next step in the conversation.
*/ inline ConditionalBranch& WithNextStep(DialogState&& value) { SetNextStep(std::move(value)); return *this;} inline const ResponseSpecification& GetResponse() const{ return m_response; } inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; } inline void SetResponse(const ResponseSpecification& value) { m_responseHasBeenSet = true; m_response = value; } inline void SetResponse(ResponseSpecification&& value) { m_responseHasBeenSet = true; m_response = std::move(value); } inline ConditionalBranch& WithResponse(const ResponseSpecification& value) { SetResponse(value); return *this;} inline ConditionalBranch& WithResponse(ResponseSpecification&& value) { SetResponse(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Condition m_condition; bool m_conditionHasBeenSet = false; DialogState m_nextStep; bool m_nextStepHasBeenSet = false; ResponseSpecification m_response; bool m_responseHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws