AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetSessionItem.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 {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
26
34 public:
35 AWS_DEADLINE_API BatchGetSessionItem() = default;
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFarmId() const { return m_farmId; }
45 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
46 template <typename FarmIdT = Aws::String>
47 void SetFarmId(FarmIdT&& value) {
48 m_farmIdHasBeenSet = true;
49 m_farmId = std::forward<FarmIdT>(value);
50 }
51 template <typename FarmIdT = Aws::String>
52 BatchGetSessionItem& WithFarmId(FarmIdT&& value) {
53 SetFarmId(std::forward<FarmIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetQueueId() const { return m_queueId; }
63 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
64 template <typename QueueIdT = Aws::String>
65 void SetQueueId(QueueIdT&& value) {
66 m_queueIdHasBeenSet = true;
67 m_queueId = std::forward<QueueIdT>(value);
68 }
69 template <typename QueueIdT = Aws::String>
70 BatchGetSessionItem& WithQueueId(QueueIdT&& value) {
71 SetQueueId(std::forward<QueueIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetJobId() const { return m_jobId; }
81 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
82 template <typename JobIdT = Aws::String>
83 void SetJobId(JobIdT&& value) {
84 m_jobIdHasBeenSet = true;
85 m_jobId = std::forward<JobIdT>(value);
86 }
87 template <typename JobIdT = Aws::String>
88 BatchGetSessionItem& WithJobId(JobIdT&& value) {
89 SetJobId(std::forward<JobIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSessionId() const { return m_sessionId; }
99 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
100 template <typename SessionIdT = Aws::String>
101 void SetSessionId(SessionIdT&& value) {
102 m_sessionIdHasBeenSet = true;
103 m_sessionId = std::forward<SessionIdT>(value);
104 }
105 template <typename SessionIdT = Aws::String>
106 BatchGetSessionItem& WithSessionId(SessionIdT&& value) {
107 SetSessionId(std::forward<SessionIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetFleetId() const { return m_fleetId; }
117 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
118 template <typename FleetIdT = Aws::String>
119 void SetFleetId(FleetIdT&& value) {
120 m_fleetIdHasBeenSet = true;
121 m_fleetId = std::forward<FleetIdT>(value);
122 }
123 template <typename FleetIdT = Aws::String>
124 BatchGetSessionItem& WithFleetId(FleetIdT&& value) {
125 SetFleetId(std::forward<FleetIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetWorkerId() const { return m_workerId; }
135 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
136 template <typename WorkerIdT = Aws::String>
137 void SetWorkerId(WorkerIdT&& value) {
138 m_workerIdHasBeenSet = true;
139 m_workerId = std::forward<WorkerIdT>(value);
140 }
141 template <typename WorkerIdT = Aws::String>
142 BatchGetSessionItem& WithWorkerId(WorkerIdT&& value) {
143 SetWorkerId(std::forward<WorkerIdT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
153 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
154 template <typename StartedAtT = Aws::Utils::DateTime>
155 void SetStartedAt(StartedAtT&& value) {
156 m_startedAtHasBeenSet = true;
157 m_startedAt = std::forward<StartedAtT>(value);
158 }
159 template <typename StartedAtT = Aws::Utils::DateTime>
160 BatchGetSessionItem& WithStartedAt(StartedAtT&& value) {
161 SetStartedAt(std::forward<StartedAtT>(value));
162 return *this;
163 }
165
167
170 inline SessionLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
171 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
173 m_lifecycleStatusHasBeenSet = true;
174 m_lifecycleStatus = value;
175 }
177 SetLifecycleStatus(value);
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
187 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
188 template <typename EndedAtT = Aws::Utils::DateTime>
189 void SetEndedAt(EndedAtT&& value) {
190 m_endedAtHasBeenSet = true;
191 m_endedAt = std::forward<EndedAtT>(value);
192 }
193 template <typename EndedAtT = Aws::Utils::DateTime>
194 BatchGetSessionItem& WithEndedAt(EndedAtT&& value) {
195 SetEndedAt(std::forward<EndedAtT>(value));
196 return *this;
197 }
199
201
204 inline SessionLifecycleTargetStatus GetTargetLifecycleStatus() const { return m_targetLifecycleStatus; }
205 inline bool TargetLifecycleStatusHasBeenSet() const { return m_targetLifecycleStatusHasBeenSet; }
207 m_targetLifecycleStatusHasBeenSet = true;
208 m_targetLifecycleStatus = value;
209 }
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
221 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
222 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 void SetUpdatedAt(UpdatedAtT&& value) {
224 m_updatedAtHasBeenSet = true;
225 m_updatedAt = std::forward<UpdatedAtT>(value);
226 }
227 template <typename UpdatedAtT = Aws::Utils::DateTime>
228 BatchGetSessionItem& WithUpdatedAt(UpdatedAtT&& value) {
229 SetUpdatedAt(std::forward<UpdatedAtT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
239 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
240 template <typename UpdatedByT = Aws::String>
241 void SetUpdatedBy(UpdatedByT&& value) {
242 m_updatedByHasBeenSet = true;
243 m_updatedBy = std::forward<UpdatedByT>(value);
244 }
245 template <typename UpdatedByT = Aws::String>
246 BatchGetSessionItem& WithUpdatedBy(UpdatedByT&& value) {
247 SetUpdatedBy(std::forward<UpdatedByT>(value));
248 return *this;
249 }
251
253
256 inline const LogConfiguration& GetLog() const { return m_log; }
257 inline bool LogHasBeenSet() const { return m_logHasBeenSet; }
258 template <typename LogT = LogConfiguration>
259 void SetLog(LogT&& value) {
260 m_logHasBeenSet = true;
261 m_log = std::forward<LogT>(value);
262 }
263 template <typename LogT = LogConfiguration>
265 SetLog(std::forward<LogT>(value));
266 return *this;
267 }
269
271
274 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
275 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
276 template <typename HostPropertiesT = HostPropertiesResponse>
277 void SetHostProperties(HostPropertiesT&& value) {
278 m_hostPropertiesHasBeenSet = true;
279 m_hostProperties = std::forward<HostPropertiesT>(value);
280 }
281 template <typename HostPropertiesT = HostPropertiesResponse>
282 BatchGetSessionItem& WithHostProperties(HostPropertiesT&& value) {
283 SetHostProperties(std::forward<HostPropertiesT>(value));
284 return *this;
285 }
287
289
292 inline const LogConfiguration& GetWorkerLog() const { return m_workerLog; }
293 inline bool WorkerLogHasBeenSet() const { return m_workerLogHasBeenSet; }
294 template <typename WorkerLogT = LogConfiguration>
295 void SetWorkerLog(WorkerLogT&& value) {
296 m_workerLogHasBeenSet = true;
297 m_workerLog = std::forward<WorkerLogT>(value);
298 }
299 template <typename WorkerLogT = LogConfiguration>
300 BatchGetSessionItem& WithWorkerLog(WorkerLogT&& value) {
301 SetWorkerLog(std::forward<WorkerLogT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_farmId;
307
308 Aws::String m_queueId;
309
310 Aws::String m_jobId;
311
312 Aws::String m_sessionId;
313
314 Aws::String m_fleetId;
315
316 Aws::String m_workerId;
317
318 Aws::Utils::DateTime m_startedAt{};
319
321
322 Aws::Utils::DateTime m_endedAt{};
323
325
326 Aws::Utils::DateTime m_updatedAt{};
327
328 Aws::String m_updatedBy;
329
330 LogConfiguration m_log;
331
332 HostPropertiesResponse m_hostProperties;
333
334 LogConfiguration m_workerLog;
335 bool m_farmIdHasBeenSet = false;
336 bool m_queueIdHasBeenSet = false;
337 bool m_jobIdHasBeenSet = false;
338 bool m_sessionIdHasBeenSet = false;
339 bool m_fleetIdHasBeenSet = false;
340 bool m_workerIdHasBeenSet = false;
341 bool m_startedAtHasBeenSet = false;
342 bool m_lifecycleStatusHasBeenSet = false;
343 bool m_endedAtHasBeenSet = false;
344 bool m_targetLifecycleStatusHasBeenSet = false;
345 bool m_updatedAtHasBeenSet = false;
346 bool m_updatedByHasBeenSet = false;
347 bool m_logHasBeenSet = false;
348 bool m_hostPropertiesHasBeenSet = false;
349 bool m_workerLogHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace deadline
354} // namespace Aws
SessionLifecycleTargetStatus GetTargetLifecycleStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API BatchGetSessionItem(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionItem & WithFarmId(FarmIdT &&value)
void SetHostProperties(HostPropertiesT &&value)
BatchGetSessionItem & WithUpdatedBy(UpdatedByT &&value)
BatchGetSessionItem & WithQueueId(QueueIdT &&value)
SessionLifecycleStatus GetLifecycleStatus() const
BatchGetSessionItem & WithStartedAt(StartedAtT &&value)
BatchGetSessionItem & WithFleetId(FleetIdT &&value)
const LogConfiguration & GetLog() const
BatchGetSessionItem & WithSessionId(SessionIdT &&value)
BatchGetSessionItem & WithTargetLifecycleStatus(SessionLifecycleTargetStatus value)
BatchGetSessionItem & WithJobId(JobIdT &&value)
BatchGetSessionItem & WithWorkerLog(WorkerLogT &&value)
void SetLifecycleStatus(SessionLifecycleStatus value)
void SetTargetLifecycleStatus(SessionLifecycleTargetStatus value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetSessionItem & WithUpdatedAt(UpdatedAtT &&value)
AWS_DEADLINE_API BatchGetSessionItem & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionItem & WithLifecycleStatus(SessionLifecycleStatus value)
const HostPropertiesResponse & GetHostProperties() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const LogConfiguration & GetWorkerLog() const
BatchGetSessionItem & WithLog(LogT &&value)
BatchGetSessionItem & WithWorkerId(WorkerIdT &&value)
AWS_DEADLINE_API BatchGetSessionItem()=default
BatchGetSessionItem & WithHostProperties(HostPropertiesT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
BatchGetSessionItem & WithEndedAt(EndedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue