AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetJobRunResult.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/JobRunDetails.h>
11#include <aws/datazone/model/JobRunError.h>
12#include <aws/datazone/model/JobRunMode.h>
13#include <aws/datazone/model/JobRunStatus.h>
14#include <aws/datazone/model/JobType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
30 public:
31 AWS_DATAZONE_API GetJobRunResult() = default;
34
36
39 inline const Aws::String& GetDomainId() const { return m_domainId; }
40 template <typename DomainIdT = Aws::String>
41 void SetDomainId(DomainIdT&& value) {
42 m_domainIdHasBeenSet = true;
43 m_domainId = std::forward<DomainIdT>(value);
44 }
45 template <typename DomainIdT = Aws::String>
46 GetJobRunResult& WithDomainId(DomainIdT&& value) {
47 SetDomainId(std::forward<DomainIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 template <typename IdT = Aws::String>
58 void SetId(IdT&& value) {
59 m_idHasBeenSet = true;
60 m_id = std::forward<IdT>(value);
61 }
62 template <typename IdT = Aws::String>
63 GetJobRunResult& WithId(IdT&& value) {
64 SetId(std::forward<IdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetJobId() const { return m_jobId; }
74 template <typename JobIdT = Aws::String>
75 void SetJobId(JobIdT&& value) {
76 m_jobIdHasBeenSet = true;
77 m_jobId = std::forward<JobIdT>(value);
78 }
79 template <typename JobIdT = Aws::String>
80 GetJobRunResult& WithJobId(JobIdT&& value) {
81 SetJobId(std::forward<JobIdT>(value));
82 return *this;
83 }
85
87
90 inline JobType GetJobType() const { return m_jobType; }
91 inline void SetJobType(JobType value) {
92 m_jobTypeHasBeenSet = true;
93 m_jobType = value;
94 }
96 SetJobType(value);
97 return *this;
98 }
100
102
105 inline JobRunMode GetRunMode() const { return m_runMode; }
106 inline void SetRunMode(JobRunMode value) {
107 m_runModeHasBeenSet = true;
108 m_runMode = value;
109 }
111 SetRunMode(value);
112 return *this;
113 }
115
117
120 inline const JobRunDetails& GetDetails() const { return m_details; }
121 template <typename DetailsT = JobRunDetails>
122 void SetDetails(DetailsT&& value) {
123 m_detailsHasBeenSet = true;
124 m_details = std::forward<DetailsT>(value);
125 }
126 template <typename DetailsT = JobRunDetails>
127 GetJobRunResult& WithDetails(DetailsT&& value) {
128 SetDetails(std::forward<DetailsT>(value));
129 return *this;
130 }
132
134
137 inline JobRunStatus GetStatus() const { return m_status; }
138 inline void SetStatus(JobRunStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147
149
152 inline const JobRunError& GetError() const { return m_error; }
153 template <typename ErrorT = JobRunError>
154 void SetError(ErrorT&& value) {
155 m_errorHasBeenSet = true;
156 m_error = std::forward<ErrorT>(value);
157 }
158 template <typename ErrorT = JobRunError>
159 GetJobRunResult& WithError(ErrorT&& value) {
160 SetError(std::forward<ErrorT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
170 template <typename CreatedByT = Aws::String>
171 void SetCreatedBy(CreatedByT&& value) {
172 m_createdByHasBeenSet = true;
173 m_createdBy = std::forward<CreatedByT>(value);
174 }
175 template <typename CreatedByT = Aws::String>
176 GetJobRunResult& WithCreatedBy(CreatedByT&& value) {
177 SetCreatedBy(std::forward<CreatedByT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
188 void SetCreatedAt(CreatedAtT&& value) {
189 m_createdAtHasBeenSet = true;
190 m_createdAt = std::forward<CreatedAtT>(value);
191 }
192 template <typename CreatedAtT = Aws::Utils::DateTime>
193 GetJobRunResult& WithCreatedAt(CreatedAtT&& value) {
194 SetCreatedAt(std::forward<CreatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
204 template <typename StartTimeT = Aws::Utils::DateTime>
205 void SetStartTime(StartTimeT&& value) {
206 m_startTimeHasBeenSet = true;
207 m_startTime = std::forward<StartTimeT>(value);
208 }
209 template <typename StartTimeT = Aws::Utils::DateTime>
210 GetJobRunResult& WithStartTime(StartTimeT&& value) {
211 SetStartTime(std::forward<StartTimeT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
221 template <typename EndTimeT = Aws::Utils::DateTime>
222 void SetEndTime(EndTimeT&& value) {
223 m_endTimeHasBeenSet = true;
224 m_endTime = std::forward<EndTimeT>(value);
225 }
226 template <typename EndTimeT = Aws::Utils::DateTime>
227 GetJobRunResult& WithEndTime(EndTimeT&& value) {
228 SetEndTime(std::forward<EndTimeT>(value));
229 return *this;
230 }
232
234
235 inline const Aws::String& GetRequestId() const { return m_requestId; }
236 template <typename RequestIdT = Aws::String>
237 void SetRequestId(RequestIdT&& value) {
238 m_requestIdHasBeenSet = true;
239 m_requestId = std::forward<RequestIdT>(value);
240 }
241 template <typename RequestIdT = Aws::String>
242 GetJobRunResult& WithRequestId(RequestIdT&& value) {
243 SetRequestId(std::forward<RequestIdT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_domainId;
249
250 Aws::String m_id;
251
252 Aws::String m_jobId;
253
254 JobType m_jobType{JobType::NOT_SET};
255
257
258 JobRunDetails m_details;
259
261
262 JobRunError m_error;
263
264 Aws::String m_createdBy;
265
266 Aws::Utils::DateTime m_createdAt{};
267
268 Aws::Utils::DateTime m_startTime{};
269
270 Aws::Utils::DateTime m_endTime{};
271
272 Aws::String m_requestId;
273 bool m_domainIdHasBeenSet = false;
274 bool m_idHasBeenSet = false;
275 bool m_jobIdHasBeenSet = false;
276 bool m_jobTypeHasBeenSet = false;
277 bool m_runModeHasBeenSet = false;
278 bool m_detailsHasBeenSet = false;
279 bool m_statusHasBeenSet = false;
280 bool m_errorHasBeenSet = false;
281 bool m_createdByHasBeenSet = false;
282 bool m_createdAtHasBeenSet = false;
283 bool m_startTimeHasBeenSet = false;
284 bool m_endTimeHasBeenSet = false;
285 bool m_requestIdHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace DataZone
290} // namespace Aws
AWS_DATAZONE_API GetJobRunResult()=default
GetJobRunResult & WithJobId(JobIdT &&value)
const JobRunError & GetError() const
GetJobRunResult & WithEndTime(EndTimeT &&value)
GetJobRunResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
GetJobRunResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
GetJobRunResult & WithCreatedBy(CreatedByT &&value)
GetJobRunResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobRunResult & WithStartTime(StartTimeT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetDomainId() const
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetCreatedBy(CreatedByT &&value)
GetJobRunResult & WithJobType(JobType value)
GetJobRunResult & WithDetails(DetailsT &&value)
GetJobRunResult & WithId(IdT &&value)
GetJobRunResult & WithRunMode(JobRunMode value)
AWS_DATAZONE_API GetJobRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API GetJobRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetId() const
GetJobRunResult & WithError(ErrorT &&value)
GetJobRunResult & WithStatus(JobRunStatus value)
const Aws::String & GetJobId() const
void SetCreatedAt(CreatedAtT &&value)
const JobRunDetails & GetDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue