AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 InputMode GetInputMode() const { return m_inputMode; }
53 inline bool InputModeHasBeenSet() const { return m_inputModeHasBeenSet; }
54 inline void SetInputMode(InputMode value) { m_inputModeHasBeenSet = true; m_inputMode = value; }
55 inline IntentResultEvent& WithInputMode(InputMode value) { SetInputMode(value); return *this;}
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) { m_interpretationsHasBeenSet = true; m_interpretations = std::forward<InterpretationsT>(value); }
70 template<typename InterpretationsT = Aws::Vector<Interpretation>>
71 IntentResultEvent& WithInterpretations(InterpretationsT&& value) { SetInterpretations(std::forward<InterpretationsT>(value)); return *this;}
72 template<typename InterpretationsT = Interpretation>
73 IntentResultEvent& AddInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet = true; m_interpretations.emplace_back(std::forward<InterpretationsT>(value)); return *this; }
75
77
78 inline const SessionState& GetSessionState() const { return m_sessionState; }
79 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
80 template<typename SessionStateT = SessionState>
81 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::forward<SessionStateT>(value); }
82 template<typename SessionStateT = SessionState>
83 IntentResultEvent& WithSessionState(SessionStateT&& value) { SetSessionState(std::forward<SessionStateT>(value)); return *this;}
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
91 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
92 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
93 void SetRequestAttributes(RequestAttributesT&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::forward<RequestAttributesT>(value); }
94 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
95 IntentResultEvent& WithRequestAttributes(RequestAttributesT&& value) { SetRequestAttributes(std::forward<RequestAttributesT>(value)); return *this;}
96 template<typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
97 IntentResultEvent& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
98 m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value)); return *this;
99 }
101
103
106 inline const Aws::String& GetSessionId() const { return m_sessionId; }
107 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
108 template<typename SessionIdT = Aws::String>
109 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
110 template<typename SessionIdT = Aws::String>
111 IntentResultEvent& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
113
115
120 inline const Aws::String& GetEventId() const { return m_eventId; }
121 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
122 template<typename EventIdT = Aws::String>
123 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
124 template<typename EventIdT = Aws::String>
125 IntentResultEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
127
129
132 inline const RecognizedBotMember& GetRecognizedBotMember() const { return m_recognizedBotMember; }
133 inline bool RecognizedBotMemberHasBeenSet() const { return m_recognizedBotMemberHasBeenSet; }
134 template<typename RecognizedBotMemberT = RecognizedBotMember>
135 void SetRecognizedBotMember(RecognizedBotMemberT&& value) { m_recognizedBotMemberHasBeenSet = true; m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value); }
136 template<typename RecognizedBotMemberT = RecognizedBotMember>
137 IntentResultEvent& WithRecognizedBotMember(RecognizedBotMemberT&& value) { SetRecognizedBotMember(std::forward<RecognizedBotMemberT>(value)); return *this;}
139 private:
140
141 InputMode m_inputMode{InputMode::NOT_SET};
142 bool m_inputModeHasBeenSet = false;
143
144 Aws::Vector<Interpretation> m_interpretations;
145 bool m_interpretationsHasBeenSet = false;
146
147 SessionState m_sessionState;
148 bool m_sessionStateHasBeenSet = false;
149
150 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
151 bool m_requestAttributesHasBeenSet = false;
152
153 Aws::String m_sessionId;
154 bool m_sessionIdHasBeenSet = false;
155
156 Aws::String m_eventId;
157 bool m_eventIdHasBeenSet = false;
158
159 RecognizedBotMember m_recognizedBotMember;
160 bool m_recognizedBotMemberHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace LexRuntimeV2
165} // 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