AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntentResultEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/InputMode.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/lexv2-runtime/model/RecognizedBotMember.h>
14#include <aws/lexv2-runtime/model/Interpretation.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace LexRuntimeV2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_LEXRUNTIMEV2_API IntentResultEvent();
42 AWS_LEXRUNTIMEV2_API IntentResultEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMEV2_API IntentResultEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const InputMode& GetInputMode() const{ return m_inputMode; }
53 inline bool InputModeHasBeenSet() const { return m_inputModeHasBeenSet; }
54 inline void SetInputMode(const InputMode& value) { m_inputModeHasBeenSet = true; m_inputMode = value; }
55 inline void SetInputMode(InputMode&& value) { m_inputModeHasBeenSet = true; m_inputMode = std::move(value); }
56 inline IntentResultEvent& WithInputMode(const InputMode& value) { SetInputMode(value); return *this;}
57 inline IntentResultEvent& WithInputMode(InputMode&& value) { SetInputMode(std::move(value)); return *this;}
59
61
68 inline const Aws::Vector<Interpretation>& GetInterpretations() const{ return m_interpretations; }
69 inline bool InterpretationsHasBeenSet() const { return m_interpretationsHasBeenSet; }
70 inline void SetInterpretations(const Aws::Vector<Interpretation>& value) { m_interpretationsHasBeenSet = true; m_interpretations = value; }
71 inline void SetInterpretations(Aws::Vector<Interpretation>&& value) { m_interpretationsHasBeenSet = true; m_interpretations = std::move(value); }
73 inline IntentResultEvent& WithInterpretations(Aws::Vector<Interpretation>&& value) { SetInterpretations(std::move(value)); return *this;}
74 inline IntentResultEvent& AddInterpretations(const Interpretation& value) { m_interpretationsHasBeenSet = true; m_interpretations.push_back(value); return *this; }
75 inline IntentResultEvent& AddInterpretations(Interpretation&& value) { m_interpretationsHasBeenSet = true; m_interpretations.push_back(std::move(value)); return *this; }
77
79
80 inline const SessionState& GetSessionState() const{ return m_sessionState; }
81 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
82 inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; }
83 inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); }
84 inline IntentResultEvent& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;}
85 inline IntentResultEvent& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const{ return m_requestAttributes; }
93 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
94 inline void SetRequestAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
95 inline void SetRequestAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
98 inline IntentResultEvent& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
99 inline IntentResultEvent& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
100 inline IntentResultEvent& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
101 inline IntentResultEvent& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; }
102 inline IntentResultEvent& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); return *this; }
103 inline IntentResultEvent& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); return *this; }
104 inline IntentResultEvent& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; }
106
108
111 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
112 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
113 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
114 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
115 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
116 inline IntentResultEvent& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
117 inline IntentResultEvent& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
118 inline IntentResultEvent& WithSessionId(const char* value) { SetSessionId(value); return *this;}
120
122
127 inline const Aws::String& GetEventId() const{ return m_eventId; }
128 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
129 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
130 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
131 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
132 inline IntentResultEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
133 inline IntentResultEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
134 inline IntentResultEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
136
138
141 inline const RecognizedBotMember& GetRecognizedBotMember() const{ return m_recognizedBotMember; }
142 inline bool RecognizedBotMemberHasBeenSet() const { return m_recognizedBotMemberHasBeenSet; }
143 inline void SetRecognizedBotMember(const RecognizedBotMember& value) { m_recognizedBotMemberHasBeenSet = true; m_recognizedBotMember = value; }
144 inline void SetRecognizedBotMember(RecognizedBotMember&& value) { m_recognizedBotMemberHasBeenSet = true; m_recognizedBotMember = std::move(value); }
146 inline IntentResultEvent& WithRecognizedBotMember(RecognizedBotMember&& value) { SetRecognizedBotMember(std::move(value)); return *this;}
148 private:
149
150 InputMode m_inputMode;
151 bool m_inputModeHasBeenSet = false;
152
153 Aws::Vector<Interpretation> m_interpretations;
154 bool m_interpretationsHasBeenSet = false;
155
156 SessionState m_sessionState;
157 bool m_sessionStateHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
160 bool m_requestAttributesHasBeenSet = false;
161
162 Aws::String m_sessionId;
163 bool m_sessionIdHasBeenSet = false;
164
165 Aws::String m_eventId;
166 bool m_eventIdHasBeenSet = false;
167
168 RecognizedBotMember m_recognizedBotMember;
169 bool m_recognizedBotMemberHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace LexRuntimeV2
174} // namespace Aws
IntentResultEvent & WithInterpretations(Aws::Vector< Interpretation > &&value)
void SetEventId(const Aws::String &value)
void SetInterpretations(const Aws::Vector< Interpretation > &value)
void SetRecognizedBotMember(const RecognizedBotMember &value)
IntentResultEvent & WithSessionId(const char *value)
IntentResultEvent & WithInputMode(const InputMode &value)
IntentResultEvent & WithEventId(const Aws::String &value)
IntentResultEvent & WithRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API IntentResultEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentResultEvent & AddRequestAttributes(Aws::String &&key, const char *value)
IntentResultEvent & AddRequestAttributes(const Aws::String &key, Aws::String &&value)
IntentResultEvent & WithSessionState(SessionState &&value)
void SetInterpretations(Aws::Vector< Interpretation > &&value)
void SetSessionState(const SessionState &value)
IntentResultEvent & WithEventId(Aws::String &&value)
IntentResultEvent & AddInterpretations(Interpretation &&value)
IntentResultEvent & AddRequestAttributes(const Aws::String &key, const Aws::String &value)
IntentResultEvent & WithEventId(const char *value)
const Aws::Vector< Interpretation > & GetInterpretations() const
void SetSessionId(const Aws::String &value)
void SetRecognizedBotMember(RecognizedBotMember &&value)
IntentResultEvent & WithSessionId(const Aws::String &value)
IntentResultEvent & WithSessionState(const SessionState &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
const SessionState & GetSessionState() const
IntentResultEvent & WithInterpretations(const Aws::Vector< Interpretation > &value)
AWS_LEXRUNTIMEV2_API IntentResultEvent(Aws::Utils::Json::JsonView jsonValue)
const RecognizedBotMember & GetRecognizedBotMember() const
IntentResultEvent & WithSessionId(Aws::String &&value)
IntentResultEvent & WithInputMode(InputMode &&value)
IntentResultEvent & WithRecognizedBotMember(RecognizedBotMember &&value)
IntentResultEvent & AddRequestAttributes(const char *key, const char *value)
IntentResultEvent & WithRecognizedBotMember(const RecognizedBotMember &value)
IntentResultEvent & WithRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
IntentResultEvent & AddRequestAttributes(Aws::String &&key, const Aws::String &value)
void SetRequestAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestAttributes(const Aws::Map< Aws::String, Aws::String > &value)
IntentResultEvent & AddInterpretations(const Interpretation &value)
IntentResultEvent & AddRequestAttributes(Aws::String &&key, Aws::String &&value)
IntentResultEvent & AddRequestAttributes(const char *key, Aws::String &&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