AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
GetQAppSessionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qapps/QApps_EXPORTS.h>
10#include <aws/qapps/model/CardStatus.h>
11#include <aws/qapps/model/ExecutionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace QApps {
25namespace Model {
27 public:
28 AWS_QAPPS_API GetQAppSessionResult() = default;
31
33
36 inline const Aws::String& GetSessionId() const { return m_sessionId; }
37 template <typename SessionIdT = Aws::String>
38 void SetSessionId(SessionIdT&& value) {
39 m_sessionIdHasBeenSet = true;
40 m_sessionId = std::forward<SessionIdT>(value);
41 }
42 template <typename SessionIdT = Aws::String>
44 SetSessionId(std::forward<SessionIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
54 template <typename SessionArnT = Aws::String>
55 void SetSessionArn(SessionArnT&& value) {
56 m_sessionArnHasBeenSet = true;
57 m_sessionArn = std::forward<SessionArnT>(value);
58 }
59 template <typename SessionArnT = Aws::String>
61 SetSessionArn(std::forward<SessionArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetSessionName() const { return m_sessionName; }
71 template <typename SessionNameT = Aws::String>
73 m_sessionNameHasBeenSet = true;
74 m_sessionName = std::forward<SessionNameT>(value);
75 }
76 template <typename SessionNameT = Aws::String>
78 SetSessionName(std::forward<SessionNameT>(value));
79 return *this;
80 }
82
84
87 inline int GetAppVersion() const { return m_appVersion; }
88 inline void SetAppVersion(int value) {
89 m_appVersionHasBeenSet = true;
90 m_appVersion = value;
91 }
93 SetAppVersion(value);
94 return *this;
95 }
97
99
102 inline int GetLatestPublishedAppVersion() const { return m_latestPublishedAppVersion; }
103 inline void SetLatestPublishedAppVersion(int value) {
104 m_latestPublishedAppVersionHasBeenSet = true;
105 m_latestPublishedAppVersion = value;
106 }
109 return *this;
110 }
112
114
117 inline ExecutionStatus GetStatus() const { return m_status; }
118 inline void SetStatus(ExecutionStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, CardStatus>& GetCardStatus() const { return m_cardStatus; }
133 template <typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
135 m_cardStatusHasBeenSet = true;
136 m_cardStatus = std::forward<CardStatusT>(value);
137 }
138 template <typename CardStatusT = Aws::Map<Aws::String, CardStatus>>
140 SetCardStatus(std::forward<CardStatusT>(value));
141 return *this;
142 }
143 template <typename CardStatusKeyT = Aws::String, typename CardStatusValueT = CardStatus>
145 m_cardStatusHasBeenSet = true;
146 m_cardStatus.emplace(std::forward<CardStatusKeyT>(key), std::forward<CardStatusValueT>(value));
147 return *this;
148 }
150
152
156 inline bool GetUserIsHost() const { return m_userIsHost; }
157 inline void SetUserIsHost(bool value) {
158 m_userIsHostHasBeenSet = true;
159 m_userIsHost = value;
160 }
162 SetUserIsHost(value);
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_sessionId;
183
184 Aws::String m_sessionArn;
185
186 Aws::String m_sessionName;
187
188 int m_appVersion{0};
189
190 int m_latestPublishedAppVersion{0};
191
193
195
196 bool m_userIsHost{false};
197
198 Aws::String m_requestId;
199 bool m_sessionIdHasBeenSet = false;
200 bool m_sessionArnHasBeenSet = false;
201 bool m_sessionNameHasBeenSet = false;
202 bool m_appVersionHasBeenSet = false;
203 bool m_latestPublishedAppVersionHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_cardStatusHasBeenSet = false;
206 bool m_userIsHostHasBeenSet = false;
207 bool m_requestIdHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace QApps
212} // 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)
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