AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetJobRunResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/JobRunDetails.h>
12#include <aws/datazone/model/JobRunError.h>
13#include <aws/datazone/model/JobRunMode.h>
14#include <aws/datazone/model/JobRunStatus.h>
15#include <aws/datazone/model/JobType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone {
29namespace Model {
31 public:
32 AWS_DATAZONE_API GetJobRunResult() = default;
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 template <typename DomainIdT = Aws::String>
42 void SetDomainId(DomainIdT&& value) {
43 m_domainIdHasBeenSet = true;
44 m_domainId = std::forward<DomainIdT>(value);
45 }
46 template <typename DomainIdT = Aws::String>
47 GetJobRunResult& WithDomainId(DomainIdT&& value) {
48 SetDomainId(std::forward<DomainIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetId() const { return m_id; }
58 template <typename IdT = Aws::String>
59 void SetId(IdT&& value) {
60 m_idHasBeenSet = true;
61 m_id = std::forward<IdT>(value);
62 }
63 template <typename IdT = Aws::String>
64 GetJobRunResult& WithId(IdT&& value) {
65 SetId(std::forward<IdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetJobId() const { return m_jobId; }
75 template <typename JobIdT = Aws::String>
76 void SetJobId(JobIdT&& value) {
77 m_jobIdHasBeenSet = true;
78 m_jobId = std::forward<JobIdT>(value);
79 }
80 template <typename JobIdT = Aws::String>
81 GetJobRunResult& WithJobId(JobIdT&& value) {
82 SetJobId(std::forward<JobIdT>(value));
83 return *this;
84 }
86
88
91 inline JobType GetJobType() const { return m_jobType; }
92 inline void SetJobType(JobType value) {
93 m_jobTypeHasBeenSet = true;
94 m_jobType = value;
95 }
97 SetJobType(value);
98 return *this;
99 }
101
103
106 inline JobRunMode GetRunMode() const { return m_runMode; }
107 inline void SetRunMode(JobRunMode value) {
108 m_runModeHasBeenSet = true;
109 m_runMode = value;
110 }
112 SetRunMode(value);
113 return *this;
114 }
116
118
121 inline const JobRunDetails& GetDetails() const { return m_details; }
122 template <typename DetailsT = JobRunDetails>
123 void SetDetails(DetailsT&& value) {
124 m_detailsHasBeenSet = true;
125 m_details = std::forward<DetailsT>(value);
126 }
127 template <typename DetailsT = JobRunDetails>
128 GetJobRunResult& WithDetails(DetailsT&& value) {
129 SetDetails(std::forward<DetailsT>(value));
130 return *this;
131 }
133
135
138 inline JobRunStatus GetStatus() const { return m_status; }
139 inline void SetStatus(JobRunStatus value) {
140 m_statusHasBeenSet = true;
141 m_status = value;
142 }
144 SetStatus(value);
145 return *this;
146 }
148
150
153 inline const JobRunError& GetError() const { return m_error; }
154 template <typename ErrorT = JobRunError>
155 void SetError(ErrorT&& value) {
156 m_errorHasBeenSet = true;
157 m_error = std::forward<ErrorT>(value);
158 }
159 template <typename ErrorT = JobRunError>
160 GetJobRunResult& WithError(ErrorT&& value) {
161 SetError(std::forward<ErrorT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
171 template <typename CreatedByT = Aws::String>
172 void SetCreatedBy(CreatedByT&& value) {
173 m_createdByHasBeenSet = true;
174 m_createdBy = std::forward<CreatedByT>(value);
175 }
176 template <typename CreatedByT = Aws::String>
177 GetJobRunResult& WithCreatedBy(CreatedByT&& value) {
178 SetCreatedBy(std::forward<CreatedByT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 GetJobRunResult& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
205 template <typename StartTimeT = Aws::Utils::DateTime>
206 void SetStartTime(StartTimeT&& value) {
207 m_startTimeHasBeenSet = true;
208 m_startTime = std::forward<StartTimeT>(value);
209 }
210 template <typename StartTimeT = Aws::Utils::DateTime>
211 GetJobRunResult& WithStartTime(StartTimeT&& value) {
212 SetStartTime(std::forward<StartTimeT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
222 template <typename EndTimeT = Aws::Utils::DateTime>
223 void SetEndTime(EndTimeT&& value) {
224 m_endTimeHasBeenSet = true;
225 m_endTime = std::forward<EndTimeT>(value);
226 }
227 template <typename EndTimeT = Aws::Utils::DateTime>
228 GetJobRunResult& WithEndTime(EndTimeT&& value) {
229 SetEndTime(std::forward<EndTimeT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 GetJobRunResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
249
250 private:
251 Aws::String m_domainId;
252
253 Aws::String m_id;
254
255 Aws::String m_jobId;
256
257 JobType m_jobType{JobType::NOT_SET};
258
260
261 JobRunDetails m_details;
262
264
265 JobRunError m_error;
266
267 Aws::String m_createdBy;
268
269 Aws::Utils::DateTime m_createdAt{};
270
271 Aws::Utils::DateTime m_startTime{};
272
273 Aws::Utils::DateTime m_endTime{};
274
275 Aws::String m_requestId;
276 Aws::Http::HttpResponseCode m_HttpResponseCode;
277 bool m_domainIdHasBeenSet = false;
278 bool m_idHasBeenSet = false;
279 bool m_jobIdHasBeenSet = false;
280 bool m_jobTypeHasBeenSet = false;
281 bool m_runModeHasBeenSet = false;
282 bool m_detailsHasBeenSet = false;
283 bool m_statusHasBeenSet = false;
284 bool m_errorHasBeenSet = false;
285 bool m_createdByHasBeenSet = false;
286 bool m_createdAtHasBeenSet = false;
287 bool m_startTimeHasBeenSet = false;
288 bool m_endTimeHasBeenSet = false;
289 bool m_requestIdHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace DataZone
294} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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