7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-runtime/model/SessionState.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lexv2-runtime/model/RecognizedBotMember.h>
13#include <aws/lexv2-runtime/model/Message.h>
14#include <aws/lexv2-runtime/model/Interpretation.h>
19template<
typename RESULT_TYPE>
20class AmazonWebServiceResult;
48 template<
typename MessagesT = Aws::Vector<Message>>
49 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages = std::forward<MessagesT>(value); }
50 template<
typename MessagesT = Aws::Vector<Message>>
52 template<
typename MessagesT = Message>
63 template<
typename SessionStateT = SessionState>
64 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet =
true; m_sessionState = std::forward<SessionStateT>(value); }
65 template<
typename SessionStateT = SessionState>
78 template<
typename InterpretationsT = Aws::Vector<Interpretation>>
79 void SetInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet =
true; m_interpretations = std::forward<InterpretationsT>(value); }
80 template<
typename InterpretationsT = Aws::Vector<Interpretation>>
82 template<
typename InterpretationsT = Interpretation>
91 template<
typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
92 void SetRequestAttributes(RequestAttributesT&& value) { m_requestAttributesHasBeenSet =
true; m_requestAttributes = std::forward<RequestAttributesT>(value); }
93 template<
typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
95 template<
typename RequestAttributesKeyT = Aws::String,
typename RequestAttributesValueT = Aws::String>
97 m_requestAttributesHasBeenSet =
true; m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value));
return *
this;
106 template<
typename SessionIdT = Aws::String>
107 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet =
true; m_sessionId = std::forward<SessionIdT>(value); }
108 template<
typename SessionIdT = Aws::String>
117 template<
typename RecognizedBotMemberT = RecognizedBotMember>
118 void SetRecognizedBotMember(RecognizedBotMemberT&& value) { m_recognizedBotMemberHasBeenSet =
true; m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value); }
119 template<
typename RecognizedBotMemberT = RecognizedBotMember>
126 template<
typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
128 template<
typename RequestIdT = Aws::String>
134 bool m_messagesHasBeenSet =
false;
137 bool m_sessionStateHasBeenSet =
false;
140 bool m_interpretationsHasBeenSet =
false;
143 bool m_requestAttributesHasBeenSet =
false;
146 bool m_sessionIdHasBeenSet =
false;
149 bool m_recognizedBotMemberHasBeenSet =
false;
152 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_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