AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DefaultConditionalBranch.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/DialogState.h>
9#include <aws/lexv2-models/model/ResponseSpecification.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API DefaultConditionalBranch();
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const DialogState& GetNextStep() const{ return m_nextStep; }
47 inline bool NextStepHasBeenSet() const { return m_nextStepHasBeenSet; }
48 inline void SetNextStep(const DialogState& value) { m_nextStepHasBeenSet = true; m_nextStep = value; }
49 inline void SetNextStep(DialogState&& value) { m_nextStepHasBeenSet = true; m_nextStep = std::move(value); }
50 inline DefaultConditionalBranch& WithNextStep(const DialogState& value) { SetNextStep(value); return *this;}
51 inline DefaultConditionalBranch& WithNextStep(DialogState&& value) { SetNextStep(std::move(value)); return *this;}
53
55
56 inline const ResponseSpecification& GetResponse() const{ return m_response; }
57 inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; }
58 inline void SetResponse(const ResponseSpecification& value) { m_responseHasBeenSet = true; m_response = value; }
59 inline void SetResponse(ResponseSpecification&& value) { m_responseHasBeenSet = true; m_response = std::move(value); }
60 inline DefaultConditionalBranch& WithResponse(const ResponseSpecification& value) { SetResponse(value); return *this;}
61 inline DefaultConditionalBranch& WithResponse(ResponseSpecification&& value) { SetResponse(std::move(value)); return *this;}
63 private:
64
65 DialogState m_nextStep;
66 bool m_nextStepHasBeenSet = false;
67
68 ResponseSpecification m_response;
69 bool m_responseHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace LexModelsV2
74} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API DefaultConditionalBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultConditionalBranch & WithResponse(const ResponseSpecification &value)
AWS_LEXMODELSV2_API DefaultConditionalBranch(Aws::Utils::Json::JsonView jsonValue)
DefaultConditionalBranch & WithNextStep(DialogState &&value)
DefaultConditionalBranch & WithResponse(ResponseSpecification &&value)
DefaultConditionalBranch & WithNextStep(const DialogState &value)
void SetResponse(const ResponseSpecification &value)
Aws::Utils::Json::JsonValue JsonValue