AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
11#include <aws/lexv2-runtime/model/Interpretation.h>
12#include <aws/lexv2-runtime/model/Message.h>
13#include <aws/lexv2-runtime/model/SessionState.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexRuntimeV2 {
27namespace Model {
29 public:
30 AWS_LEXRUNTIMEV2_API GetSessionResult() = default;
33
35
38 inline const Aws::String& GetSessionId() const { return m_sessionId; }
39 template <typename SessionIdT = Aws::String>
40 void SetSessionId(SessionIdT&& value) {
41 m_sessionIdHasBeenSet = true;
42 m_sessionId = std::forward<SessionIdT>(value);
43 }
44 template <typename SessionIdT = Aws::String>
45 GetSessionResult& WithSessionId(SessionIdT&& value) {
46 SetSessionId(std::forward<SessionIdT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
58 template <typename MessagesT = Aws::Vector<Message>>
59 void SetMessages(MessagesT&& value) {
60 m_messagesHasBeenSet = true;
61 m_messages = std::forward<MessagesT>(value);
62 }
63 template <typename MessagesT = Aws::Vector<Message>>
64 GetSessionResult& WithMessages(MessagesT&& value) {
65 SetMessages(std::forward<MessagesT>(value));
66 return *this;
67 }
68 template <typename MessagesT = Message>
69 GetSessionResult& AddMessages(MessagesT&& value) {
70 m_messagesHasBeenSet = true;
71 m_messages.emplace_back(std::forward<MessagesT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::Vector<Interpretation>& GetInterpretations() const { return m_interpretations; }
85 template <typename InterpretationsT = Aws::Vector<Interpretation>>
86 void SetInterpretations(InterpretationsT&& value) {
87 m_interpretationsHasBeenSet = true;
88 m_interpretations = std::forward<InterpretationsT>(value);
89 }
90 template <typename InterpretationsT = Aws::Vector<Interpretation>>
91 GetSessionResult& WithInterpretations(InterpretationsT&& value) {
92 SetInterpretations(std::forward<InterpretationsT>(value));
93 return *this;
94 }
95 template <typename InterpretationsT = Interpretation>
96 GetSessionResult& AddInterpretations(InterpretationsT&& value) {
97 m_interpretationsHasBeenSet = true;
98 m_interpretations.emplace_back(std::forward<InterpretationsT>(value));
99 return *this;
100 }
102
104
109 inline const SessionState& GetSessionState() const { return m_sessionState; }
110 template <typename SessionStateT = SessionState>
111 void SetSessionState(SessionStateT&& value) {
112 m_sessionStateHasBeenSet = true;
113 m_sessionState = std::forward<SessionStateT>(value);
114 }
115 template <typename SessionStateT = SessionState>
116 GetSessionResult& WithSessionState(SessionStateT&& value) {
117 SetSessionState(std::forward<SessionStateT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
131 GetSessionResult& WithRequestId(RequestIdT&& value) {
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
137
138 private:
139 Aws::String m_sessionId;
140
141 Aws::Vector<Message> m_messages;
142
143 Aws::Vector<Interpretation> m_interpretations;
144
145 SessionState m_sessionState;
146
147 Aws::String m_requestId;
148 Aws::Http::HttpResponseCode m_HttpResponseCode;
149 bool m_sessionIdHasBeenSet = false;
150 bool m_messagesHasBeenSet = false;
151 bool m_interpretationsHasBeenSet = false;
152 bool m_sessionStateHasBeenSet = false;
153 bool m_requestIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace LexRuntimeV2
158} // namespace Aws
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
GetSessionResult & WithSessionId(SessionIdT &&value)
GetSessionResult & AddInterpretations(InterpretationsT &&value)
const Aws::Vector< Message > & GetMessages() const
GetSessionResult & WithMessages(MessagesT &&value)
void SetSessionState(SessionStateT &&value)
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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue