AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
BatchGetSessionActionItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/AcquiredLimit.h>
12#include <aws/deadline/model/SessionActionDefinition.h>
13#include <aws/deadline/model/SessionActionStatus.h>
14#include <aws/deadline/model/TaskRunManifestPropertiesResponse.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline {
26namespace Model {
27
35 public:
36 AWS_DEADLINE_API BatchGetSessionActionItem() = default;
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetFarmId() const { return m_farmId; }
46 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
47 template <typename FarmIdT = Aws::String>
48 void SetFarmId(FarmIdT&& value) {
49 m_farmIdHasBeenSet = true;
50 m_farmId = std::forward<FarmIdT>(value);
51 }
52 template <typename FarmIdT = Aws::String>
54 SetFarmId(std::forward<FarmIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetQueueId() const { return m_queueId; }
64 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
65 template <typename QueueIdT = Aws::String>
66 void SetQueueId(QueueIdT&& value) {
67 m_queueIdHasBeenSet = true;
68 m_queueId = std::forward<QueueIdT>(value);
69 }
70 template <typename QueueIdT = Aws::String>
72 SetQueueId(std::forward<QueueIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetJobId() const { return m_jobId; }
82 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
83 template <typename JobIdT = Aws::String>
84 void SetJobId(JobIdT&& value) {
85 m_jobIdHasBeenSet = true;
86 m_jobId = std::forward<JobIdT>(value);
87 }
88 template <typename JobIdT = Aws::String>
90 SetJobId(std::forward<JobIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetSessionActionId() const { return m_sessionActionId; }
100 inline bool SessionActionIdHasBeenSet() const { return m_sessionActionIdHasBeenSet; }
101 template <typename SessionActionIdT = Aws::String>
102 void SetSessionActionId(SessionActionIdT&& value) {
103 m_sessionActionIdHasBeenSet = true;
104 m_sessionActionId = std::forward<SessionActionIdT>(value);
105 }
106 template <typename SessionActionIdT = Aws::String>
108 SetSessionActionId(std::forward<SessionActionIdT>(value));
109 return *this;
110 }
112
114
117 inline SessionActionStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(SessionActionStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
134 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
135 template <typename StartedAtT = Aws::Utils::DateTime>
136 void SetStartedAt(StartedAtT&& value) {
137 m_startedAtHasBeenSet = true;
138 m_startedAt = std::forward<StartedAtT>(value);
139 }
140 template <typename StartedAtT = Aws::Utils::DateTime>
142 SetStartedAt(std::forward<StartedAtT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
152 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
153 template <typename EndedAtT = Aws::Utils::DateTime>
154 void SetEndedAt(EndedAtT&& value) {
155 m_endedAtHasBeenSet = true;
156 m_endedAt = std::forward<EndedAtT>(value);
157 }
158 template <typename EndedAtT = Aws::Utils::DateTime>
160 SetEndedAt(std::forward<EndedAtT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetWorkerUpdatedAt() const { return m_workerUpdatedAt; }
170 inline bool WorkerUpdatedAtHasBeenSet() const { return m_workerUpdatedAtHasBeenSet; }
171 template <typename WorkerUpdatedAtT = Aws::Utils::DateTime>
172 void SetWorkerUpdatedAt(WorkerUpdatedAtT&& value) {
173 m_workerUpdatedAtHasBeenSet = true;
174 m_workerUpdatedAt = std::forward<WorkerUpdatedAtT>(value);
175 }
176 template <typename WorkerUpdatedAtT = Aws::Utils::DateTime>
178 SetWorkerUpdatedAt(std::forward<WorkerUpdatedAtT>(value));
179 return *this;
180 }
182
184
187 inline double GetProgressPercent() const { return m_progressPercent; }
188 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
189 inline void SetProgressPercent(double value) {
190 m_progressPercentHasBeenSet = true;
191 m_progressPercent = value;
192 }
194 SetProgressPercent(value);
195 return *this;
196 }
198
200
203 inline const Aws::Vector<TaskRunManifestPropertiesResponse>& GetManifests() const { return m_manifests; }
204 inline bool ManifestsHasBeenSet() const { return m_manifestsHasBeenSet; }
205 template <typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
206 void SetManifests(ManifestsT&& value) {
207 m_manifestsHasBeenSet = true;
208 m_manifests = std::forward<ManifestsT>(value);
209 }
210 template <typename ManifestsT = Aws::Vector<TaskRunManifestPropertiesResponse>>
212 SetManifests(std::forward<ManifestsT>(value));
213 return *this;
214 }
215 template <typename ManifestsT = TaskRunManifestPropertiesResponse>
217 m_manifestsHasBeenSet = true;
218 m_manifests.emplace_back(std::forward<ManifestsT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetSessionId() const { return m_sessionId; }
228 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
229 template <typename SessionIdT = Aws::String>
230 void SetSessionId(SessionIdT&& value) {
231 m_sessionIdHasBeenSet = true;
232 m_sessionId = std::forward<SessionIdT>(value);
233 }
234 template <typename SessionIdT = Aws::String>
236 SetSessionId(std::forward<SessionIdT>(value));
237 return *this;
238 }
240
242
245 inline int GetProcessExitCode() const { return m_processExitCode; }
246 inline bool ProcessExitCodeHasBeenSet() const { return m_processExitCodeHasBeenSet; }
247 inline void SetProcessExitCode(int value) {
248 m_processExitCodeHasBeenSet = true;
249 m_processExitCode = value;
250 }
252 SetProcessExitCode(value);
253 return *this;
254 }
256
258
261 inline const Aws::String& GetProgressMessage() const { return m_progressMessage; }
262 inline bool ProgressMessageHasBeenSet() const { return m_progressMessageHasBeenSet; }
263 template <typename ProgressMessageT = Aws::String>
264 void SetProgressMessage(ProgressMessageT&& value) {
265 m_progressMessageHasBeenSet = true;
266 m_progressMessage = std::forward<ProgressMessageT>(value);
267 }
268 template <typename ProgressMessageT = Aws::String>
270 SetProgressMessage(std::forward<ProgressMessageT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::Vector<AcquiredLimit>& GetAcquiredLimits() const { return m_acquiredLimits; }
280 inline bool AcquiredLimitsHasBeenSet() const { return m_acquiredLimitsHasBeenSet; }
281 template <typename AcquiredLimitsT = Aws::Vector<AcquiredLimit>>
282 void SetAcquiredLimits(AcquiredLimitsT&& value) {
283 m_acquiredLimitsHasBeenSet = true;
284 m_acquiredLimits = std::forward<AcquiredLimitsT>(value);
285 }
286 template <typename AcquiredLimitsT = Aws::Vector<AcquiredLimit>>
288 SetAcquiredLimits(std::forward<AcquiredLimitsT>(value));
289 return *this;
290 }
291 template <typename AcquiredLimitsT = AcquiredLimit>
293 m_acquiredLimitsHasBeenSet = true;
294 m_acquiredLimits.emplace_back(std::forward<AcquiredLimitsT>(value));
295 return *this;
296 }
298
300
303 inline const SessionActionDefinition& GetDefinition() const { return m_definition; }
304 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
305 template <typename DefinitionT = SessionActionDefinition>
306 void SetDefinition(DefinitionT&& value) {
307 m_definitionHasBeenSet = true;
308 m_definition = std::forward<DefinitionT>(value);
309 }
310 template <typename DefinitionT = SessionActionDefinition>
312 SetDefinition(std::forward<DefinitionT>(value));
313 return *this;
314 }
316 private:
317 Aws::String m_farmId;
318
319 Aws::String m_queueId;
320
321 Aws::String m_jobId;
322
323 Aws::String m_sessionActionId;
324
326
327 Aws::Utils::DateTime m_startedAt{};
328
329 Aws::Utils::DateTime m_endedAt{};
330
331 Aws::Utils::DateTime m_workerUpdatedAt{};
332
333 double m_progressPercent{0.0};
334
336
337 Aws::String m_sessionId;
338
339 int m_processExitCode{0};
340
341 Aws::String m_progressMessage;
342
343 Aws::Vector<AcquiredLimit> m_acquiredLimits;
344
345 SessionActionDefinition m_definition;
346 bool m_farmIdHasBeenSet = false;
347 bool m_queueIdHasBeenSet = false;
348 bool m_jobIdHasBeenSet = false;
349 bool m_sessionActionIdHasBeenSet = false;
350 bool m_statusHasBeenSet = false;
351 bool m_startedAtHasBeenSet = false;
352 bool m_endedAtHasBeenSet = false;
353 bool m_workerUpdatedAtHasBeenSet = false;
354 bool m_progressPercentHasBeenSet = false;
355 bool m_manifestsHasBeenSet = false;
356 bool m_sessionIdHasBeenSet = false;
357 bool m_processExitCodeHasBeenSet = false;
358 bool m_progressMessageHasBeenSet = false;
359 bool m_acquiredLimitsHasBeenSet = false;
360 bool m_definitionHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace deadline
365} // namespace Aws
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API BatchGetSessionActionItem(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionActionItem & WithManifests(ManifestsT &&value)
const Aws::Utils::DateTime & GetWorkerUpdatedAt() const
BatchGetSessionActionItem & WithSessionId(SessionIdT &&value)
BatchGetSessionActionItem & WithSessionActionId(SessionActionIdT &&value)
BatchGetSessionActionItem & AddAcquiredLimits(AcquiredLimitsT &&value)
BatchGetSessionActionItem & WithWorkerUpdatedAt(WorkerUpdatedAtT &&value)
const Aws::Vector< AcquiredLimit > & GetAcquiredLimits() const
BatchGetSessionActionItem & WithJobId(JobIdT &&value)
BatchGetSessionActionItem & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API BatchGetSessionActionItem()=default
BatchGetSessionActionItem & WithAcquiredLimits(AcquiredLimitsT &&value)
BatchGetSessionActionItem & WithDefinition(DefinitionT &&value)
BatchGetSessionActionItem & WithProgressPercent(double value)
const SessionActionDefinition & GetDefinition() const
AWS_DEADLINE_API BatchGetSessionActionItem & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionActionItem & WithStatus(SessionActionStatus value)
BatchGetSessionActionItem & WithQueueId(QueueIdT &&value)
BatchGetSessionActionItem & AddManifests(ManifestsT &&value)
const Aws::Vector< TaskRunManifestPropertiesResponse > & GetManifests() const
BatchGetSessionActionItem & WithProgressMessage(ProgressMessageT &&value)
BatchGetSessionActionItem & WithProcessExitCode(int value)
BatchGetSessionActionItem & WithFarmId(FarmIdT &&value)
BatchGetSessionActionItem & WithEndedAt(EndedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue