AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/HostPropertiesResponse.h>
12#include <aws/deadline/model/LogConfiguration.h>
13#include <aws/deadline/model/SessionLifecycleStatus.h>
14#include <aws/deadline/model/SessionLifecycleTargetStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace deadline {
28namespace Model {
30 public:
31 AWS_DEADLINE_API GetSessionResult() = default;
34
36
39 inline const Aws::String& GetSessionId() const { return m_sessionId; }
40 template <typename SessionIdT = Aws::String>
41 void SetSessionId(SessionIdT&& value) {
42 m_sessionIdHasBeenSet = true;
43 m_sessionId = std::forward<SessionIdT>(value);
44 }
45 template <typename SessionIdT = Aws::String>
46 GetSessionResult& WithSessionId(SessionIdT&& value) {
47 SetSessionId(std::forward<SessionIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetFleetId() const { return m_fleetId; }
57 template <typename FleetIdT = Aws::String>
58 void SetFleetId(FleetIdT&& value) {
59 m_fleetIdHasBeenSet = true;
60 m_fleetId = std::forward<FleetIdT>(value);
61 }
62 template <typename FleetIdT = Aws::String>
63 GetSessionResult& WithFleetId(FleetIdT&& value) {
64 SetFleetId(std::forward<FleetIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetWorkerId() const { return m_workerId; }
74 template <typename WorkerIdT = Aws::String>
75 void SetWorkerId(WorkerIdT&& value) {
76 m_workerIdHasBeenSet = true;
77 m_workerId = std::forward<WorkerIdT>(value);
78 }
79 template <typename WorkerIdT = Aws::String>
80 GetSessionResult& WithWorkerId(WorkerIdT&& value) {
81 SetWorkerId(std::forward<WorkerIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
91 template <typename StartedAtT = Aws::Utils::DateTime>
92 void SetStartedAt(StartedAtT&& value) {
93 m_startedAtHasBeenSet = true;
94 m_startedAt = std::forward<StartedAtT>(value);
95 }
96 template <typename StartedAtT = Aws::Utils::DateTime>
97 GetSessionResult& WithStartedAt(StartedAtT&& value) {
98 SetStartedAt(std::forward<StartedAtT>(value));
99 return *this;
100 }
102
104
107 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
109 m_lifecycleStatusHasBeenSet = true;
110 m_lifecycleStatus = value;
111 }
113 SetLifecycleStatus(value);
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
123 template <typename EndedAtT = Aws::Utils::DateTime>
124 void SetEndedAt(EndedAtT&& value) {
125 m_endedAtHasBeenSet = true;
126 m_endedAt = std::forward<EndedAtT>(value);
127 }
128 template <typename EndedAtT = Aws::Utils::DateTime>
129 GetSessionResult& WithEndedAt(EndedAtT&& value) {
130 SetEndedAt(std::forward<EndedAtT>(value));
131 return *this;
132 }
134
136
139 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
141 m_targetLifecycleStatusHasBeenSet = true;
142 m_targetLifecycleStatus = value;
143 }
149
151
154 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
155 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 void SetUpdatedAt(UpdatedAtT&& value) {
157 m_updatedAtHasBeenSet = true;
158 m_updatedAt = std::forward<UpdatedAtT>(value);
159 }
160 template <typename UpdatedAtT = Aws::Utils::DateTime>
161 GetSessionResult& WithUpdatedAt(UpdatedAtT&& value) {
162 SetUpdatedAt(std::forward<UpdatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
172 template <typename UpdatedByT = Aws::String>
173 void SetUpdatedBy(UpdatedByT&& value) {
174 m_updatedByHasBeenSet = true;
175 m_updatedBy = std::forward<UpdatedByT>(value);
176 }
177 template <typename UpdatedByT = Aws::String>
178 GetSessionResult& WithUpdatedBy(UpdatedByT&& value) {
179 SetUpdatedBy(std::forward<UpdatedByT>(value));
180 return *this;
181 }
183
185
188 inline const LogConfiguration& GetLog() const { return m_log; }
189 template <typename LogT = LogConfiguration>
190 void SetLog(LogT&& value) {
191 m_logHasBeenSet = true;
192 m_log = std::forward<LogT>(value);
193 }
194 template <typename LogT = LogConfiguration>
195 GetSessionResult& WithLog(LogT&& value) {
196 SetLog(std::forward<LogT>(value));
197 return *this;
198 }
200
202
205 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
206 template <typename HostPropertiesT = HostPropertiesResponse>
207 void SetHostProperties(HostPropertiesT&& value) {
208 m_hostPropertiesHasBeenSet = true;
209 m_hostProperties = std::forward<HostPropertiesT>(value);
210 }
211 template <typename HostPropertiesT = HostPropertiesResponse>
212 GetSessionResult& WithHostProperties(HostPropertiesT&& value) {
213 SetHostProperties(std::forward<HostPropertiesT>(value));
214 return *this;
215 }
217
219
222 inline const LogConfiguration& GetWorkerLog() const { return m_workerLog; }
223 template <typename WorkerLogT = LogConfiguration>
224 void SetWorkerLog(WorkerLogT&& value) {
225 m_workerLogHasBeenSet = true;
226 m_workerLog = std::forward<WorkerLogT>(value);
227 }
228 template <typename WorkerLogT = LogConfiguration>
229 GetSessionResult& WithWorkerLog(WorkerLogT&& value) {
230 SetWorkerLog(std::forward<WorkerLogT>(value));
231 return *this;
232 }
234
236
237 inline const Aws::String& GetRequestId() const { return m_requestId; }
238 template <typename RequestIdT = Aws::String>
239 void SetRequestId(RequestIdT&& value) {
240 m_requestIdHasBeenSet = true;
241 m_requestId = std::forward<RequestIdT>(value);
242 }
243 template <typename RequestIdT = Aws::String>
244 GetSessionResult& WithRequestId(RequestIdT&& value) {
245 SetRequestId(std::forward<RequestIdT>(value));
246 return *this;
247 }
249 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
250
251 private:
252 Aws::String m_sessionId;
253
254 Aws::String m_fleetId;
255
256 Aws::String m_workerId;
257
258 Aws::Utils::DateTime m_startedAt{};
259
261
262 Aws::Utils::DateTime m_endedAt{};
263
265
266 Aws::Utils::DateTime m_updatedAt{};
267
268 Aws::String m_updatedBy;
269
270 LogConfiguration m_log;
271
272 HostPropertiesResponse m_hostProperties;
273
274 LogConfiguration m_workerLog;
275
276 Aws::String m_requestId;
277 Aws::Http::HttpResponseCode m_HttpResponseCode;
278 bool m_sessionIdHasBeenSet = false;
279 bool m_fleetIdHasBeenSet = false;
280 bool m_workerIdHasBeenSet = false;
281 bool m_startedAtHasBeenSet = false;
282 bool m_lifecycleStatusHasBeenSet = false;
283 bool m_endedAtHasBeenSet = false;
284 bool m_targetLifecycleStatusHasBeenSet = false;
285 bool m_updatedAtHasBeenSet = false;
286 bool m_updatedByHasBeenSet = false;
287 bool m_logHasBeenSet = false;
288 bool m_hostPropertiesHasBeenSet = false;
289 bool m_workerLogHasBeenSet = false;
290 bool m_requestIdHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace deadline
295} // namespace Aws
GetSessionResult & WithTargetLifecycleStatus(SessionLifecycleTargetStatus value)
const Aws::String & GetFleetId() const
GetSessionResult & WithWorkerLog(WorkerLogT &&value)
const Aws::String & GetWorkerId() const
void SetHostProperties(HostPropertiesT &&value)
const LogConfiguration & GetWorkerLog() const
const Aws::String & GetSessionId() const
GetSessionResult & WithUpdatedBy(UpdatedByT &&value)
GetSessionResult & WithEndedAt(EndedAtT &&value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value)
GetSessionResult & WithHostProperties(HostPropertiesT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetUpdatedBy() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const HostPropertiesResponse & GetHostProperties() const
const Aws::String & GetRequestId() const
AWS_DEADLINE_API GetSessionResult()=default
GetSessionResult & WithLifecycleStatus(SessionLifecycleStatus value)
SessionLifecycleTargetStatus GetTargetLifecycleStatus() const
const LogConfiguration & GetLog() const
GetSessionResult & WithUpdatedAt(UpdatedAtT &&value)
GetSessionResult & WithSessionId(SessionIdT &&value)
GetSessionResult & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetSessionResult & WithRequestId(RequestIdT &&value)
GetSessionResult & WithLog(LogT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetSessionResult & WithFleetId(FleetIdT &&value)
SessionLifecycleStatus GetLifecycleStatus() const
AWS_DEADLINE_API GetSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLifecycleStatus(SessionLifecycleStatus value)
AWS_DEADLINE_API GetSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSessionResult & WithWorkerId(WorkerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue