AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ArrayPropertiesSummary.h>
9#include <aws/batch/model/ContainerSummary.h>
10#include <aws/batch/model/JobCapacityUsageSummary.h>
11#include <aws/batch/model/JobStatus.h>
12#include <aws/batch/model/NodePropertiesSummary.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Batch {
26namespace Model {
27
34 public:
35 AWS_BATCH_API JobSummary() = default;
36 AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobArn() const { return m_jobArn; }
45 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
46 template <typename JobArnT = Aws::String>
47 void SetJobArn(JobArnT&& value) {
48 m_jobArnHasBeenSet = true;
49 m_jobArn = std::forward<JobArnT>(value);
50 }
51 template <typename JobArnT = Aws::String>
52 JobSummary& WithJobArn(JobArnT&& value) {
53 SetJobArn(std::forward<JobArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetJobId() const { return m_jobId; }
63 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
64 template <typename JobIdT = Aws::String>
65 void SetJobId(JobIdT&& value) {
66 m_jobIdHasBeenSet = true;
67 m_jobId = std::forward<JobIdT>(value);
68 }
69 template <typename JobIdT = Aws::String>
70 JobSummary& WithJobId(JobIdT&& value) {
71 SetJobId(std::forward<JobIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetJobName() const { return m_jobName; }
81 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
82 template <typename JobNameT = Aws::String>
83 void SetJobName(JobNameT&& value) {
84 m_jobNameHasBeenSet = true;
85 m_jobName = std::forward<JobNameT>(value);
86 }
87 template <typename JobNameT = Aws::String>
88 JobSummary& WithJobName(JobNameT&& value) {
89 SetJobName(std::forward<JobNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<JobCapacityUsageSummary>& GetCapacityUsage() const { return m_capacityUsage; }
100 inline bool CapacityUsageHasBeenSet() const { return m_capacityUsageHasBeenSet; }
101 template <typename CapacityUsageT = Aws::Vector<JobCapacityUsageSummary>>
102 void SetCapacityUsage(CapacityUsageT&& value) {
103 m_capacityUsageHasBeenSet = true;
104 m_capacityUsage = std::forward<CapacityUsageT>(value);
105 }
106 template <typename CapacityUsageT = Aws::Vector<JobCapacityUsageSummary>>
107 JobSummary& WithCapacityUsage(CapacityUsageT&& value) {
108 SetCapacityUsage(std::forward<CapacityUsageT>(value));
109 return *this;
110 }
111 template <typename CapacityUsageT = JobCapacityUsageSummary>
112 JobSummary& AddCapacityUsage(CapacityUsageT&& value) {
113 m_capacityUsageHasBeenSet = true;
114 m_capacityUsage.emplace_back(std::forward<CapacityUsageT>(value));
115 return *this;
116 }
118
120
128 inline long long GetCreatedAt() const { return m_createdAt; }
129 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
130 inline void SetCreatedAt(long long value) {
131 m_createdAtHasBeenSet = true;
132 m_createdAt = value;
133 }
134 inline JobSummary& WithCreatedAt(long long value) {
135 SetCreatedAt(value);
136 return *this;
137 }
139
141
147 inline long long GetScheduledAt() const { return m_scheduledAt; }
148 inline bool ScheduledAtHasBeenSet() const { return m_scheduledAtHasBeenSet; }
149 inline void SetScheduledAt(long long value) {
150 m_scheduledAtHasBeenSet = true;
151 m_scheduledAt = value;
152 }
153 inline JobSummary& WithScheduledAt(long long value) {
154 SetScheduledAt(value);
155 return *this;
156 }
158
160
164 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
165 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
166 template <typename ShareIdentifierT = Aws::String>
167 void SetShareIdentifier(ShareIdentifierT&& value) {
168 m_shareIdentifierHasBeenSet = true;
169 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
170 }
171 template <typename ShareIdentifierT = Aws::String>
172 JobSummary& WithShareIdentifier(ShareIdentifierT&& value) {
173 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
174 return *this;
175 }
177
179
182 inline JobStatus GetStatus() const { return m_status; }
183 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
184 inline void SetStatus(JobStatus value) {
185 m_statusHasBeenSet = true;
186 m_status = value;
187 }
189 SetStatus(value);
190 return *this;
191 }
193
195
199 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
200 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
201 template <typename StatusReasonT = Aws::String>
202 void SetStatusReason(StatusReasonT&& value) {
203 m_statusReasonHasBeenSet = true;
204 m_statusReason = std::forward<StatusReasonT>(value);
205 }
206 template <typename StatusReasonT = Aws::String>
207 JobSummary& WithStatusReason(StatusReasonT&& value) {
208 SetStatusReason(std::forward<StatusReasonT>(value));
209 return *this;
210 }
212
214
219 inline long long GetStartedAt() const { return m_startedAt; }
220 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
221 inline void SetStartedAt(long long value) {
222 m_startedAtHasBeenSet = true;
223 m_startedAt = value;
224 }
225 inline JobSummary& WithStartedAt(long long value) {
226 SetStartedAt(value);
227 return *this;
228 }
230
232
237 inline long long GetStoppedAt() const { return m_stoppedAt; }
238 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
239 inline void SetStoppedAt(long long value) {
240 m_stoppedAtHasBeenSet = true;
241 m_stoppedAt = value;
242 }
243 inline JobSummary& WithStoppedAt(long long value) {
244 SetStoppedAt(value);
245 return *this;
246 }
248
250
254 inline const ContainerSummary& GetContainer() const { return m_container; }
255 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
256 template <typename ContainerT = ContainerSummary>
257 void SetContainer(ContainerT&& value) {
258 m_containerHasBeenSet = true;
259 m_container = std::forward<ContainerT>(value);
260 }
261 template <typename ContainerT = ContainerSummary>
262 JobSummary& WithContainer(ContainerT&& value) {
263 SetContainer(std::forward<ContainerT>(value));
264 return *this;
265 }
267
269
272 inline const ArrayPropertiesSummary& GetArrayProperties() const { return m_arrayProperties; }
273 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
274 template <typename ArrayPropertiesT = ArrayPropertiesSummary>
275 void SetArrayProperties(ArrayPropertiesT&& value) {
276 m_arrayPropertiesHasBeenSet = true;
277 m_arrayProperties = std::forward<ArrayPropertiesT>(value);
278 }
279 template <typename ArrayPropertiesT = ArrayPropertiesSummary>
280 JobSummary& WithArrayProperties(ArrayPropertiesT&& value) {
281 SetArrayProperties(std::forward<ArrayPropertiesT>(value));
282 return *this;
283 }
285
287
292 inline const NodePropertiesSummary& GetNodeProperties() const { return m_nodeProperties; }
293 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
294 template <typename NodePropertiesT = NodePropertiesSummary>
295 void SetNodeProperties(NodePropertiesT&& value) {
296 m_nodePropertiesHasBeenSet = true;
297 m_nodeProperties = std::forward<NodePropertiesT>(value);
298 }
299 template <typename NodePropertiesT = NodePropertiesSummary>
300 JobSummary& WithNodeProperties(NodePropertiesT&& value) {
301 SetNodeProperties(std::forward<NodePropertiesT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::String& GetJobDefinition() const { return m_jobDefinition; }
311 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
312 template <typename JobDefinitionT = Aws::String>
313 void SetJobDefinition(JobDefinitionT&& value) {
314 m_jobDefinitionHasBeenSet = true;
315 m_jobDefinition = std::forward<JobDefinitionT>(value);
316 }
317 template <typename JobDefinitionT = Aws::String>
318 JobSummary& WithJobDefinition(JobDefinitionT&& value) {
319 SetJobDefinition(std::forward<JobDefinitionT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_jobArn;
325
326 Aws::String m_jobId;
327
328 Aws::String m_jobName;
329
331
332 long long m_createdAt{0};
333
334 long long m_scheduledAt{0};
335
336 Aws::String m_shareIdentifier;
337
339
340 Aws::String m_statusReason;
341
342 long long m_startedAt{0};
343
344 long long m_stoppedAt{0};
345
346 ContainerSummary m_container;
347
348 ArrayPropertiesSummary m_arrayProperties;
349
350 NodePropertiesSummary m_nodeProperties;
351
352 Aws::String m_jobDefinition;
353 bool m_jobArnHasBeenSet = false;
354 bool m_jobIdHasBeenSet = false;
355 bool m_jobNameHasBeenSet = false;
356 bool m_capacityUsageHasBeenSet = false;
357 bool m_createdAtHasBeenSet = false;
358 bool m_scheduledAtHasBeenSet = false;
359 bool m_shareIdentifierHasBeenSet = false;
360 bool m_statusHasBeenSet = false;
361 bool m_statusReasonHasBeenSet = false;
362 bool m_startedAtHasBeenSet = false;
363 bool m_stoppedAtHasBeenSet = false;
364 bool m_containerHasBeenSet = false;
365 bool m_arrayPropertiesHasBeenSet = false;
366 bool m_nodePropertiesHasBeenSet = false;
367 bool m_jobDefinitionHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace Batch
372} // namespace Aws
void SetCapacityUsage(CapacityUsageT &&value)
Definition JobSummary.h:102
void SetJobName(JobNameT &&value)
Definition JobSummary.h:83
long long GetCreatedAt() const
Definition JobSummary.h:128
const Aws::String & GetJobArn() const
Definition JobSummary.h:44
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:47
void SetStoppedAt(long long value)
Definition JobSummary.h:239
JobSummary & WithShareIdentifier(ShareIdentifierT &&value)
Definition JobSummary.h:172
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithJobName(JobNameT &&value)
Definition JobSummary.h:88
void SetArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:275
JobSummary & WithStartedAt(long long value)
Definition JobSummary.h:225
void SetJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:313
JobSummary & WithCapacityUsage(CapacityUsageT &&value)
Definition JobSummary.h:107
void SetJobId(JobIdT &&value)
Definition JobSummary.h:65
JobSummary & WithStoppedAt(long long value)
Definition JobSummary.h:243
JobSummary & WithArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:280
JobSummary & WithCreatedAt(long long value)
Definition JobSummary.h:134
const ContainerSummary & GetContainer() const
Definition JobSummary.h:254
const Aws::String & GetShareIdentifier() const
Definition JobSummary.h:164
JobSummary & WithNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:300
JobSummary & WithScheduledAt(long long value)
Definition JobSummary.h:153
JobSummary & WithJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:318
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:70
JobStatus GetStatus() const
Definition JobSummary.h:182
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:52
void SetScheduledAt(long long value)
Definition JobSummary.h:149
AWS_BATCH_API JobSummary()=default
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:188
void SetShareIdentifier(ShareIdentifierT &&value)
Definition JobSummary.h:167
AWS_BATCH_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:295
JobSummary & WithContainer(ContainerT &&value)
Definition JobSummary.h:262
void SetStatus(JobStatus value)
Definition JobSummary.h:184
bool ArrayPropertiesHasBeenSet() const
Definition JobSummary.h:273
long long GetStartedAt() const
Definition JobSummary.h:219
void SetStatusReason(StatusReasonT &&value)
Definition JobSummary.h:202
bool NodePropertiesHasBeenSet() const
Definition JobSummary.h:293
void SetStartedAt(long long value)
Definition JobSummary.h:221
long long GetScheduledAt() const
Definition JobSummary.h:147
bool StatusReasonHasBeenSet() const
Definition JobSummary.h:200
bool ShareIdentifierHasBeenSet() const
Definition JobSummary.h:165
const Aws::String & GetJobId() const
Definition JobSummary.h:62
AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetContainer(ContainerT &&value)
Definition JobSummary.h:257
const Aws::String & GetJobDefinition() const
Definition JobSummary.h:310
long long GetStoppedAt() const
Definition JobSummary.h:237
const ArrayPropertiesSummary & GetArrayProperties() const
Definition JobSummary.h:272
const Aws::String & GetStatusReason() const
Definition JobSummary.h:199
const Aws::Vector< JobCapacityUsageSummary > & GetCapacityUsage() const
Definition JobSummary.h:99
JobSummary & WithStatusReason(StatusReasonT &&value)
Definition JobSummary.h:207
JobSummary & AddCapacityUsage(CapacityUsageT &&value)
Definition JobSummary.h:112
const NodePropertiesSummary & GetNodeProperties() const
Definition JobSummary.h:292
bool JobDefinitionHasBeenSet() const
Definition JobSummary.h:311
bool CapacityUsageHasBeenSet() const
Definition JobSummary.h:100
void SetCreatedAt(long long value)
Definition JobSummary.h:130
const Aws::String & GetJobName() const
Definition JobSummary.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue