AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ServiceJobSummary.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/LatestServiceJobAttempt.h>
9#include <aws/batch/model/ServiceJobCapacityUsageSummary.h>
10#include <aws/batch/model/ServiceJobStatus.h>
11#include <aws/batch/model/ServiceJobType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch {
25namespace Model {
26
33 public:
34 AWS_BATCH_API ServiceJobSummary() = default;
37 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const LatestServiceJobAttempt& GetLatestAttempt() const { return m_latestAttempt; }
44 inline bool LatestAttemptHasBeenSet() const { return m_latestAttemptHasBeenSet; }
45 template <typename LatestAttemptT = LatestServiceJobAttempt>
46 void SetLatestAttempt(LatestAttemptT&& value) {
47 m_latestAttemptHasBeenSet = true;
48 m_latestAttempt = std::forward<LatestAttemptT>(value);
49 }
50 template <typename LatestAttemptT = LatestServiceJobAttempt>
51 ServiceJobSummary& WithLatestAttempt(LatestAttemptT&& value) {
52 SetLatestAttempt(std::forward<LatestAttemptT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<ServiceJobCapacityUsageSummary>& GetCapacityUsage() const { return m_capacityUsage; }
63 inline bool CapacityUsageHasBeenSet() const { return m_capacityUsageHasBeenSet; }
64 template <typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageSummary>>
65 void SetCapacityUsage(CapacityUsageT&& value) {
66 m_capacityUsageHasBeenSet = true;
67 m_capacityUsage = std::forward<CapacityUsageT>(value);
68 }
69 template <typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageSummary>>
70 ServiceJobSummary& WithCapacityUsage(CapacityUsageT&& value) {
71 SetCapacityUsage(std::forward<CapacityUsageT>(value));
72 return *this;
73 }
74 template <typename CapacityUsageT = ServiceJobCapacityUsageSummary>
75 ServiceJobSummary& AddCapacityUsage(CapacityUsageT&& value) {
76 m_capacityUsageHasBeenSet = true;
77 m_capacityUsage.emplace_back(std::forward<CapacityUsageT>(value));
78 return *this;
79 }
81
83
87 inline long long GetCreatedAt() const { return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 inline void SetCreatedAt(long long value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = value;
92 }
93 inline ServiceJobSummary& WithCreatedAt(long long value) {
94 SetCreatedAt(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetJobArn() const { return m_jobArn; }
104 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
105 template <typename JobArnT = Aws::String>
106 void SetJobArn(JobArnT&& value) {
107 m_jobArnHasBeenSet = true;
108 m_jobArn = std::forward<JobArnT>(value);
109 }
110 template <typename JobArnT = Aws::String>
111 ServiceJobSummary& WithJobArn(JobArnT&& value) {
112 SetJobArn(std::forward<JobArnT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetJobId() const { return m_jobId; }
122 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
123 template <typename JobIdT = Aws::String>
124 void SetJobId(JobIdT&& value) {
125 m_jobIdHasBeenSet = true;
126 m_jobId = std::forward<JobIdT>(value);
127 }
128 template <typename JobIdT = Aws::String>
129 ServiceJobSummary& WithJobId(JobIdT&& value) {
130 SetJobId(std::forward<JobIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetJobName() const { return m_jobName; }
140 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
141 template <typename JobNameT = Aws::String>
142 void SetJobName(JobNameT&& value) {
143 m_jobNameHasBeenSet = true;
144 m_jobName = std::forward<JobNameT>(value);
145 }
146 template <typename JobNameT = Aws::String>
147 ServiceJobSummary& WithJobName(JobNameT&& value) {
148 SetJobName(std::forward<JobNameT>(value));
149 return *this;
150 }
152
154
158 inline long long GetScheduledAt() const { return m_scheduledAt; }
159 inline bool ScheduledAtHasBeenSet() const { return m_scheduledAtHasBeenSet; }
160 inline void SetScheduledAt(long long value) {
161 m_scheduledAtHasBeenSet = true;
162 m_scheduledAt = value;
163 }
164 inline ServiceJobSummary& WithScheduledAt(long long value) {
165 SetScheduledAt(value);
166 return *this;
167 }
169
171
175 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
176 inline bool ServiceJobTypeHasBeenSet() const { return m_serviceJobTypeHasBeenSet; }
178 m_serviceJobTypeHasBeenSet = true;
179 m_serviceJobType = value;
180 }
182 SetServiceJobType(value);
183 return *this;
184 }
186
188
191 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
192 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
193 template <typename ShareIdentifierT = Aws::String>
194 void SetShareIdentifier(ShareIdentifierT&& value) {
195 m_shareIdentifierHasBeenSet = true;
196 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
197 }
198 template <typename ShareIdentifierT = Aws::String>
199 ServiceJobSummary& WithShareIdentifier(ShareIdentifierT&& value) {
200 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetQuotaShareName() const { return m_quotaShareName; }
210 inline bool QuotaShareNameHasBeenSet() const { return m_quotaShareNameHasBeenSet; }
211 template <typename QuotaShareNameT = Aws::String>
212 void SetQuotaShareName(QuotaShareNameT&& value) {
213 m_quotaShareNameHasBeenSet = true;
214 m_quotaShareName = std::forward<QuotaShareNameT>(value);
215 }
216 template <typename QuotaShareNameT = Aws::String>
217 ServiceJobSummary& WithQuotaShareName(QuotaShareNameT&& value) {
218 SetQuotaShareName(std::forward<QuotaShareNameT>(value));
219 return *this;
220 }
222
224
227 inline ServiceJobStatus GetStatus() const { return m_status; }
228 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
229 inline void SetStatus(ServiceJobStatus value) {
230 m_statusHasBeenSet = true;
231 m_status = value;
232 }
234 SetStatus(value);
235 return *this;
236 }
238
240
244 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
245 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
246 template <typename StatusReasonT = Aws::String>
247 void SetStatusReason(StatusReasonT&& value) {
248 m_statusReasonHasBeenSet = true;
249 m_statusReason = std::forward<StatusReasonT>(value);
250 }
251 template <typename StatusReasonT = Aws::String>
252 ServiceJobSummary& WithStatusReason(StatusReasonT&& value) {
253 SetStatusReason(std::forward<StatusReasonT>(value));
254 return *this;
255 }
257
259
263 inline long long GetStartedAt() const { return m_startedAt; }
264 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
265 inline void SetStartedAt(long long value) {
266 m_startedAtHasBeenSet = true;
267 m_startedAt = value;
268 }
269 inline ServiceJobSummary& WithStartedAt(long long value) {
270 SetStartedAt(value);
271 return *this;
272 }
274
276
280 inline long long GetStoppedAt() const { return m_stoppedAt; }
281 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
282 inline void SetStoppedAt(long long value) {
283 m_stoppedAtHasBeenSet = true;
284 m_stoppedAt = value;
285 }
286 inline ServiceJobSummary& WithStoppedAt(long long value) {
287 SetStoppedAt(value);
288 return *this;
289 }
291 private:
292 LatestServiceJobAttempt m_latestAttempt;
293
295
296 long long m_createdAt{0};
297
298 Aws::String m_jobArn;
299
300 Aws::String m_jobId;
301
302 Aws::String m_jobName;
303
304 long long m_scheduledAt{0};
305
306 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
307
308 Aws::String m_shareIdentifier;
309
310 Aws::String m_quotaShareName;
311
313
314 Aws::String m_statusReason;
315
316 long long m_startedAt{0};
317
318 long long m_stoppedAt{0};
319 bool m_latestAttemptHasBeenSet = false;
320 bool m_capacityUsageHasBeenSet = false;
321 bool m_createdAtHasBeenSet = false;
322 bool m_jobArnHasBeenSet = false;
323 bool m_jobIdHasBeenSet = false;
324 bool m_jobNameHasBeenSet = false;
325 bool m_scheduledAtHasBeenSet = false;
326 bool m_serviceJobTypeHasBeenSet = false;
327 bool m_shareIdentifierHasBeenSet = false;
328 bool m_quotaShareNameHasBeenSet = false;
329 bool m_statusHasBeenSet = false;
330 bool m_statusReasonHasBeenSet = false;
331 bool m_startedAtHasBeenSet = false;
332 bool m_stoppedAtHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace Batch
337} // namespace Aws
void SetShareIdentifier(ShareIdentifierT &&value)
ServiceJobSummary & WithCreatedAt(long long value)
ServiceJobSummary & WithJobName(JobNameT &&value)
void SetServiceJobType(ServiceJobType value)
const Aws::String & GetQuotaShareName() const
AWS_BATCH_API ServiceJobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetQuotaShareName(QuotaShareNameT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCapacityUsage(CapacityUsageT &&value)
ServiceJobSummary & WithQuotaShareName(QuotaShareNameT &&value)
const Aws::String & GetJobName() const
void SetLatestAttempt(LatestAttemptT &&value)
ServiceJobSummary & WithJobArn(JobArnT &&value)
ServiceJobSummary & WithJobId(JobIdT &&value)
ServiceJobSummary & AddCapacityUsage(CapacityUsageT &&value)
void SetStatusReason(StatusReasonT &&value)
ServiceJobSummary & WithStartedAt(long long value)
ServiceJobSummary & WithCapacityUsage(CapacityUsageT &&value)
const Aws::String & GetStatusReason() const
const Aws::String & GetJobId() const
const Aws::String & GetShareIdentifier() const
void SetStatus(ServiceJobStatus value)
const Aws::String & GetJobArn() const
ServiceJobSummary & WithLatestAttempt(LatestAttemptT &&value)
ServiceJobSummary & WithShareIdentifier(ShareIdentifierT &&value)
const Aws::Vector< ServiceJobCapacityUsageSummary > & GetCapacityUsage() const
ServiceJobSummary & WithStoppedAt(long long value)
ServiceJobSummary & WithStatus(ServiceJobStatus value)
ServiceJobSummary & WithScheduledAt(long long value)
ServiceJobSummary & WithStatusReason(StatusReasonT &&value)
AWS_BATCH_API ServiceJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ServiceJobSummary()=default
ServiceJobSummary & WithServiceJobType(ServiceJobType value)
const LatestServiceJobAttempt & GetLatestAttempt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue