AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ServiceJobStatus.h>
10#include <aws/batch/model/ServiceJobType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch {
23namespace Model {
24
31 public:
32 AWS_BATCH_API ServiceJobSummary() = default;
35 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const LatestServiceJobAttempt& GetLatestAttempt() const { return m_latestAttempt; }
42 inline bool LatestAttemptHasBeenSet() const { return m_latestAttemptHasBeenSet; }
43 template <typename LatestAttemptT = LatestServiceJobAttempt>
44 void SetLatestAttempt(LatestAttemptT&& value) {
45 m_latestAttemptHasBeenSet = true;
46 m_latestAttempt = std::forward<LatestAttemptT>(value);
47 }
48 template <typename LatestAttemptT = LatestServiceJobAttempt>
49 ServiceJobSummary& WithLatestAttempt(LatestAttemptT&& value) {
50 SetLatestAttempt(std::forward<LatestAttemptT>(value));
51 return *this;
52 }
54
56
60 inline long long GetCreatedAt() const { return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(long long value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = value;
65 }
66 inline ServiceJobSummary& WithCreatedAt(long long value) {
67 SetCreatedAt(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetJobArn() const { return m_jobArn; }
77 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
78 template <typename JobArnT = Aws::String>
79 void SetJobArn(JobArnT&& value) {
80 m_jobArnHasBeenSet = true;
81 m_jobArn = std::forward<JobArnT>(value);
82 }
83 template <typename JobArnT = Aws::String>
84 ServiceJobSummary& WithJobArn(JobArnT&& value) {
85 SetJobArn(std::forward<JobArnT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetJobId() const { return m_jobId; }
95 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
96 template <typename JobIdT = Aws::String>
97 void SetJobId(JobIdT&& value) {
98 m_jobIdHasBeenSet = true;
99 m_jobId = std::forward<JobIdT>(value);
100 }
101 template <typename JobIdT = Aws::String>
102 ServiceJobSummary& WithJobId(JobIdT&& value) {
103 SetJobId(std::forward<JobIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetJobName() const { return m_jobName; }
113 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
114 template <typename JobNameT = Aws::String>
115 void SetJobName(JobNameT&& value) {
116 m_jobNameHasBeenSet = true;
117 m_jobName = std::forward<JobNameT>(value);
118 }
119 template <typename JobNameT = Aws::String>
120 ServiceJobSummary& WithJobName(JobNameT&& value) {
121 SetJobName(std::forward<JobNameT>(value));
122 return *this;
123 }
125
127
131 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
132 inline bool ServiceJobTypeHasBeenSet() const { return m_serviceJobTypeHasBeenSet; }
134 m_serviceJobTypeHasBeenSet = true;
135 m_serviceJobType = value;
136 }
138 SetServiceJobType(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
148 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
149 template <typename ShareIdentifierT = Aws::String>
150 void SetShareIdentifier(ShareIdentifierT&& value) {
151 m_shareIdentifierHasBeenSet = true;
152 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
153 }
154 template <typename ShareIdentifierT = Aws::String>
155 ServiceJobSummary& WithShareIdentifier(ShareIdentifierT&& value) {
156 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
157 return *this;
158 }
160
162
165 inline ServiceJobStatus GetStatus() const { return m_status; }
166 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
167 inline void SetStatus(ServiceJobStatus value) {
168 m_statusHasBeenSet = true;
169 m_status = value;
170 }
172 SetStatus(value);
173 return *this;
174 }
176
178
182 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
183 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
184 template <typename StatusReasonT = Aws::String>
185 void SetStatusReason(StatusReasonT&& value) {
186 m_statusReasonHasBeenSet = true;
187 m_statusReason = std::forward<StatusReasonT>(value);
188 }
189 template <typename StatusReasonT = Aws::String>
190 ServiceJobSummary& WithStatusReason(StatusReasonT&& value) {
191 SetStatusReason(std::forward<StatusReasonT>(value));
192 return *this;
193 }
195
197
201 inline long long GetStartedAt() const { return m_startedAt; }
202 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
203 inline void SetStartedAt(long long value) {
204 m_startedAtHasBeenSet = true;
205 m_startedAt = value;
206 }
207 inline ServiceJobSummary& WithStartedAt(long long value) {
208 SetStartedAt(value);
209 return *this;
210 }
212
214
218 inline long long GetStoppedAt() const { return m_stoppedAt; }
219 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
220 inline void SetStoppedAt(long long value) {
221 m_stoppedAtHasBeenSet = true;
222 m_stoppedAt = value;
223 }
224 inline ServiceJobSummary& WithStoppedAt(long long value) {
225 SetStoppedAt(value);
226 return *this;
227 }
229 private:
230 LatestServiceJobAttempt m_latestAttempt;
231
232 long long m_createdAt{0};
233
234 Aws::String m_jobArn;
235
236 Aws::String m_jobId;
237
238 Aws::String m_jobName;
239
240 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
241
242 Aws::String m_shareIdentifier;
243
245
246 Aws::String m_statusReason;
247
248 long long m_startedAt{0};
249
250 long long m_stoppedAt{0};
251 bool m_latestAttemptHasBeenSet = false;
252 bool m_createdAtHasBeenSet = false;
253 bool m_jobArnHasBeenSet = false;
254 bool m_jobIdHasBeenSet = false;
255 bool m_jobNameHasBeenSet = false;
256 bool m_serviceJobTypeHasBeenSet = false;
257 bool m_shareIdentifierHasBeenSet = false;
258 bool m_statusHasBeenSet = false;
259 bool m_statusReasonHasBeenSet = false;
260 bool m_startedAtHasBeenSet = false;
261 bool m_stoppedAtHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace Batch
266} // 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
const Aws::String & GetJobName() const
void SetLatestAttempt(LatestAttemptT &&value)
ServiceJobSummary & WithJobArn(JobArnT &&value)
ServiceJobSummary & WithJobId(JobIdT &&value)
void SetStatusReason(StatusReasonT &&value)
ServiceJobSummary & WithStartedAt(long long 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)
ServiceJobSummary & WithStoppedAt(long long value)
ServiceJobSummary & WithStatus(ServiceJobStatus 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
Aws::Utils::Json::JsonValue JsonValue