AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobRunSummary.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 JobRunSummary() = default;
39 AWS_EMRSERVERLESS_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EMRSERVERLESS_API JobRunSummary& operator=(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 JobRunSummary& 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 JobRunSummary& 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 JobRunSummary& 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 JobRunSummary& 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 JobRunSummary& 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 JobRunSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
119 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
120 template<typename CreatedAtT = Aws::Utils::DateTime>
121 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
122 template<typename CreatedAtT = Aws::Utils::DateTime>
123 JobRunSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
131 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
132 template<typename UpdatedAtT = Aws::Utils::DateTime>
133 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
134 template<typename UpdatedAtT = Aws::Utils::DateTime>
135 JobRunSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
137
139
142 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
143 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
144 template<typename ExecutionRoleT = Aws::String>
145 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
146 template<typename ExecutionRoleT = Aws::String>
147 JobRunSummary& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
149
151
154 inline JobRunState GetState() const { return m_state; }
155 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
156 inline void SetState(JobRunState value) { m_stateHasBeenSet = true; m_state = value; }
157 inline JobRunSummary& WithState(JobRunState value) { SetState(value); return *this;}
159
161
164 inline const Aws::String& GetStateDetails() const { return m_stateDetails; }
165 inline bool StateDetailsHasBeenSet() const { return m_stateDetailsHasBeenSet; }
166 template<typename StateDetailsT = Aws::String>
167 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet = true; m_stateDetails = std::forward<StateDetailsT>(value); }
168 template<typename StateDetailsT = Aws::String>
169 JobRunSummary& WithStateDetails(StateDetailsT&& value) { SetStateDetails(std::forward<StateDetailsT>(value)); return *this;}
171
173
177 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
178 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
179 template<typename ReleaseLabelT = Aws::String>
180 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
181 template<typename ReleaseLabelT = Aws::String>
182 JobRunSummary& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
184
186
189 inline const Aws::String& GetType() const { return m_type; }
190 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
191 template<typename TypeT = Aws::String>
192 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
193 template<typename TypeT = Aws::String>
194 JobRunSummary& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
196
198
201 inline int GetAttempt() const { return m_attempt; }
202 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
203 inline void SetAttempt(int value) { m_attemptHasBeenSet = true; m_attempt = value; }
204 inline JobRunSummary& WithAttempt(int value) { SetAttempt(value); return *this;}
206
208
211 inline const Aws::Utils::DateTime& GetAttemptCreatedAt() const { return m_attemptCreatedAt; }
212 inline bool AttemptCreatedAtHasBeenSet() const { return m_attemptCreatedAtHasBeenSet; }
213 template<typename AttemptCreatedAtT = Aws::Utils::DateTime>
214 void SetAttemptCreatedAt(AttemptCreatedAtT&& value) { m_attemptCreatedAtHasBeenSet = true; m_attemptCreatedAt = std::forward<AttemptCreatedAtT>(value); }
215 template<typename AttemptCreatedAtT = Aws::Utils::DateTime>
216 JobRunSummary& WithAttemptCreatedAt(AttemptCreatedAtT&& value) { SetAttemptCreatedAt(std::forward<AttemptCreatedAtT>(value)); return *this;}
218
220
223 inline const Aws::Utils::DateTime& GetAttemptUpdatedAt() const { return m_attemptUpdatedAt; }
224 inline bool AttemptUpdatedAtHasBeenSet() const { return m_attemptUpdatedAtHasBeenSet; }
225 template<typename AttemptUpdatedAtT = Aws::Utils::DateTime>
226 void SetAttemptUpdatedAt(AttemptUpdatedAtT&& value) { m_attemptUpdatedAtHasBeenSet = true; m_attemptUpdatedAt = std::forward<AttemptUpdatedAtT>(value); }
227 template<typename AttemptUpdatedAtT = Aws::Utils::DateTime>
228 JobRunSummary& WithAttemptUpdatedAt(AttemptUpdatedAtT&& value) { SetAttemptUpdatedAt(std::forward<AttemptUpdatedAtT>(value)); return *this;}
230 private:
231
232 Aws::String m_applicationId;
233 bool m_applicationIdHasBeenSet = false;
234
235 Aws::String m_id;
236 bool m_idHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_modeHasBeenSet = false;
243
244 Aws::String m_arn;
245 bool m_arnHasBeenSet = false;
246
247 Aws::String m_createdBy;
248 bool m_createdByHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdAt{};
251 bool m_createdAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_updatedAt{};
254 bool m_updatedAtHasBeenSet = false;
255
256 Aws::String m_executionRole;
257 bool m_executionRoleHasBeenSet = false;
258
260 bool m_stateHasBeenSet = false;
261
262 Aws::String m_stateDetails;
263 bool m_stateDetailsHasBeenSet = false;
264
265 Aws::String m_releaseLabel;
266 bool m_releaseLabelHasBeenSet = false;
267
268 Aws::String m_type;
269 bool m_typeHasBeenSet = false;
270
271 int m_attempt{0};
272 bool m_attemptHasBeenSet = false;
273
274 Aws::Utils::DateTime m_attemptCreatedAt{};
275 bool m_attemptCreatedAtHasBeenSet = false;
276
277 Aws::Utils::DateTime m_attemptUpdatedAt{};
278 bool m_attemptUpdatedAtHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace EMRServerless
283} // namespace Aws
JobRunSummary & WithAttempt(int value)
JobRunSummary & WithReleaseLabel(ReleaseLabelT &&value)
const Aws::Utils::DateTime & GetAttemptUpdatedAt() const
const Aws::String & GetStateDetails() const
void SetApplicationId(ApplicationIdT &&value)
JobRunSummary & WithType(TypeT &&value)
const Aws::String & GetReleaseLabel() const
JobRunSummary & WithStateDetails(StateDetailsT &&value)
const Aws::String & GetType() const
const Aws::String & GetArn() const
const Aws::String & GetId() const
const Aws::String & GetApplicationId() const
void SetAttemptCreatedAt(AttemptCreatedAtT &&value)
JobRunSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_EMRSERVERLESS_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithName(NameT &&value)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
JobRunSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetAttemptCreatedAt() const
const Aws::String & GetName() const
AWS_EMRSERVERLESS_API JobRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithAttemptUpdatedAt(AttemptUpdatedAtT &&value)
JobRunSummary & WithMode(JobRunMode value)
const Aws::String & GetCreatedBy() const
const Aws::Utils::DateTime & GetUpdatedAt() const
JobRunSummary & WithId(IdT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
const Aws::String & GetExecutionRole() const
JobRunSummary & WithApplicationId(ApplicationIdT &&value)
JobRunSummary & WithAttemptCreatedAt(AttemptCreatedAtT &&value)
JobRunSummary & WithArn(ArnT &&value)
void SetReleaseLabel(ReleaseLabelT &&value)
JobRunSummary & WithExecutionRole(ExecutionRoleT &&value)
JobRunSummary & WithState(JobRunState value)
void SetStateDetails(StateDetailsT &&value)
JobRunSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetAttemptUpdatedAt(AttemptUpdatedAtT &&value)
AWS_EMRSERVERLESS_API JobRunSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue