AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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 ServiceJobStatus GetStatus() const { return m_status; }
210 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
211 inline void SetStatus(ServiceJobStatus value) {
212 m_statusHasBeenSet = true;
213 m_status = value;
214 }
216 SetStatus(value);
217 return *this;
218 }
220
222
226 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
227 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
228 template <typename StatusReasonT = Aws::String>
229 void SetStatusReason(StatusReasonT&& value) {
230 m_statusReasonHasBeenSet = true;
231 m_statusReason = std::forward<StatusReasonT>(value);
232 }
233 template <typename StatusReasonT = Aws::String>
234 ServiceJobSummary& WithStatusReason(StatusReasonT&& value) {
235 SetStatusReason(std::forward<StatusReasonT>(value));
236 return *this;
237 }
239
241
245 inline long long GetStartedAt() const { return m_startedAt; }
246 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
247 inline void SetStartedAt(long long value) {
248 m_startedAtHasBeenSet = true;
249 m_startedAt = value;
250 }
251 inline ServiceJobSummary& WithStartedAt(long long value) {
252 SetStartedAt(value);
253 return *this;
254 }
256
258
262 inline long long GetStoppedAt() const { return m_stoppedAt; }
263 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
264 inline void SetStoppedAt(long long value) {
265 m_stoppedAtHasBeenSet = true;
266 m_stoppedAt = value;
267 }
268 inline ServiceJobSummary& WithStoppedAt(long long value) {
269 SetStoppedAt(value);
270 return *this;
271 }
273 private:
274 LatestServiceJobAttempt m_latestAttempt;
275
277
278 long long m_createdAt{0};
279
280 Aws::String m_jobArn;
281
282 Aws::String m_jobId;
283
284 Aws::String m_jobName;
285
286 long long m_scheduledAt{0};
287
288 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
289
290 Aws::String m_shareIdentifier;
291
293
294 Aws::String m_statusReason;
295
296 long long m_startedAt{0};
297
298 long long m_stoppedAt{0};
299 bool m_latestAttemptHasBeenSet = false;
300 bool m_capacityUsageHasBeenSet = false;
301 bool m_createdAtHasBeenSet = false;
302 bool m_jobArnHasBeenSet = false;
303 bool m_jobIdHasBeenSet = false;
304 bool m_jobNameHasBeenSet = false;
305 bool m_scheduledAtHasBeenSet = false;
306 bool m_serviceJobTypeHasBeenSet = false;
307 bool m_shareIdentifierHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_statusReasonHasBeenSet = false;
310 bool m_startedAtHasBeenSet = false;
311 bool m_stoppedAtHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Batch
316} // namespace Aws
void SetShareIdentifier(ShareIdentifierT &&value)
ServiceJobSummary & WithCreatedAt(long long value)
ServiceJobSummary & WithJobName(JobNameT &&value)
void SetServiceJobType(ServiceJobType value)
AWS_BATCH_API ServiceJobSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCapacityUsage(CapacityUsageT &&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