AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GetSessionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/HostPropertiesResponse.h>
11#include <aws/deadline/model/LogConfiguration.h>
12#include <aws/deadline/model/SessionLifecycleStatus.h>
13#include <aws/deadline/model/SessionLifecycleTargetStatus.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 deadline {
27namespace Model {
29 public:
30 AWS_DEADLINE_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
55 inline const Aws::String& GetFleetId() const { return m_fleetId; }
56 template <typename FleetIdT = Aws::String>
57 void SetFleetId(FleetIdT&& value) {
58 m_fleetIdHasBeenSet = true;
59 m_fleetId = std::forward<FleetIdT>(value);
60 }
61 template <typename FleetIdT = Aws::String>
62 GetSessionResult& WithFleetId(FleetIdT&& value) {
63 SetFleetId(std::forward<FleetIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetWorkerId() const { return m_workerId; }
73 template <typename WorkerIdT = Aws::String>
74 void SetWorkerId(WorkerIdT&& value) {
75 m_workerIdHasBeenSet = true;
76 m_workerId = std::forward<WorkerIdT>(value);
77 }
78 template <typename WorkerIdT = Aws::String>
79 GetSessionResult& WithWorkerId(WorkerIdT&& value) {
80 SetWorkerId(std::forward<WorkerIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
90 template <typename StartedAtT = Aws::Utils::DateTime>
91 void SetStartedAt(StartedAtT&& value) {
92 m_startedAtHasBeenSet = true;
93 m_startedAt = std::forward<StartedAtT>(value);
94 }
95 template <typename StartedAtT = Aws::Utils::DateTime>
96 GetSessionResult& WithStartedAt(StartedAtT&& value) {
97 SetStartedAt(std::forward<StartedAtT>(value));
98 return *this;
99 }
101
103
106 inline const LogConfiguration& GetLog() const { return m_log; }
107 template <typename LogT = LogConfiguration>
108 void SetLog(LogT&& value) {
109 m_logHasBeenSet = true;
110 m_log = std::forward<LogT>(value);
111 }
112 template <typename LogT = LogConfiguration>
113 GetSessionResult& WithLog(LogT&& value) {
114 SetLog(std::forward<LogT>(value));
115 return *this;
116 }
118
120
123 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
125 m_lifecycleStatusHasBeenSet = true;
126 m_lifecycleStatus = value;
127 }
129 SetLifecycleStatus(value);
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
139 template <typename EndedAtT = Aws::Utils::DateTime>
140 void SetEndedAt(EndedAtT&& value) {
141 m_endedAtHasBeenSet = true;
142 m_endedAt = std::forward<EndedAtT>(value);
143 }
144 template <typename EndedAtT = Aws::Utils::DateTime>
145 GetSessionResult& WithEndedAt(EndedAtT&& value) {
146 SetEndedAt(std::forward<EndedAtT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 void SetUpdatedAt(UpdatedAtT&& value) {
158 m_updatedAtHasBeenSet = true;
159 m_updatedAt = std::forward<UpdatedAtT>(value);
160 }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 GetSessionResult& WithUpdatedAt(UpdatedAtT&& value) {
163 SetUpdatedAt(std::forward<UpdatedAtT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
173 template <typename UpdatedByT = Aws::String>
174 void SetUpdatedBy(UpdatedByT&& value) {
175 m_updatedByHasBeenSet = true;
176 m_updatedBy = std::forward<UpdatedByT>(value);
177 }
178 template <typename UpdatedByT = Aws::String>
179 GetSessionResult& WithUpdatedBy(UpdatedByT&& value) {
180 SetUpdatedBy(std::forward<UpdatedByT>(value));
181 return *this;
182 }
184
186
189 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
191 m_targetLifecycleStatusHasBeenSet = true;
192 m_targetLifecycleStatus = value;
193 }
196 return *this;
197 }
199
201
204 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
205 template <typename HostPropertiesT = HostPropertiesResponse>
206 void SetHostProperties(HostPropertiesT&& value) {
207 m_hostPropertiesHasBeenSet = true;
208 m_hostProperties = std::forward<HostPropertiesT>(value);
209 }
210 template <typename HostPropertiesT = HostPropertiesResponse>
211 GetSessionResult& WithHostProperties(HostPropertiesT&& value) {
212 SetHostProperties(std::forward<HostPropertiesT>(value));
213 return *this;
214 }
216
218
221 inline const LogConfiguration& GetWorkerLog() const { return m_workerLog; }
222 template <typename WorkerLogT = LogConfiguration>
223 void SetWorkerLog(WorkerLogT&& value) {
224 m_workerLogHasBeenSet = true;
225 m_workerLog = std::forward<WorkerLogT>(value);
226 }
227 template <typename WorkerLogT = LogConfiguration>
228 GetSessionResult& WithWorkerLog(WorkerLogT&& value) {
229 SetWorkerLog(std::forward<WorkerLogT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 GetSessionResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_sessionId;
250
251 Aws::String m_fleetId;
252
253 Aws::String m_workerId;
254
255 Aws::Utils::DateTime m_startedAt{};
256
257 LogConfiguration m_log;
258
260
261 Aws::Utils::DateTime m_endedAt{};
262
263 Aws::Utils::DateTime m_updatedAt{};
264
265 Aws::String m_updatedBy;
266
268
269 HostPropertiesResponse m_hostProperties;
270
271 LogConfiguration m_workerLog;
272
273 Aws::String m_requestId;
274 bool m_sessionIdHasBeenSet = false;
275 bool m_fleetIdHasBeenSet = false;
276 bool m_workerIdHasBeenSet = false;
277 bool m_startedAtHasBeenSet = false;
278 bool m_logHasBeenSet = false;
279 bool m_lifecycleStatusHasBeenSet = false;
280 bool m_endedAtHasBeenSet = false;
281 bool m_updatedAtHasBeenSet = false;
282 bool m_updatedByHasBeenSet = false;
283 bool m_targetLifecycleStatusHasBeenSet = false;
284 bool m_hostPropertiesHasBeenSet = false;
285 bool m_workerLogHasBeenSet = false;
286 bool m_requestIdHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace deadline
291} // 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
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