AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionalBranch.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/Condition.h>
10#include <aws/lexv2-models/model/DialogState.h>
11#include <aws/lexv2-models/model/ResponseSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API ConditionalBranch();
39 AWS_LEXMODELSV2_API ConditionalBranch(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ConditionalBranch& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ConditionalBranch& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ConditionalBranch& WithName(const char* value) { SetName(value); return *this;}
57
59
63 inline const Condition& GetCondition() const{ return m_condition; }
64 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
65 inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
66 inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
67 inline ConditionalBranch& WithCondition(const Condition& value) { SetCondition(value); return *this;}
68 inline ConditionalBranch& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
70
72
75 inline const DialogState& GetNextStep() const{ return m_nextStep; }
76 inline bool NextStepHasBeenSet() const { return m_nextStepHasBeenSet; }
77 inline void SetNextStep(const DialogState& value) { m_nextStepHasBeenSet = true; m_nextStep = value; }
78 inline void SetNextStep(DialogState&& value) { m_nextStepHasBeenSet = true; m_nextStep = std::move(value); }
79 inline ConditionalBranch& WithNextStep(const DialogState& value) { SetNextStep(value); return *this;}
80 inline ConditionalBranch& WithNextStep(DialogState&& value) { SetNextStep(std::move(value)); return *this;}
82
84
85 inline const ResponseSpecification& GetResponse() const{ return m_response; }
86 inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; }
87 inline void SetResponse(const ResponseSpecification& value) { m_responseHasBeenSet = true; m_response = value; }
88 inline void SetResponse(ResponseSpecification&& value) { m_responseHasBeenSet = true; m_response = std::move(value); }
89 inline ConditionalBranch& WithResponse(const ResponseSpecification& value) { SetResponse(value); return *this;}
90 inline ConditionalBranch& WithResponse(ResponseSpecification&& value) { SetResponse(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 Condition m_condition;
98 bool m_conditionHasBeenSet = false;
99
100 DialogState m_nextStep;
101 bool m_nextStepHasBeenSet = false;
102
103 ResponseSpecification m_response;
104 bool m_responseHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace LexModelsV2
109} // namespace Aws
ConditionalBranch & WithNextStep(DialogState &&value)
ConditionalBranch & WithNextStep(const DialogState &value)
ConditionalBranch & WithCondition(Condition &&value)
void SetName(const Aws::String &value)
AWS_LEXMODELSV2_API ConditionalBranch(Aws::Utils::Json::JsonView jsonValue)
ConditionalBranch & WithName(Aws::String &&value)
ConditionalBranch & WithResponse(ResponseSpecification &&value)
void SetResponse(ResponseSpecification &&value)
ConditionalBranch & WithName(const Aws::String &value)
ConditionalBranch & WithCondition(const Condition &value)
void SetNextStep(const DialogState &value)
ConditionalBranch & WithResponse(const ResponseSpecification &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCondition(const Condition &value)
const ResponseSpecification & GetResponse() const
AWS_LEXMODELSV2_API ConditionalBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResponse(const ResponseSpecification &value)
ConditionalBranch & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue