AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetQAppSessionResult.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/qapps/QApps_EXPORTS.h>
11#include <aws/qapps/model/CardStatus.h>
12#include <aws/qapps/model/ExecutionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QApps {
26namespace Model {
28 public:
29 AWS_QAPPS_API GetQAppSessionResult() = default;
32
34
37 inline const Aws::String& GetSessionId() const { return m_sessionId; }
38 template <typename SessionIdT = Aws::String>
39 void SetSessionId(SessionIdT&& value) {
40 m_sessionIdHasBeenSet = true;
41 m_sessionId = std::forward<SessionIdT>(value);
42 }
43 template <typename SessionIdT = Aws::String>
45 SetSessionId(std::forward<SessionIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
55 template <typename SessionArnT = Aws::String>
56 void SetSessionArn(SessionArnT&& value) {
57 m_sessionArnHasBeenSet = true;
58 m_sessionArn = std::forward<SessionArnT>(value);
59 }
60 template <typename SessionArnT = Aws::String>
62 SetSessionArn(std::forward<SessionArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetSessionName() const { return m_sessionName; }
72 template <typename SessionNameT = Aws::String>
74 m_sessionNameHasBeenSet = true;
75 m_sessionName = std::forward<SessionNameT>(value);
76 }
77 template <typename SessionNameT = Aws::String>
79 SetSessionName(std::forward<SessionNameT>(value));
80 return *this;
81 }
83
85
88 inline int GetAppVersion() const { return m_appVersion; }
89 inline void SetAppVersion(int value) {
90 m_appVersionHasBeenSet = true;
91 m_appVersion = value;
92 }
94 SetAppVersion(value);
95 return *this;
96 }
98
100
103 inline int GetLatestPublishedAppVersion() const { return m_latestPublishedAppVersion; }
104 inline void SetLatestPublishedAppVersion(int value) {
105 m_latestPublishedAppVersionHasBeenSet = true;
106 m_latestPublishedAppVersion = value;
107 }
110 return *this;
111 }
113
115
118 inline ExecutionStatus GetStatus() const { return m_status; }
119 inline void SetStatus(ExecutionStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::Map<Aws::String, CardStatus>& GetCardStatus() const { return m_cardStatus; }
134 template <typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
136 m_cardStatusHasBeenSet = true;
137 m_cardStatus = std::forward<CardStatusT>(value);
138 }
139 template <typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
141 SetCardStatus(std::forward<CardStatusT>(value));
142 return *this;
143 }
144 template <typename CardStatusKeyT = Aws::String, typename CardStatusValueT = CardStatus>
146 m_cardStatusHasBeenSet = true;
147 m_cardStatus.emplace(std::forward<CardStatusKeyT>(key), std::forward<CardStatusValueT>(value));
148 return *this;
149 }
151
153
157 inline bool GetUserIsHost() const { return m_userIsHost; }
158 inline void SetUserIsHost(bool value) {
159 m_userIsHostHasBeenSet = true;
160 m_userIsHost = value;
161 }
163 SetUserIsHost(value);
164 return *this;
165 }
167
169
170 inline const Aws::String& GetRequestId() const { return m_requestId; }
171 template <typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) {
173 m_requestIdHasBeenSet = true;
174 m_requestId = std::forward<RequestIdT>(value);
175 }
176 template <typename RequestIdT = Aws::String>
178 SetRequestId(std::forward<RequestIdT>(value));
179 return *this;
180 }
182 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
183
184 private:
185 Aws::String m_sessionId;
186
187 Aws::String m_sessionArn;
188
189 Aws::String m_sessionName;
190
191 int m_appVersion{0};
192
193 int m_latestPublishedAppVersion{0};
194
196
198
199 bool m_userIsHost{false};
200
201 Aws::String m_requestId;
202 Aws::Http::HttpResponseCode m_HttpResponseCode;
203 bool m_sessionIdHasBeenSet = false;
204 bool m_sessionArnHasBeenSet = false;
205 bool m_sessionNameHasBeenSet = false;
206 bool m_appVersionHasBeenSet = false;
207 bool m_latestPublishedAppVersionHasBeenSet = false;
208 bool m_statusHasBeenSet = false;
209 bool m_cardStatusHasBeenSet = false;
210 bool m_userIsHostHasBeenSet = false;
211 bool m_requestIdHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace QApps
216} // namespace Aws
GetQAppSessionResult & WithSessionArn(SessionArnT &&value)
const Aws::Map< Aws::String, CardStatus > & GetCardStatus() const
GetQAppSessionResult & WithStatus(ExecutionStatus value)
GetQAppSessionResult & AddCardStatus(CardStatusKeyT &&key, CardStatusValueT &&value)
GetQAppSessionResult & WithSessionName(SessionNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetQAppSessionResult & WithSessionId(SessionIdT &&value)
AWS_QAPPS_API GetQAppSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QAPPS_API GetQAppSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQAppSessionResult & WithAppVersion(int value)
AWS_QAPPS_API GetQAppSessionResult()=default
GetQAppSessionResult & WithCardStatus(CardStatusT &&value)
GetQAppSessionResult & WithLatestPublishedAppVersion(int value)
GetQAppSessionResult & WithRequestId(RequestIdT &&value)
GetQAppSessionResult & WithUserIsHost(bool value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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
Aws::Utils::Json::JsonValue JsonValue