AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobRunAttemptSummary.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-serverless/model/JobRunMode.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/emr-serverless/model/JobRunState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMRServerless
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EMRSERVERLESS_API JobRunAttemptSummary() = default;
39 AWS_EMRSERVERLESS_API JobRunAttemptSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
49 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
50 template<typename ApplicationIdT = Aws::String>
51 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
52 template<typename ApplicationIdT = Aws::String>
53 JobRunAttemptSummary& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 JobRunAttemptSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 JobRunAttemptSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline JobRunMode GetMode() const { return m_mode; }
85 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
86 inline void SetMode(JobRunMode value) { m_modeHasBeenSet = true; m_mode = value; }
87 inline JobRunAttemptSummary& WithMode(JobRunMode value) { SetMode(value); return *this;}
89
91
94 inline const Aws::String& GetArn() const { return m_arn; }
95 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 template<typename ArnT = Aws::String>
97 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
98 template<typename ArnT = Aws::String>
99 JobRunAttemptSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
101
103
106 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
107 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
108 template<typename CreatedByT = Aws::String>
109 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
110 template<typename CreatedByT = Aws::String>
111 JobRunAttemptSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetJobCreatedAt() const { return m_jobCreatedAt; }
119 inline bool JobCreatedAtHasBeenSet() const { return m_jobCreatedAtHasBeenSet; }
120 template<typename JobCreatedAtT = Aws::Utils::DateTime>
121 void SetJobCreatedAt(JobCreatedAtT&& value) { m_jobCreatedAtHasBeenSet = true; m_jobCreatedAt = std::forward<JobCreatedAtT>(value); }
122 template<typename JobCreatedAtT = Aws::Utils::DateTime>
123 JobRunAttemptSummary& WithJobCreatedAt(JobCreatedAtT&& value) { SetJobCreatedAt(std::forward<JobCreatedAtT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
131 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
132 template<typename CreatedAtT = Aws::Utils::DateTime>
133 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
134 template<typename CreatedAtT = Aws::Utils::DateTime>
135 JobRunAttemptSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
143 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
144 template<typename UpdatedAtT = Aws::Utils::DateTime>
145 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
146 template<typename UpdatedAtT = Aws::Utils::DateTime>
147 JobRunAttemptSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
149
151
154 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
155 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
156 template<typename ExecutionRoleT = Aws::String>
157 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
158 template<typename ExecutionRoleT = Aws::String>
159 JobRunAttemptSummary& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
161
163
166 inline JobRunState GetState() const { return m_state; }
167 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 inline void SetState(JobRunState value) { m_stateHasBeenSet = true; m_state = value; }
169 inline JobRunAttemptSummary& WithState(JobRunState value) { SetState(value); return *this;}
171
173
176 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
177 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
178 template<typename StateDetailsT = Aws::String>
179 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::forward<StateDetailsT>(value); }
180 template<typename StateDetailsT = Aws::String>
181 JobRunAttemptSummary& WithStateDetails(StateDetailsT&& value) { SetStateDetails(std::forward<StateDetailsT>(value)); return *this;}
183
185
188 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
189 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
190 template<typename ReleaseLabelT = Aws::String>
191 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
192 template<typename ReleaseLabelT = Aws::String>
193 JobRunAttemptSummary& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
195
197
200 inline const Aws::String& GetType() const { return m_type; }
201 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
202 template<typename TypeT = Aws::String>
203 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
204 template<typename TypeT = Aws::String>
205 JobRunAttemptSummary& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
207
209
212 inline int GetAttempt() const { return m_attempt; }
213 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
214 inline void SetAttempt(int value) { m_attemptHasBeenSet = true; m_attempt = value; }
215 inline JobRunAttemptSummary& WithAttempt(int value) { SetAttempt(value); return *this;}
217 private:
218
219 Aws::String m_applicationId;
220 bool m_applicationIdHasBeenSet = false;
221
222 Aws::String m_id;
223 bool m_idHasBeenSet = false;
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
229 bool m_modeHasBeenSet = false;
230
231 Aws::String m_arn;
232 bool m_arnHasBeenSet = false;
233
234 Aws::String m_createdBy;
235 bool m_createdByHasBeenSet = false;
236
237 Aws::Utils::DateTime m_jobCreatedAt{};
238 bool m_jobCreatedAtHasBeenSet = false;
239
240 Aws::Utils::DateTime m_createdAt{};
241 bool m_createdAtHasBeenSet = false;
242
243 Aws::Utils::DateTime m_updatedAt{};
244 bool m_updatedAtHasBeenSet = false;
245
246 Aws::String m_executionRole;
247 bool m_executionRoleHasBeenSet = false;
248
250 bool m_stateHasBeenSet = false;
251
252 Aws::String m_stateDetails;
253 bool m_stateDetailsHasBeenSet = false;
254
255 Aws::String m_releaseLabel;
256 bool m_releaseLabelHasBeenSet = false;
257
258 Aws::String m_type;
259 bool m_typeHasBeenSet = false;
260
261 int m_attempt{0};
262 bool m_attemptHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace EMRServerless
267} // 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 & 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