7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/lexv2-runtime/model/Message.h>
12#include <aws/lexv2-runtime/model/Interpretation.h>
17template<
typename RESULT_TYPE>
18class AmazonWebServiceResult;
44 template<
typename SessionIdT = Aws::String>
45 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet =
true; m_sessionId = std::forward<SessionIdT>(value); }
46 template<
typename SessionIdT = Aws::String>
57 template<
typename MessagesT = Aws::Vector<Message>>
58 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages = std::forward<MessagesT>(value); }
59 template<
typename MessagesT = Aws::Vector<Message>>
61 template<
typename MessagesT = Message>
62 GetSessionResult&
AddMessages(MessagesT&& value) { m_messagesHasBeenSet =
true; m_messages.emplace_back(std::forward<MessagesT>(value));
return *
this; }
74 template<
typename InterpretationsT = Aws::Vector<Interpretation>>
75 void SetInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet =
true; m_interpretations = std::forward<InterpretationsT>(value); }
76 template<
typename InterpretationsT = Aws::Vector<Interpretation>>
78 template<
typename InterpretationsT = Interpretation>
79 GetSessionResult&
AddInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet =
true; m_interpretations.emplace_back(std::forward<InterpretationsT>(value));
return *
this; }
89 template<
typename SessionStateT = SessionState>
90 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet =
true; m_sessionState = std::forward<SessionStateT>(value); }
91 template<
typename SessionStateT = SessionState>
98 template<
typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
100 template<
typename RequestIdT = Aws::String>
106 bool m_sessionIdHasBeenSet =
false;
109 bool m_messagesHasBeenSet =
false;
112 bool m_interpretationsHasBeenSet =
false;
115 bool m_sessionStateHasBeenSet =
false;
118 bool m_requestIdHasBeenSet =
false;
void SetInterpretations(InterpretationsT &&value)
const Aws::Vector< Interpretation > & GetInterpretations() const
const SessionState & GetSessionState() const
AWS_LEXRUNTIMEV2_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LEXRUNTIMEV2_API GetSessionResult()=default
void SetRequestId(RequestIdT &&value)
void SetMessages(MessagesT &&value)
GetSessionResult & WithSessionId(SessionIdT &&value)
GetSessionResult & AddInterpretations(InterpretationsT &&value)
const Aws::Vector< Message > & GetMessages() const
GetSessionResult & WithMessages(MessagesT &&value)
void SetSessionState(SessionStateT &&value)
const Aws::String & GetSessionId() const
const Aws::String & GetRequestId() const
AWS_LEXRUNTIMEV2_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & AddMessages(MessagesT &&value)
GetSessionResult & WithRequestId(RequestIdT &&value)
GetSessionResult & WithSessionState(SessionStateT &&value)
GetSessionResult & WithInterpretations(InterpretationsT &&value)
void SetSessionId(SessionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue