AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetBatchJobExecutionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/m2/MainframeModernization_EXPORTS.h>
10#include <aws/m2/model/BatchJobExecutionStatus.h>
11#include <aws/m2/model/BatchJobIdentifier.h>
12#include <aws/m2/model/BatchJobType.h>
13#include <aws/m2/model/JobStepRestartMarker.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MainframeModernization {
27namespace Model {
29 public:
30 AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult() = default;
32 AWS_MAINFRAMEMODERNIZATION_API GetBatchJobExecutionResult& operator=(
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const BatchJobIdentifier& GetBatchJobIdentifier() const { return m_batchJobIdentifier; }
57 template <typename BatchJobIdentifierT = BatchJobIdentifier>
58 void SetBatchJobIdentifier(BatchJobIdentifierT&& value) {
59 m_batchJobIdentifierHasBeenSet = true;
60 m_batchJobIdentifier = std::forward<BatchJobIdentifierT>(value);
61 }
62 template <typename BatchJobIdentifierT = BatchJobIdentifier>
63 GetBatchJobExecutionResult& WithBatchJobIdentifier(BatchJobIdentifierT&& value) {
64 SetBatchJobIdentifier(std::forward<BatchJobIdentifierT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
74 template <typename EndTimeT = Aws::Utils::DateTime>
75 void SetEndTime(EndTimeT&& value) {
76 m_endTimeHasBeenSet = true;
77 m_endTime = std::forward<EndTimeT>(value);
78 }
79 template <typename EndTimeT = Aws::Utils::DateTime>
81 SetEndTime(std::forward<EndTimeT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetExecutionId() const { return m_executionId; }
91 template <typename ExecutionIdT = Aws::String>
92 void SetExecutionId(ExecutionIdT&& value) {
93 m_executionIdHasBeenSet = true;
94 m_executionId = std::forward<ExecutionIdT>(value);
95 }
96 template <typename ExecutionIdT = Aws::String>
98 SetExecutionId(std::forward<ExecutionIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetJobId() const { return m_jobId; }
108 template <typename JobIdT = Aws::String>
109 void SetJobId(JobIdT&& value) {
110 m_jobIdHasBeenSet = true;
111 m_jobId = std::forward<JobIdT>(value);
112 }
113 template <typename JobIdT = Aws::String>
115 SetJobId(std::forward<JobIdT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetJobName() const { return m_jobName; }
125 template <typename JobNameT = Aws::String>
126 void SetJobName(JobNameT&& value) {
127 m_jobNameHasBeenSet = true;
128 m_jobName = std::forward<JobNameT>(value);
129 }
130 template <typename JobNameT = Aws::String>
132 SetJobName(std::forward<JobNameT>(value));
133 return *this;
134 }
136
138
141 inline const JobStepRestartMarker& GetJobStepRestartMarker() const { return m_jobStepRestartMarker; }
142 template <typename JobStepRestartMarkerT = JobStepRestartMarker>
143 void SetJobStepRestartMarker(JobStepRestartMarkerT&& value) {
144 m_jobStepRestartMarkerHasBeenSet = true;
145 m_jobStepRestartMarker = std::forward<JobStepRestartMarkerT>(value);
146 }
147 template <typename JobStepRestartMarkerT = JobStepRestartMarker>
148 GetBatchJobExecutionResult& WithJobStepRestartMarker(JobStepRestartMarkerT&& value) {
149 SetJobStepRestartMarker(std::forward<JobStepRestartMarkerT>(value));
150 return *this;
151 }
153
155
158 inline BatchJobType GetJobType() const { return m_jobType; }
159 inline void SetJobType(BatchJobType value) {
160 m_jobTypeHasBeenSet = true;
161 m_jobType = value;
162 }
164 SetJobType(value);
165 return *this;
166 }
168
170
173 inline const Aws::String& GetJobUser() const { return m_jobUser; }
174 template <typename JobUserT = Aws::String>
175 void SetJobUser(JobUserT&& value) {
176 m_jobUserHasBeenSet = true;
177 m_jobUser = std::forward<JobUserT>(value);
178 }
179 template <typename JobUserT = Aws::String>
181 SetJobUser(std::forward<JobUserT>(value));
182 return *this;
183 }
185
187
194 inline const Aws::String& GetReturnCode() const { return m_returnCode; }
195 template <typename ReturnCodeT = Aws::String>
196 void SetReturnCode(ReturnCodeT&& value) {
197 m_returnCodeHasBeenSet = true;
198 m_returnCode = std::forward<ReturnCodeT>(value);
199 }
200 template <typename ReturnCodeT = Aws::String>
202 SetReturnCode(std::forward<ReturnCodeT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
212 template <typename StartTimeT = Aws::Utils::DateTime>
213 void SetStartTime(StartTimeT&& value) {
214 m_startTimeHasBeenSet = true;
215 m_startTime = std::forward<StartTimeT>(value);
216 }
217 template <typename StartTimeT = Aws::Utils::DateTime>
219 SetStartTime(std::forward<StartTimeT>(value));
220 return *this;
221 }
223
225
228 inline BatchJobExecutionStatus GetStatus() const { return m_status; }
230 m_statusHasBeenSet = true;
231 m_status = value;
232 }
234 SetStatus(value);
235 return *this;
236 }
238
240
243 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
244 template <typename StatusReasonT = Aws::String>
245 void SetStatusReason(StatusReasonT&& value) {
246 m_statusReasonHasBeenSet = true;
247 m_statusReason = std::forward<StatusReasonT>(value);
248 }
249 template <typename StatusReasonT = Aws::String>
251 SetStatusReason(std::forward<StatusReasonT>(value));
252 return *this;
253 }
255
257
258 inline const Aws::String& GetRequestId() const { return m_requestId; }
259 template <typename RequestIdT = Aws::String>
260 void SetRequestId(RequestIdT&& value) {
261 m_requestIdHasBeenSet = true;
262 m_requestId = std::forward<RequestIdT>(value);
263 }
264 template <typename RequestIdT = Aws::String>
266 SetRequestId(std::forward<RequestIdT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_applicationId;
272
273 BatchJobIdentifier m_batchJobIdentifier;
274
275 Aws::Utils::DateTime m_endTime{};
276
277 Aws::String m_executionId;
278
279 Aws::String m_jobId;
280
281 Aws::String m_jobName;
282
283 JobStepRestartMarker m_jobStepRestartMarker;
284
286
287 Aws::String m_jobUser;
288
289 Aws::String m_returnCode;
290
291 Aws::Utils::DateTime m_startTime{};
292
294
295 Aws::String m_statusReason;
296
297 Aws::String m_requestId;
298 bool m_applicationIdHasBeenSet = false;
299 bool m_batchJobIdentifierHasBeenSet = false;
300 bool m_endTimeHasBeenSet = false;
301 bool m_executionIdHasBeenSet = false;
302 bool m_jobIdHasBeenSet = false;
303 bool m_jobNameHasBeenSet = false;
304 bool m_jobStepRestartMarkerHasBeenSet = false;
305 bool m_jobTypeHasBeenSet = false;
306 bool m_jobUserHasBeenSet = false;
307 bool m_returnCodeHasBeenSet = false;
308 bool m_startTimeHasBeenSet = false;
309 bool m_statusHasBeenSet = false;
310 bool m_statusReasonHasBeenSet = false;
311 bool m_requestIdHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace MainframeModernization
316} // 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