AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/JobStatus.h>
11#include <aws/batch/model/NodePropertiesSummary.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch {
24namespace Model {
25
32 public:
33 AWS_BATCH_API JobSummary() = default;
34 AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetJobArn() const { return m_jobArn; }
43 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
44 template <typename JobArnT = Aws::String>
45 void SetJobArn(JobArnT&& value) {
46 m_jobArnHasBeenSet = true;
47 m_jobArn = std::forward<JobArnT>(value);
48 }
49 template <typename JobArnT = Aws::String>
50 JobSummary& WithJobArn(JobArnT&& value) {
51 SetJobArn(std::forward<JobArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetJobId() const { return m_jobId; }
61 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
62 template <typename JobIdT = Aws::String>
63 void SetJobId(JobIdT&& value) {
64 m_jobIdHasBeenSet = true;
65 m_jobId = std::forward<JobIdT>(value);
66 }
67 template <typename JobIdT = Aws::String>
68 JobSummary& WithJobId(JobIdT&& value) {
69 SetJobId(std::forward<JobIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetJobName() const { return m_jobName; }
79 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
80 template <typename JobNameT = Aws::String>
81 void SetJobName(JobNameT&& value) {
82 m_jobNameHasBeenSet = true;
83 m_jobName = std::forward<JobNameT>(value);
84 }
85 template <typename JobNameT = Aws::String>
86 JobSummary& WithJobName(JobNameT&& value) {
87 SetJobName(std::forward<JobNameT>(value));
88 return *this;
89 }
91
93
101 inline long long GetCreatedAt() const { return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 inline void SetCreatedAt(long long value) {
104 m_createdAtHasBeenSet = true;
105 m_createdAt = value;
106 }
107 inline JobSummary& WithCreatedAt(long long value) {
108 SetCreatedAt(value);
109 return *this;
110 }
112
114
117 inline JobStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(JobStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
135 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
136 template <typename StatusReasonT = Aws::String>
137 void SetStatusReason(StatusReasonT&& value) {
138 m_statusReasonHasBeenSet = true;
139 m_statusReason = std::forward<StatusReasonT>(value);
140 }
141 template <typename StatusReasonT = Aws::String>
142 JobSummary& WithStatusReason(StatusReasonT&& value) {
143 SetStatusReason(std::forward<StatusReasonT>(value));
144 return *this;
145 }
147
149
154 inline long long GetStartedAt() const { return m_startedAt; }
155 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
156 inline void SetStartedAt(long long value) {
157 m_startedAtHasBeenSet = true;
158 m_startedAt = value;
159 }
160 inline JobSummary& WithStartedAt(long long value) {
161 SetStartedAt(value);
162 return *this;
163 }
165
167
172 inline long long GetStoppedAt() const { return m_stoppedAt; }
173 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
174 inline void SetStoppedAt(long long value) {
175 m_stoppedAtHasBeenSet = true;
176 m_stoppedAt = value;
177 }
178 inline JobSummary& WithStoppedAt(long long value) {
179 SetStoppedAt(value);
180 return *this;
181 }
183
185
189 inline const ContainerSummary& GetContainer() const { return m_container; }
190 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
191 template <typename ContainerT = ContainerSummary>
192 void SetContainer(ContainerT&& value) {
193 m_containerHasBeenSet = true;
194 m_container = std::forward<ContainerT>(value);
195 }
196 template <typename ContainerT = ContainerSummary>
197 JobSummary& WithContainer(ContainerT&& value) {
198 SetContainer(std::forward<ContainerT>(value));
199 return *this;
200 }
202
204
207 inline const ArrayPropertiesSummary& GetArrayProperties() const { return m_arrayProperties; }
208 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
209 template <typename ArrayPropertiesT = ArrayPropertiesSummary>
210 void SetArrayProperties(ArrayPropertiesT&& value) {
211 m_arrayPropertiesHasBeenSet = true;
212 m_arrayProperties = std::forward<ArrayPropertiesT>(value);
213 }
214 template <typename ArrayPropertiesT = ArrayPropertiesSummary>
215 JobSummary& WithArrayProperties(ArrayPropertiesT&& value) {
216 SetArrayProperties(std::forward<ArrayPropertiesT>(value));
217 return *this;
218 }
220
222
227 inline const NodePropertiesSummary& GetNodeProperties() const { return m_nodeProperties; }
228 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
229 template <typename NodePropertiesT = NodePropertiesSummary>
230 void SetNodeProperties(NodePropertiesT&& value) {
231 m_nodePropertiesHasBeenSet = true;
232 m_nodeProperties = std::forward<NodePropertiesT>(value);
233 }
234 template <typename NodePropertiesT = NodePropertiesSummary>
235 JobSummary& WithNodeProperties(NodePropertiesT&& value) {
236 SetNodeProperties(std::forward<NodePropertiesT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetJobDefinition() const { return m_jobDefinition; }
246 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
247 template <typename JobDefinitionT = Aws::String>
248 void SetJobDefinition(JobDefinitionT&& value) {
249 m_jobDefinitionHasBeenSet = true;
250 m_jobDefinition = std::forward<JobDefinitionT>(value);
251 }
252 template <typename JobDefinitionT = Aws::String>
253 JobSummary& WithJobDefinition(JobDefinitionT&& value) {
254 SetJobDefinition(std::forward<JobDefinitionT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_jobArn;
260
261 Aws::String m_jobId;
262
263 Aws::String m_jobName;
264
265 long long m_createdAt{0};
266
268
269 Aws::String m_statusReason;
270
271 long long m_startedAt{0};
272
273 long long m_stoppedAt{0};
274
275 ContainerSummary m_container;
276
277 ArrayPropertiesSummary m_arrayProperties;
278
279 NodePropertiesSummary m_nodeProperties;
280
281 Aws::String m_jobDefinition;
282 bool m_jobArnHasBeenSet = false;
283 bool m_jobIdHasBeenSet = false;
284 bool m_jobNameHasBeenSet = false;
285 bool m_createdAtHasBeenSet = false;
286 bool m_statusHasBeenSet = false;
287 bool m_statusReasonHasBeenSet = false;
288 bool m_startedAtHasBeenSet = false;
289 bool m_stoppedAtHasBeenSet = false;
290 bool m_containerHasBeenSet = false;
291 bool m_arrayPropertiesHasBeenSet = false;
292 bool m_nodePropertiesHasBeenSet = false;
293 bool m_jobDefinitionHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace Batch
298} // namespace Aws
void SetJobName(JobNameT &&value)
Definition JobSummary.h:81
long long GetCreatedAt() const
Definition JobSummary.h:101
const Aws::String & GetJobArn() const
Definition JobSummary.h:42
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:45
void SetStoppedAt(long long value)
Definition JobSummary.h:174
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithJobName(JobNameT &&value)
Definition JobSummary.h:86
void SetArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:210
JobSummary & WithStartedAt(long long value)
Definition JobSummary.h:160
void SetJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:248
void SetJobId(JobIdT &&value)
Definition JobSummary.h:63
JobSummary & WithStoppedAt(long long value)
Definition JobSummary.h:178
JobSummary & WithArrayProperties(ArrayPropertiesT &&value)
Definition JobSummary.h:215
JobSummary & WithCreatedAt(long long value)
Definition JobSummary.h:107
const ContainerSummary & GetContainer() const
Definition JobSummary.h:189
JobSummary & WithNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:235
JobSummary & WithJobDefinition(JobDefinitionT &&value)
Definition JobSummary.h:253
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:68
JobStatus GetStatus() const
Definition JobSummary.h:117
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:50
AWS_BATCH_API JobSummary()=default
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:123
AWS_BATCH_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNodeProperties(NodePropertiesT &&value)
Definition JobSummary.h:230
JobSummary & WithContainer(ContainerT &&value)
Definition JobSummary.h:197
void SetStatus(JobStatus value)
Definition JobSummary.h:119
bool ArrayPropertiesHasBeenSet() const
Definition JobSummary.h:208
long long GetStartedAt() const
Definition JobSummary.h:154
void SetStatusReason(StatusReasonT &&value)
Definition JobSummary.h:137
bool NodePropertiesHasBeenSet() const
Definition JobSummary.h:228
void SetStartedAt(long long value)
Definition JobSummary.h:156
bool StatusReasonHasBeenSet() const
Definition JobSummary.h:135
const Aws::String & GetJobId() const
Definition JobSummary.h:60
AWS_BATCH_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetContainer(ContainerT &&value)
Definition JobSummary.h:192
const Aws::String & GetJobDefinition() const
Definition JobSummary.h:245
long long GetStoppedAt() const
Definition JobSummary.h:172
const ArrayPropertiesSummary & GetArrayProperties() const
Definition JobSummary.h:207
const Aws::String & GetStatusReason() const
Definition JobSummary.h:134
JobSummary & WithStatusReason(StatusReasonT &&value)
Definition JobSummary.h:142
const NodePropertiesSummary & GetNodeProperties() const
Definition JobSummary.h:227
bool JobDefinitionHasBeenSet() const
Definition JobSummary.h:246
void SetCreatedAt(long long value)
Definition JobSummary.h:103
const Aws::String & GetJobName() const
Definition JobSummary.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue