AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
RecognizeTextResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
12#include <aws/lexv2-runtime/model/Interpretation.h>
13#include <aws/lexv2-runtime/model/Message.h>
14#include <aws/lexv2-runtime/model/RecognizedBotMember.h>
15#include <aws/lexv2-runtime/model/SessionState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LexRuntimeV2 {
29namespace Model {
31 public:
32 AWS_LEXRUNTIMEV2_API RecognizeTextResult() = default;
35
37
42 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
43 template <typename MessagesT = Aws::Vector<Message>>
44 void SetMessages(MessagesT&& value) {
45 m_messagesHasBeenSet = true;
46 m_messages = std::forward<MessagesT>(value);
47 }
48 template <typename MessagesT = Aws::Vector<Message>>
49 RecognizeTextResult& WithMessages(MessagesT&& value) {
50 SetMessages(std::forward<MessagesT>(value));
51 return *this;
52 }
53 template <typename MessagesT = Message>
54 RecognizeTextResult& AddMessages(MessagesT&& value) {
55 m_messagesHasBeenSet = true;
56 m_messages.emplace_back(std::forward<MessagesT>(value));
57 return *this;
58 }
60
62
67 inline const SessionState& GetSessionState() const { return m_sessionState; }
68 template <typename SessionStateT = SessionState>
69 void SetSessionState(SessionStateT&& value) {
70 m_sessionStateHasBeenSet = true;
71 m_sessionState = std::forward<SessionStateT>(value);
72 }
73 template <typename SessionStateT = SessionState>
74 RecognizeTextResult& WithSessionState(SessionStateT&& value) {
75 SetSessionState(std::forward<SessionStateT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::Vector<Interpretation>& GetInterpretations() const { return m_interpretations; }
89 template <typename InterpretationsT = Aws::Vector<Interpretation>>
90 void SetInterpretations(InterpretationsT&& value) {
91 m_interpretationsHasBeenSet = true;
92 m_interpretations = std::forward<InterpretationsT>(value);
93 }
94 template <typename InterpretationsT = Aws::Vector<Interpretation>>
95 RecognizeTextResult& WithInterpretations(InterpretationsT&& value) {
96 SetInterpretations(std::forward<InterpretationsT>(value));
97 return *this;
98 }
99 template <typename InterpretationsT = Interpretation>
100 RecognizeTextResult& AddInterpretations(InterpretationsT&& value) {
101 m_interpretationsHasBeenSet = true;
102 m_interpretations.emplace_back(std::forward<InterpretationsT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
112 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
113 void SetRequestAttributes(RequestAttributesT&& value) {
114 m_requestAttributesHasBeenSet = true;
115 m_requestAttributes = std::forward<RequestAttributesT>(value);
116 }
117 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
118 RecognizeTextResult& WithRequestAttributes(RequestAttributesT&& value) {
119 SetRequestAttributes(std::forward<RequestAttributesT>(value));
120 return *this;
121 }
122 template <typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
123 RecognizeTextResult& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
124 m_requestAttributesHasBeenSet = true;
125 m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetSessionId() const { return m_sessionId; }
135 template <typename SessionIdT = Aws::String>
136 void SetSessionId(SessionIdT&& value) {
137 m_sessionIdHasBeenSet = true;
138 m_sessionId = std::forward<SessionIdT>(value);
139 }
140 template <typename SessionIdT = Aws::String>
141 RecognizeTextResult& WithSessionId(SessionIdT&& value) {
142 SetSessionId(std::forward<SessionIdT>(value));
143 return *this;
144 }
146
148
151 inline const RecognizedBotMember& GetRecognizedBotMember() const { return m_recognizedBotMember; }
152 template <typename RecognizedBotMemberT = RecognizedBotMember>
153 void SetRecognizedBotMember(RecognizedBotMemberT&& value) {
154 m_recognizedBotMemberHasBeenSet = true;
155 m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value);
156 }
157 template <typename RecognizedBotMemberT = RecognizedBotMember>
158 RecognizeTextResult& WithRecognizedBotMember(RecognizedBotMemberT&& value) {
159 SetRecognizedBotMember(std::forward<RecognizedBotMemberT>(value));
160 return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template <typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) {
169 m_requestIdHasBeenSet = true;
170 m_requestId = std::forward<RequestIdT>(value);
171 }
172 template <typename RequestIdT = Aws::String>
173 RecognizeTextResult& WithRequestId(RequestIdT&& value) {
174 SetRequestId(std::forward<RequestIdT>(value));
175 return *this;
176 }
178 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
179
180 private:
181 Aws::Vector<Message> m_messages;
182
183 SessionState m_sessionState;
184
185 Aws::Vector<Interpretation> m_interpretations;
186
187 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
188
189 Aws::String m_sessionId;
190
191 RecognizedBotMember m_recognizedBotMember;
192
193 Aws::String m_requestId;
194 Aws::Http::HttpResponseCode m_HttpResponseCode;
195 bool m_messagesHasBeenSet = false;
196 bool m_sessionStateHasBeenSet = false;
197 bool m_interpretationsHasBeenSet = false;
198 bool m_requestAttributesHasBeenSet = false;
199 bool m_sessionIdHasBeenSet = false;
200 bool m_recognizedBotMemberHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace LexRuntimeV2
206} // namespace Aws
const Aws::Vector< Interpretation > & GetInterpretations() const
RecognizeTextResult & AddRequestAttributes(RequestAttributesKeyT &&key, RequestAttributesValueT &&value)
AWS_LEXRUNTIMEV2_API RecognizeTextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RecognizeTextResult & AddInterpretations(InterpretationsT &&value)
void SetInterpretations(InterpretationsT &&value)
const Aws::Vector< Message > & GetMessages() const
void SetRecognizedBotMember(RecognizedBotMemberT &&value)
RecognizeTextResult & WithMessages(MessagesT &&value)
RecognizeTextResult & WithRequestId(RequestIdT &&value)
AWS_LEXRUNTIMEV2_API RecognizeTextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestAttributes(RequestAttributesT &&value)
RecognizeTextResult & AddMessages(MessagesT &&value)
const RecognizedBotMember & GetRecognizedBotMember() const
RecognizeTextResult & WithRequestAttributes(RequestAttributesT &&value)
RecognizeTextResult & WithSessionId(SessionIdT &&value)
RecognizeTextResult & WithSessionState(SessionStateT &&value)
RecognizeTextResult & WithInterpretations(InterpretationsT &&value)
RecognizeTextResult & WithRecognizedBotMember(RecognizedBotMemberT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LEXRUNTIMEV2_API RecognizeTextResult()=default
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