AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetBatchJobExecutionResult.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/m2/MainframeModernization_EXPORTS.h>
11#include <aws/m2/model/BatchJobExecutionStatus.h>
12#include <aws/m2/model/BatchJobIdentifier.h>
13#include <aws/m2/model/BatchJobType.h>
14#include <aws/m2/model/JobStepRestartMarker.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 MainframeModernization {
28namespace Model {
30 public:
31 AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult() = default;
33 AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult& operator=(
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 template <typename ApplicationIdT = Aws::String>
42 void SetApplicationId(ApplicationIdT&& value) {
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const BatchJobIdentifier& GetBatchJobIdentifier() const { return m_batchJobIdentifier; }
58 template <typename BatchJobIdentifierT = BatchJobIdentifier>
59 void SetBatchJobIdentifier(BatchJobIdentifierT&& value) {
60 m_batchJobIdentifierHasBeenSet = true;
61 m_batchJobIdentifier = std::forward<BatchJobIdentifierT>(value);
62 }
63 template <typename BatchJobIdentifierT = BatchJobIdentifier>
64 GetBatchJobExecutionResult& WithBatchJobIdentifier(BatchJobIdentifierT&& value) {
65 SetBatchJobIdentifier(std::forward<BatchJobIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
75 template <typename EndTimeT = Aws::Utils::DateTime>
76 void SetEndTime(EndTimeT&& value) {
77 m_endTimeHasBeenSet = true;
78 m_endTime = std::forward<EndTimeT>(value);
79 }
80 template <typename EndTimeT = Aws::Utils::DateTime>
82 SetEndTime(std::forward<EndTimeT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetExecutionId() const { return m_executionId; }
92 template <typename ExecutionIdT = Aws::String>
93 void SetExecutionId(ExecutionIdT&& value) {
94 m_executionIdHasBeenSet = true;
95 m_executionId = std::forward<ExecutionIdT>(value);
96 }
97 template <typename ExecutionIdT = Aws::String>
99 SetExecutionId(std::forward<ExecutionIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetJobId() const { return m_jobId; }
109 template <typename JobIdT = Aws::String>
110 void SetJobId(JobIdT&& value) {
111 m_jobIdHasBeenSet = true;
112 m_jobId = std::forward<JobIdT>(value);
113 }
114 template <typename JobIdT = Aws::String>
116 SetJobId(std::forward<JobIdT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetJobName() const { return m_jobName; }
126 template <typename JobNameT = Aws::String>
127 void SetJobName(JobNameT&& value) {
128 m_jobNameHasBeenSet = true;
129 m_jobName = std::forward<JobNameT>(value);
130 }
131 template <typename JobNameT = Aws::String>
133 SetJobName(std::forward<JobNameT>(value));
134 return *this;
135 }
137
139
142 inline const JobStepRestartMarker& GetJobStepRestartMarker() const { return m_jobStepRestartMarker; }
143 template <typename JobStepRestartMarkerT = JobStepRestartMarker>
144 void SetJobStepRestartMarker(JobStepRestartMarkerT&& value) {
145 m_jobStepRestartMarkerHasBeenSet = true;
146 m_jobStepRestartMarker = std::forward<JobStepRestartMarkerT>(value);
147 }
148 template <typename JobStepRestartMarkerT = JobStepRestartMarker>
149 GetBatchJobExecutionResult& WithJobStepRestartMarker(JobStepRestartMarkerT&& value) {
150 SetJobStepRestartMarker(std::forward<JobStepRestartMarkerT>(value));
151 return *this;
152 }
154
156
159 inline BatchJobType GetJobType() const { return m_jobType; }
160 inline void SetJobType(BatchJobType value) {
161 m_jobTypeHasBeenSet = true;
162 m_jobType = value;
163 }
165 SetJobType(value);
166 return *this;
167 }
169
171
174 inline const Aws::String& GetJobUser() const { return m_jobUser; }
175 template <typename JobUserT = Aws::String>
176 void SetJobUser(JobUserT&& value) {
177 m_jobUserHasBeenSet = true;
178 m_jobUser = std::forward<JobUserT>(value);
179 }
180 template <typename JobUserT = Aws::String>
182 SetJobUser(std::forward<JobUserT>(value));
183 return *this;
184 }
186
188
195 inline const Aws::String& GetReturnCode() const { return m_returnCode; }
196 template <typename ReturnCodeT = Aws::String>
197 void SetReturnCode(ReturnCodeT&& value) {
198 m_returnCodeHasBeenSet = true;
199 m_returnCode = std::forward<ReturnCodeT>(value);
200 }
201 template <typename ReturnCodeT = Aws::String>
203 SetReturnCode(std::forward<ReturnCodeT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
213 template <typename StartTimeT = Aws::Utils::DateTime>
214 void SetStartTime(StartTimeT&& value) {
215 m_startTimeHasBeenSet = true;
216 m_startTime = std::forward<StartTimeT>(value);
217 }
218 template <typename StartTimeT = Aws::Utils::DateTime>
220 SetStartTime(std::forward<StartTimeT>(value));
221 return *this;
222 }
224
226
229 inline BatchJobExecutionStatus GetStatus() const { return m_status; }
231 m_statusHasBeenSet = true;
232 m_status = value;
233 }
235 SetStatus(value);
236 return *this;
237 }
239
241
244 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
245 template <typename StatusReasonT = Aws::String>
246 void SetStatusReason(StatusReasonT&& value) {
247 m_statusReasonHasBeenSet = true;
248 m_statusReason = std::forward<StatusReasonT>(value);
249 }
250 template <typename StatusReasonT = Aws::String>
252 SetStatusReason(std::forward<StatusReasonT>(value));
253 return *this;
254 }
256
258
259 inline const Aws::String& GetRequestId() const { return m_requestId; }
260 template <typename RequestIdT = Aws::String>
261 void SetRequestId(RequestIdT&& value) {
262 m_requestIdHasBeenSet = true;
263 m_requestId = std::forward<RequestIdT>(value);
264 }
265 template <typename RequestIdT = Aws::String>
267 SetRequestId(std::forward<RequestIdT>(value));
268 return *this;
269 }
271 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
272
273 private:
274 Aws::String m_applicationId;
275
276 BatchJobIdentifier m_batchJobIdentifier;
277
278 Aws::Utils::DateTime m_endTime{};
279
280 Aws::String m_executionId;
281
282 Aws::String m_jobId;
283
284 Aws::String m_jobName;
285
286 JobStepRestartMarker m_jobStepRestartMarker;
287
289
290 Aws::String m_jobUser;
291
292 Aws::String m_returnCode;
293
294 Aws::Utils::DateTime m_startTime{};
295
297
298 Aws::String m_statusReason;
299
300 Aws::String m_requestId;
301 Aws::Http::HttpResponseCode m_HttpResponseCode;
302 bool m_applicationIdHasBeenSet = false;
303 bool m_batchJobIdentifierHasBeenSet = false;
304 bool m_endTimeHasBeenSet = false;
305 bool m_executionIdHasBeenSet = false;
306 bool m_jobIdHasBeenSet = false;
307 bool m_jobNameHasBeenSet = false;
308 bool m_jobStepRestartMarkerHasBeenSet = false;
309 bool m_jobTypeHasBeenSet = false;
310 bool m_jobUserHasBeenSet = false;
311 bool m_returnCodeHasBeenSet = false;
312 bool m_startTimeHasBeenSet = false;
313 bool m_statusHasBeenSet = false;
314 bool m_statusReasonHasBeenSet = false;
315 bool m_requestIdHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace MainframeModernization
320} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBatchJobExecutionResult & WithJobStepRestartMarker(JobStepRestartMarkerT &&value)
GetBatchJobExecutionResult & WithStatus(BatchJobExecutionStatus value)
GetBatchJobExecutionResult & WithStatusReason(StatusReasonT &&value)
GetBatchJobExecutionResult & WithRequestId(RequestIdT &&value)
GetBatchJobExecutionResult & WithStartTime(StartTimeT &&value)
GetBatchJobExecutionResult & WithReturnCode(ReturnCodeT &&value)
GetBatchJobExecutionResult & WithExecutionId(ExecutionIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBatchJobExecutionResult & WithApplicationId(ApplicationIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult()=default
GetBatchJobExecutionResult & WithBatchJobIdentifier(BatchJobIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue