AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
IntentResultEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
11#include <aws/lexv2-runtime/model/InputMode.h>
12#include <aws/lexv2-runtime/model/Interpretation.h>
13#include <aws/lexv2-runtime/model/RecognizedBotMember.h>
14#include <aws/lexv2-runtime/model/SessionState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexRuntimeV2 {
26namespace Model {
27
35 public:
36 AWS_LEXRUNTIMEV2_API IntentResultEvent() = default;
37 AWS_LEXRUNTIMEV2_API IntentResultEvent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMEV2_API IntentResultEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline InputMode GetInputMode() const { return m_inputMode; }
47 inline bool InputModeHasBeenSet() const { return m_inputModeHasBeenSet; }
48 inline void SetInputMode(InputMode value) {
49 m_inputModeHasBeenSet = true;
50 m_inputMode = value;
51 }
53 SetInputMode(value);
54 return *this;
55 }
57
59
66 inline const Aws::Vector<Interpretation>& GetInterpretations() const { return m_interpretations; }
67 inline bool InterpretationsHasBeenSet() const { return m_interpretationsHasBeenSet; }
68 template <typename InterpretationsT = Aws::Vector<Interpretation>>
69 void SetInterpretations(InterpretationsT&& value) {
70 m_interpretationsHasBeenSet = true;
71 m_interpretations = std::forward<InterpretationsT>(value);
72 }
73 template <typename InterpretationsT = Aws::Vector<Interpretation>>
74 IntentResultEvent& WithInterpretations(InterpretationsT&& value) {
75 SetInterpretations(std::forward<InterpretationsT>(value));
76 return *this;
77 }
78 template <typename InterpretationsT = Interpretation>
79 IntentResultEvent& AddInterpretations(InterpretationsT&& value) {
80 m_interpretationsHasBeenSet = true;
81 m_interpretations.emplace_back(std::forward<InterpretationsT>(value));
82 return *this;
83 }
85
87
88 inline const SessionState& GetSessionState() const { return m_sessionState; }
89 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
90 template <typename SessionStateT = SessionState>
91 void SetSessionState(SessionStateT&& value) {
92 m_sessionStateHasBeenSet = true;
93 m_sessionState = std::forward<SessionStateT>(value);
94 }
95 template <typename SessionStateT = SessionState>
96 IntentResultEvent& WithSessionState(SessionStateT&& value) {
97 SetSessionState(std::forward<SessionStateT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
107 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
108 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
109 void SetRequestAttributes(RequestAttributesT&& value) {
110 m_requestAttributesHasBeenSet = true;
111 m_requestAttributes = std::forward<RequestAttributesT>(value);
112 }
113 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
114 IntentResultEvent& WithRequestAttributes(RequestAttributesT&& value) {
115 SetRequestAttributes(std::forward<RequestAttributesT>(value));
116 return *this;
117 }
118 template <typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
119 IntentResultEvent& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
120 m_requestAttributesHasBeenSet = true;
121 m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetSessionId() const { return m_sessionId; }
131 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
132 template <typename SessionIdT = Aws::String>
133 void SetSessionId(SessionIdT&& value) {
134 m_sessionIdHasBeenSet = true;
135 m_sessionId = std::forward<SessionIdT>(value);
136 }
137 template <typename SessionIdT = Aws::String>
138 IntentResultEvent& WithSessionId(SessionIdT&& value) {
139 SetSessionId(std::forward<SessionIdT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::String& GetEventId() const { return m_eventId; }
151 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
152 template <typename EventIdT = Aws::String>
153 void SetEventId(EventIdT&& value) {
154 m_eventIdHasBeenSet = true;
155 m_eventId = std::forward<EventIdT>(value);
156 }
157 template <typename EventIdT = Aws::String>
158 IntentResultEvent& WithEventId(EventIdT&& value) {
159 SetEventId(std::forward<EventIdT>(value));
160 return *this;
161 }
163
165
168 inline const RecognizedBotMember& GetRecognizedBotMember() const { return m_recognizedBotMember; }
169 inline bool RecognizedBotMemberHasBeenSet() const { return m_recognizedBotMemberHasBeenSet; }
170 template <typename RecognizedBotMemberT = RecognizedBotMember>
171 void SetRecognizedBotMember(RecognizedBotMemberT&& value) {
172 m_recognizedBotMemberHasBeenSet = true;
173 m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value);
174 }
175 template <typename RecognizedBotMemberT = RecognizedBotMember>
176 IntentResultEvent& WithRecognizedBotMember(RecognizedBotMemberT&& value) {
177 SetRecognizedBotMember(std::forward<RecognizedBotMemberT>(value));
178 return *this;
179 }
181 private:
182 InputMode m_inputMode{InputMode::NOT_SET};
183
184 Aws::Vector<Interpretation> m_interpretations;
185
186 SessionState m_sessionState;
187
188 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
189
190 Aws::String m_sessionId;
191
192 Aws::String m_eventId;
193
194 RecognizedBotMember m_recognizedBotMember;
195 bool m_inputModeHasBeenSet = false;
196 bool m_interpretationsHasBeenSet = false;
197 bool m_sessionStateHasBeenSet = false;
198 bool m_requestAttributesHasBeenSet = false;
199 bool m_sessionIdHasBeenSet = false;
200 bool m_eventIdHasBeenSet = false;
201 bool m_recognizedBotMemberHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace LexRuntimeV2
206} // namespace Aws
IntentResultEvent & WithRecognizedBotMember(RecognizedBotMemberT &&value)
IntentResultEvent & AddInterpretations(InterpretationsT &&value)
AWS_LEXRUNTIMEV2_API IntentResultEvent()=default
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API IntentResultEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentResultEvent & WithSessionId(SessionIdT &&value)
void SetRecognizedBotMember(RecognizedBotMemberT &&value)
IntentResultEvent & WithEventId(EventIdT &&value)
IntentResultEvent & AddRequestAttributes(RequestAttributesKeyT &&key, RequestAttributesValueT &&value)
void SetRequestAttributes(RequestAttributesT &&value)
const Aws::Vector< Interpretation > & GetInterpretations() const
IntentResultEvent & WithRequestAttributes(RequestAttributesT &&value)
IntentResultEvent & WithInputMode(InputMode value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
const SessionState & GetSessionState() const
IntentResultEvent & WithInterpretations(InterpretationsT &&value)
AWS_LEXRUNTIMEV2_API IntentResultEvent(Aws::Utils::Json::JsonView jsonValue)
const RecognizedBotMember & GetRecognizedBotMember() const
IntentResultEvent & WithSessionState(SessionStateT &&value)
void SetInterpretations(InterpretationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue