AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
JobRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/JobRunError.h>
11#include <aws/datazone/model/JobRunMode.h>
12#include <aws/datazone/model/JobRunStatus.h>
13#include <aws/datazone/model/JobType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
26
33 public:
34 AWS_DATAZONE_API JobRunSummary() = default;
35 AWS_DATAZONE_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDomainId() const { return m_domainId; }
44 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
45 template <typename DomainIdT = Aws::String>
46 void SetDomainId(DomainIdT&& value) {
47 m_domainIdHasBeenSet = true;
48 m_domainId = std::forward<DomainIdT>(value);
49 }
50 template <typename DomainIdT = Aws::String>
51 JobRunSummary& WithDomainId(DomainIdT&& value) {
52 SetDomainId(std::forward<DomainIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetJobId() const { return m_jobId; }
62 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
63 template <typename JobIdT = Aws::String>
64 void SetJobId(JobIdT&& value) {
65 m_jobIdHasBeenSet = true;
66 m_jobId = std::forward<JobIdT>(value);
67 }
68 template <typename JobIdT = Aws::String>
69 JobRunSummary& WithJobId(JobIdT&& value) {
70 SetJobId(std::forward<JobIdT>(value));
71 return *this;
72 }
74
76
79 inline JobType GetJobType() const { return m_jobType; }
80 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
81 inline void SetJobType(JobType value) {
82 m_jobTypeHasBeenSet = true;
83 m_jobType = value;
84 }
86 SetJobType(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRunId() const { return m_runId; }
96 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
97 template <typename RunIdT = Aws::String>
98 void SetRunId(RunIdT&& value) {
99 m_runIdHasBeenSet = true;
100 m_runId = std::forward<RunIdT>(value);
101 }
102 template <typename RunIdT = Aws::String>
103 JobRunSummary& WithRunId(RunIdT&& value) {
104 SetRunId(std::forward<RunIdT>(value));
105 return *this;
106 }
108
110
113 inline JobRunMode GetRunMode() const { return m_runMode; }
114 inline bool RunModeHasBeenSet() const { return m_runModeHasBeenSet; }
115 inline void SetRunMode(JobRunMode value) {
116 m_runModeHasBeenSet = true;
117 m_runMode = value;
118 }
120 SetRunMode(value);
121 return *this;
122 }
124
126
129 inline JobRunStatus GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(JobRunStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const JobRunError& GetError() const { return m_error; }
146 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
147 template <typename ErrorT = JobRunError>
148 void SetError(ErrorT&& value) {
149 m_errorHasBeenSet = true;
150 m_error = std::forward<ErrorT>(value);
151 }
152 template <typename ErrorT = JobRunError>
153 JobRunSummary& WithError(ErrorT&& value) {
154 SetError(std::forward<ErrorT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
164 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
165 template <typename CreatedByT = Aws::String>
166 void SetCreatedBy(CreatedByT&& value) {
167 m_createdByHasBeenSet = true;
168 m_createdBy = std::forward<CreatedByT>(value);
169 }
170 template <typename CreatedByT = Aws::String>
171 JobRunSummary& WithCreatedBy(CreatedByT&& value) {
172 SetCreatedBy(std::forward<CreatedByT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
182 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
184 void SetCreatedAt(CreatedAtT&& value) {
185 m_createdAtHasBeenSet = true;
186 m_createdAt = std::forward<CreatedAtT>(value);
187 }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 JobRunSummary& WithCreatedAt(CreatedAtT&& value) {
190 SetCreatedAt(std::forward<CreatedAtT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
200 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
201 template <typename StartTimeT = Aws::Utils::DateTime>
202 void SetStartTime(StartTimeT&& value) {
203 m_startTimeHasBeenSet = true;
204 m_startTime = std::forward<StartTimeT>(value);
205 }
206 template <typename StartTimeT = Aws::Utils::DateTime>
207 JobRunSummary& WithStartTime(StartTimeT&& value) {
208 SetStartTime(std::forward<StartTimeT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
218 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
219 template <typename EndTimeT = Aws::Utils::DateTime>
220 void SetEndTime(EndTimeT&& value) {
221 m_endTimeHasBeenSet = true;
222 m_endTime = std::forward<EndTimeT>(value);
223 }
224 template <typename EndTimeT = Aws::Utils::DateTime>
225 JobRunSummary& WithEndTime(EndTimeT&& value) {
226 SetEndTime(std::forward<EndTimeT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_domainId;
232
233 Aws::String m_jobId;
234
235 JobType m_jobType{JobType::NOT_SET};
236
237 Aws::String m_runId;
238
240
242
243 JobRunError m_error;
244
245 Aws::String m_createdBy;
246
247 Aws::Utils::DateTime m_createdAt{};
248
249 Aws::Utils::DateTime m_startTime{};
250
251 Aws::Utils::DateTime m_endTime{};
252 bool m_domainIdHasBeenSet = false;
253 bool m_jobIdHasBeenSet = false;
254 bool m_jobTypeHasBeenSet = false;
255 bool m_runIdHasBeenSet = false;
256 bool m_runModeHasBeenSet = false;
257 bool m_statusHasBeenSet = false;
258 bool m_errorHasBeenSet = false;
259 bool m_createdByHasBeenSet = false;
260 bool m_createdAtHasBeenSet = false;
261 bool m_startTimeHasBeenSet = false;
262 bool m_endTimeHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace DataZone
267} // namespace Aws
AWS_DATAZONE_API JobRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreatedBy() const
void SetStartTime(StartTimeT &&value)
AWS_DATAZONE_API JobRunSummary()=default
const Aws::String & GetDomainId() const
const JobRunError & GetError() const
JobRunSummary & WithRunMode(JobRunMode value)
const Aws::String & GetRunId() const
JobRunSummary & WithCreatedAt(CreatedAtT &&value)
JobRunSummary & WithError(ErrorT &&value)
JobRunSummary & WithStartTime(StartTimeT &&value)
void SetStatus(JobRunStatus value)
const Aws::Utils::DateTime & GetStartTime() const
JobRunSummary & WithRunId(RunIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
JobRunSummary & WithJobType(JobType value)
AWS_DATAZONE_API JobRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRunSummary & WithEndTime(EndTimeT &&value)
void SetCreatedBy(CreatedByT &&value)
JobRunSummary & WithDomainId(DomainIdT &&value)
JobRunSummary & WithStatus(JobRunStatus value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetJobId() const
JobRunSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetEndTime() const
JobRunSummary & WithJobId(JobIdT &&value)
void SetEndTime(EndTimeT &&value)
void SetRunMode(JobRunMode value)
void SetDomainId(DomainIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue