AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
JobRunAttemptSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
10#include <aws/emr-serverless/model/FlexExecution.h>
11#include <aws/emr-serverless/model/JobRunMode.h>
12#include <aws/emr-serverless/model/JobRunState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMRServerless {
24namespace Model {
25
33 public:
34 AWS_EMRSERVERLESS_API JobRunAttemptSummary() = default;
35 AWS_EMRSERVERLESS_API JobRunAttemptSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 template <typename ApplicationIdT = Aws::String>
46 void SetApplicationId(ApplicationIdT&& value) {
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
51 JobRunAttemptSummary& WithApplicationId(ApplicationIdT&& value) {
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline JobRunMode GetMode() const { return m_mode; }
98 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
99 inline void SetMode(JobRunMode value) {
100 m_modeHasBeenSet = true;
101 m_mode = value;
102 }
104 SetMode(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetArn() const { return m_arn; }
114 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
115 template <typename ArnT = Aws::String>
116 void SetArn(ArnT&& value) {
117 m_arnHasBeenSet = true;
118 m_arn = std::forward<ArnT>(value);
119 }
120 template <typename ArnT = Aws::String>
122 SetArn(std::forward<ArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
132 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
133 template <typename CreatedByT = Aws::String>
134 void SetCreatedBy(CreatedByT&& value) {
135 m_createdByHasBeenSet = true;
136 m_createdBy = std::forward<CreatedByT>(value);
137 }
138 template <typename CreatedByT = Aws::String>
139 JobRunAttemptSummary& WithCreatedBy(CreatedByT&& value) {
140 SetCreatedBy(std::forward<CreatedByT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetJobCreatedAt() const { return m_jobCreatedAt; }
150 inline bool JobCreatedAtHasBeenSet() const { return m_jobCreatedAtHasBeenSet; }
151 template <typename JobCreatedAtT = Aws::Utils::DateTime>
152 void SetJobCreatedAt(JobCreatedAtT&& value) {
153 m_jobCreatedAtHasBeenSet = true;
154 m_jobCreatedAt = std::forward<JobCreatedAtT>(value);
155 }
156 template <typename JobCreatedAtT = Aws::Utils::DateTime>
157 JobRunAttemptSummary& WithJobCreatedAt(JobCreatedAtT&& value) {
158 SetJobCreatedAt(std::forward<JobCreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
168 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
169 template <typename CreatedAtT = Aws::Utils::DateTime>
170 void SetCreatedAt(CreatedAtT&& value) {
171 m_createdAtHasBeenSet = true;
172 m_createdAt = std::forward<CreatedAtT>(value);
173 }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 JobRunAttemptSummary& WithCreatedAt(CreatedAtT&& value) {
176 SetCreatedAt(std::forward<CreatedAtT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
186 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 void SetUpdatedAt(UpdatedAtT&& value) {
189 m_updatedAtHasBeenSet = true;
190 m_updatedAt = std::forward<UpdatedAtT>(value);
191 }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 JobRunAttemptSummary& WithUpdatedAt(UpdatedAtT&& value) {
194 SetUpdatedAt(std::forward<UpdatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
204 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
205 template <typename ExecutionRoleT = Aws::String>
206 void SetExecutionRole(ExecutionRoleT&& value) {
207 m_executionRoleHasBeenSet = true;
208 m_executionRole = std::forward<ExecutionRoleT>(value);
209 }
210 template <typename ExecutionRoleT = Aws::String>
211 JobRunAttemptSummary& WithExecutionRole(ExecutionRoleT&& value) {
212 SetExecutionRole(std::forward<ExecutionRoleT>(value));
213 return *this;
214 }
216
218
221 inline JobRunState GetState() const { return m_state; }
222 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
223 inline void SetState(JobRunState value) {
224 m_stateHasBeenSet = true;
225 m_state = value;
226 }
228 SetState(value);
229 return *this;
230 }
232
234
237 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
238 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
239 template <typename StateDetailsT = Aws::String>
240 void SetStateDetails(StateDetailsT&& value) {
241 m_stateDetailsHasBeenSet = true;
242 m_stateDetails = std::forward<StateDetailsT>(value);
243 }
244 template <typename StateDetailsT = Aws::String>
245 JobRunAttemptSummary& WithStateDetails(StateDetailsT&& value) {
246 SetStateDetails(std::forward<StateDetailsT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
256 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
257 template <typename ReleaseLabelT = Aws::String>
258 void SetReleaseLabel(ReleaseLabelT&& value) {
259 m_releaseLabelHasBeenSet = true;
260 m_releaseLabel = std::forward<ReleaseLabelT>(value);
261 }
262 template <typename ReleaseLabelT = Aws::String>
263 JobRunAttemptSummary& WithReleaseLabel(ReleaseLabelT&& value) {
264 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::String& GetType() const { return m_type; }
274 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
275 template <typename TypeT = Aws::String>
276 void SetType(TypeT&& value) {
277 m_typeHasBeenSet = true;
278 m_type = std::forward<TypeT>(value);
279 }
280 template <typename TypeT = Aws::String>
282 SetType(std::forward<TypeT>(value));
283 return *this;
284 }
286
288
291 inline int GetAttempt() const { return m_attempt; }
292 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
293 inline void SetAttempt(int value) {
294 m_attemptHasBeenSet = true;
295 m_attempt = value;
296 }
298 SetAttempt(value);
299 return *this;
300 }
302
304
307 inline const FlexExecution& GetFlexExecution() const { return m_flexExecution; }
308 inline bool FlexExecutionHasBeenSet() const { return m_flexExecutionHasBeenSet; }
309 template <typename FlexExecutionT = FlexExecution>
310 void SetFlexExecution(FlexExecutionT&& value) {
311 m_flexExecutionHasBeenSet = true;
312 m_flexExecution = std::forward<FlexExecutionT>(value);
313 }
314 template <typename FlexExecutionT = FlexExecution>
315 JobRunAttemptSummary& WithFlexExecution(FlexExecutionT&& value) {
316 SetFlexExecution(std::forward<FlexExecutionT>(value));
317 return *this;
318 }
320 private:
321 Aws::String m_applicationId;
322
323 Aws::String m_id;
324
325 Aws::String m_name;
326
328
329 Aws::String m_arn;
330
331 Aws::String m_createdBy;
332
333 Aws::Utils::DateTime m_jobCreatedAt{};
334
335 Aws::Utils::DateTime m_createdAt{};
336
337 Aws::Utils::DateTime m_updatedAt{};
338
339 Aws::String m_executionRole;
340
342
343 Aws::String m_stateDetails;
344
345 Aws::String m_releaseLabel;
346
347 Aws::String m_type;
348
349 int m_attempt{0};
350
351 FlexExecution m_flexExecution;
352 bool m_applicationIdHasBeenSet = false;
353 bool m_idHasBeenSet = false;
354 bool m_nameHasBeenSet = false;
355 bool m_modeHasBeenSet = false;
356 bool m_arnHasBeenSet = false;
357 bool m_createdByHasBeenSet = false;
358 bool m_jobCreatedAtHasBeenSet = false;
359 bool m_createdAtHasBeenSet = false;
360 bool m_updatedAtHasBeenSet = false;
361 bool m_executionRoleHasBeenSet = false;
362 bool m_stateHasBeenSet = false;
363 bool m_stateDetailsHasBeenSet = false;
364 bool m_releaseLabelHasBeenSet = false;
365 bool m_typeHasBeenSet = false;
366 bool m_attemptHasBeenSet = false;
367 bool m_flexExecutionHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace EMRServerless
372} // namespace Aws
AWS_EMRSERVERLESS_API JobRunAttemptSummary()=default
JobRunAttemptSummary & WithState(JobRunState value)
JobRunAttemptSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_EMRSERVERLESS_API JobRunAttemptSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRunAttemptSummary & WithCreatedAt(CreatedAtT &&value)
JobRunAttemptSummary & WithName(NameT &&value)
JobRunAttemptSummary & WithFlexExecution(FlexExecutionT &&value)
JobRunAttemptSummary & WithExecutionRole(ExecutionRoleT &&value)
AWS_EMRSERVERLESS_API JobRunAttemptSummary(Aws::Utils::Json::JsonView jsonValue)
JobRunAttemptSummary & WithMode(JobRunMode value)
const Aws::Utils::DateTime & GetUpdatedAt() const
JobRunAttemptSummary & WithApplicationId(ApplicationIdT &&value)
JobRunAttemptSummary & WithReleaseLabel(ReleaseLabelT &&value)
JobRunAttemptSummary & WithCreatedBy(CreatedByT &&value)
JobRunAttemptSummary & WithType(TypeT &&value)
JobRunAttemptSummary & WithStateDetails(StateDetailsT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetJobCreatedAt() const
JobRunAttemptSummary & WithArn(ArnT &&value)
JobRunAttemptSummary & WithJobCreatedAt(JobCreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue