AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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 {
36 public:
37 AWS_DEADLINE_API GetSessionResult() = default;
40
42
45 inline const Aws::String& GetSessionId() const { return m_sessionId; }
46 template <typename SessionIdT = Aws::String>
47 void SetSessionId(SessionIdT&& value) {
48 m_sessionIdHasBeenSet = true;
49 m_sessionId = std::forward<SessionIdT>(value);
50 }
51 template <typename SessionIdT = Aws::String>
52 GetSessionResult& WithSessionId(SessionIdT&& value) {
53 SetSessionId(std::forward<SessionIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFleetId() const { return m_fleetId; }
63 template <typename FleetIdT = Aws::String>
64 void SetFleetId(FleetIdT&& value) {
65 m_fleetIdHasBeenSet = true;
66 m_fleetId = std::forward<FleetIdT>(value);
67 }
68 template <typename FleetIdT = Aws::String>
69 GetSessionResult& WithFleetId(FleetIdT&& value) {
70 SetFleetId(std::forward<FleetIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetWorkerId() const { return m_workerId; }
80 template <typename WorkerIdT = Aws::String>
81 void SetWorkerId(WorkerIdT&& value) {
82 m_workerIdHasBeenSet = true;
83 m_workerId = std::forward<WorkerIdT>(value);
84 }
85 template <typename WorkerIdT = Aws::String>
86 GetSessionResult& WithWorkerId(WorkerIdT&& value) {
87 SetWorkerId(std::forward<WorkerIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
97 template <typename StartedAtT = Aws::Utils::DateTime>
98 void SetStartedAt(StartedAtT&& value) {
99 m_startedAtHasBeenSet = true;
100 m_startedAt = std::forward<StartedAtT>(value);
101 }
102 template <typename StartedAtT = Aws::Utils::DateTime>
103 GetSessionResult& WithStartedAt(StartedAtT&& value) {
104 SetStartedAt(std::forward<StartedAtT>(value));
105 return *this;
106 }
108
110
113 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
115 m_lifecycleStatusHasBeenSet = true;
116 m_lifecycleStatus = value;
117 }
119 SetLifecycleStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
129 template <typename EndedAtT = Aws::Utils::DateTime>
130 void SetEndedAt(EndedAtT&& value) {
131 m_endedAtHasBeenSet = true;
132 m_endedAt = std::forward<EndedAtT>(value);
133 }
134 template <typename EndedAtT = Aws::Utils::DateTime>
135 GetSessionResult& WithEndedAt(EndedAtT&& value) {
136 SetEndedAt(std::forward<EndedAtT>(value));
137 return *this;
138 }
140
142
145 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
147 m_targetLifecycleStatusHasBeenSet = true;
148 m_targetLifecycleStatus = value;
149 }
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 void SetUpdatedAt(UpdatedAtT&& value) {
163 m_updatedAtHasBeenSet = true;
164 m_updatedAt = std::forward<UpdatedAtT>(value);
165 }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
167 GetSessionResult& WithUpdatedAt(UpdatedAtT&& value) {
168 SetUpdatedAt(std::forward<UpdatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
178 template <typename UpdatedByT = Aws::String>
179 void SetUpdatedBy(UpdatedByT&& value) {
180 m_updatedByHasBeenSet = true;
181 m_updatedBy = std::forward<UpdatedByT>(value);
182 }
183 template <typename UpdatedByT = Aws::String>
184 GetSessionResult& WithUpdatedBy(UpdatedByT&& value) {
185 SetUpdatedBy(std::forward<UpdatedByT>(value));
186 return *this;
187 }
189
191
194 inline const LogConfiguration& GetLog() const { return m_log; }
195 template <typename LogT = LogConfiguration>
196 void SetLog(LogT&& value) {
197 m_logHasBeenSet = true;
198 m_log = std::forward<LogT>(value);
199 }
200 template <typename LogT = LogConfiguration>
201 GetSessionResult& WithLog(LogT&& value) {
202 SetLog(std::forward<LogT>(value));
203 return *this;
204 }
206
208
211 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
212 template <typename HostPropertiesT = HostPropertiesResponse>
213 void SetHostProperties(HostPropertiesT&& value) {
214 m_hostPropertiesHasBeenSet = true;
215 m_hostProperties = std::forward<HostPropertiesT>(value);
216 }
217 template <typename HostPropertiesT = HostPropertiesResponse>
218 GetSessionResult& WithHostProperties(HostPropertiesT&& value) {
219 SetHostProperties(std::forward<HostPropertiesT>(value));
220 return *this;
221 }
223
225
228 inline const LogConfiguration& GetWorkerLog() const { return m_workerLog; }
229 template <typename WorkerLogT = LogConfiguration>
230 void SetWorkerLog(WorkerLogT&& value) {
231 m_workerLogHasBeenSet = true;
232 m_workerLog = std::forward<WorkerLogT>(value);
233 }
234 template <typename WorkerLogT = LogConfiguration>
235 GetSessionResult& WithWorkerLog(WorkerLogT&& value) {
236 SetWorkerLog(std::forward<WorkerLogT>(value));
237 return *this;
238 }
240
242
243 inline const Aws::String& GetRequestId() const { return m_requestId; }
244 template <typename RequestIdT = Aws::String>
245 void SetRequestId(RequestIdT&& value) {
246 m_requestIdHasBeenSet = true;
247 m_requestId = std::forward<RequestIdT>(value);
248 }
249 template <typename RequestIdT = Aws::String>
250 GetSessionResult& WithRequestId(RequestIdT&& value) {
251 SetRequestId(std::forward<RequestIdT>(value));
252 return *this;
253 }
255 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
256
257 private:
258 Aws::String m_sessionId;
259
260 Aws::String m_fleetId;
261
262 Aws::String m_workerId;
263
264 Aws::Utils::DateTime m_startedAt{};
265
267
268 Aws::Utils::DateTime m_endedAt{};
269
271
272 Aws::Utils::DateTime m_updatedAt{};
273
274 Aws::String m_updatedBy;
275
276 LogConfiguration m_log;
277
278 HostPropertiesResponse m_hostProperties;
279
280 LogConfiguration m_workerLog;
281
282 Aws::String m_requestId;
283 Aws::Http::HttpResponseCode m_HttpResponseCode;
284 bool m_sessionIdHasBeenSet = false;
285 bool m_fleetIdHasBeenSet = false;
286 bool m_workerIdHasBeenSet = false;
287 bool m_startedAtHasBeenSet = false;
288 bool m_lifecycleStatusHasBeenSet = false;
289 bool m_endedAtHasBeenSet = false;
290 bool m_targetLifecycleStatusHasBeenSet = false;
291 bool m_updatedAtHasBeenSet = false;
292 bool m_updatedByHasBeenSet = false;
293 bool m_logHasBeenSet = false;
294 bool m_hostPropertiesHasBeenSet = false;
295 bool m_workerLogHasBeenSet = false;
296 bool m_requestIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace deadline
301} // 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