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>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace LexRuntimeV2 {
43 template <
typename MessagesT = Aws::Vector<Message>>
45 m_messagesHasBeenSet =
true;
46 m_messages = std::forward<MessagesT>(value);
48 template <
typename MessagesT = Aws::Vector<Message>>
53 template <
typename MessagesT = Message>
55 m_messagesHasBeenSet =
true;
56 m_messages.emplace_back(std::forward<MessagesT>(value));
68 template <
typename SessionStateT = SessionState>
70 m_sessionStateHasBeenSet =
true;
71 m_sessionState = std::forward<SessionStateT>(value);
73 template <
typename SessionStateT = SessionState>
89 template <
typename InterpretationsT = Aws::Vector<Interpretation>>
91 m_interpretationsHasBeenSet =
true;
92 m_interpretations = std::forward<InterpretationsT>(value);
94 template <
typename InterpretationsT = Aws::Vector<Interpretation>>
99 template <
typename InterpretationsT = Interpretation>
101 m_interpretationsHasBeenSet =
true;
102 m_interpretations.emplace_back(std::forward<InterpretationsT>(value));
112 template <
typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
114 m_requestAttributesHasBeenSet =
true;
115 m_requestAttributes = std::forward<RequestAttributesT>(value);
117 template <
typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
122 template <
typename RequestAttributesKeyT = Aws::String,
typename RequestAttributesValueT = Aws::String>
124 m_requestAttributesHasBeenSet =
true;
125 m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value));
135 template <
typename SessionIdT = Aws::String>
137 m_sessionIdHasBeenSet =
true;
138 m_sessionId = std::forward<SessionIdT>(value);
140 template <
typename SessionIdT = Aws::String>
152 template <
typename RecognizedBotMemberT = RecognizedBotMember>
154 m_recognizedBotMemberHasBeenSet =
true;
155 m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value);
157 template <
typename RecognizedBotMemberT = RecognizedBotMember>
167 template <
typename RequestIdT = Aws::String>
169 m_requestIdHasBeenSet =
true;
170 m_requestId = std::forward<RequestIdT>(value);
172 template <
typename RequestIdT = Aws::String>
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;
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 SetMessages(MessagesT &&value)
void SetRecognizedBotMember(RecognizedBotMemberT &&value)
void SetSessionId(SessionIdT &&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)
const Aws::String & GetRequestId() const
RecognizeTextResult & WithSessionState(SessionStateT &&value)
RecognizeTextResult & WithInterpretations(InterpretationsT &&value)
const Aws::String & GetSessionId() const
RecognizeTextResult & WithRecognizedBotMember(RecognizedBotMemberT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
const SessionState & GetSessionState() const
void SetSessionState(SessionStateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LEXRUNTIMEV2_API RecognizeTextResult()=default
void SetRequestId(RequestIdT &&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