AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API DefaultConditionalBranch() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const DialogState& GetNextStep() const { return m_nextStep; }
41 inline bool NextStepHasBeenSet() const { return m_nextStepHasBeenSet; }
42 template <typename NextStepT = DialogState>
43 void SetNextStep(NextStepT&& value) {
44 m_nextStepHasBeenSet = true;
45 m_nextStep = std::forward<NextStepT>(value);
46 }
47 template <typename NextStepT = DialogState>
49 SetNextStep(std::forward<NextStepT>(value));
50 return *this;
51 }
53
55
56 inline const ResponseSpecification& GetResponse() const { return m_response; }
57 inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; }
58 template <typename ResponseT = ResponseSpecification>
59 void SetResponse(ResponseT&& value) {
60 m_responseHasBeenSet = true;
61 m_response = std::forward<ResponseT>(value);
62 }
63 template <typename ResponseT = ResponseSpecification>
65 SetResponse(std::forward<ResponseT>(value));
66 return *this;
67 }
69 private:
70 DialogState m_nextStep;
71
72 ResponseSpecification m_response;
73 bool m_nextStepHasBeenSet = false;
74 bool m_responseHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace LexModelsV2
79} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API DefaultConditionalBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultConditionalBranch & WithResponse(ResponseT &&value)
AWS_LEXMODELSV2_API DefaultConditionalBranch(Aws::Utils::Json::JsonView jsonValue)
DefaultConditionalBranch & WithNextStep(NextStepT &&value)
AWS_LEXMODELSV2_API DefaultConditionalBranch()=default
Aws::Utils::Json::JsonValue JsonValue