AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetTaskResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/TaskParameterValue.h>
13#include <aws/deadline/model/TaskRunStatus.h>
14#include <aws/deadline/model/TaskTargetRunStatus.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 deadline {
28namespace Model {
30 public:
31 AWS_DEADLINE_API GetTaskResult() = default;
34
36
39 inline const Aws::String& GetTaskId() const { return m_taskId; }
40 template <typename TaskIdT = Aws::String>
41 void SetTaskId(TaskIdT&& value) {
42 m_taskIdHasBeenSet = true;
43 m_taskId = std::forward<TaskIdT>(value);
44 }
45 template <typename TaskIdT = Aws::String>
46 GetTaskResult& WithTaskId(TaskIdT&& value) {
47 SetTaskId(std::forward<TaskIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
57 template <typename CreatedAtT = Aws::Utils::DateTime>
58 void SetCreatedAt(CreatedAtT&& value) {
59 m_createdAtHasBeenSet = true;
60 m_createdAt = std::forward<CreatedAtT>(value);
61 }
62 template <typename CreatedAtT = Aws::Utils::DateTime>
63 GetTaskResult& WithCreatedAt(CreatedAtT&& value) {
64 SetCreatedAt(std::forward<CreatedAtT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
74 template <typename CreatedByT = Aws::String>
75 void SetCreatedBy(CreatedByT&& value) {
76 m_createdByHasBeenSet = true;
77 m_createdBy = std::forward<CreatedByT>(value);
78 }
79 template <typename CreatedByT = Aws::String>
80 GetTaskResult& WithCreatedBy(CreatedByT&& value) {
81 SetCreatedBy(std::forward<CreatedByT>(value));
82 return *this;
83 }
85
87
90 inline TaskRunStatus GetRunStatus() const { return m_runStatus; }
91 inline void SetRunStatus(TaskRunStatus value) {
92 m_runStatusHasBeenSet = true;
93 m_runStatus = value;
94 }
96 SetRunStatus(value);
97 return *this;
98 }
100
102
105 inline TaskTargetRunStatus GetTargetRunStatus() const { return m_targetRunStatus; }
107 m_targetRunStatusHasBeenSet = true;
108 m_targetRunStatus = value;
109 }
111 SetTargetRunStatus(value);
112 return *this;
113 }
115
117
120 inline int GetFailureRetryCount() const { return m_failureRetryCount; }
121 inline void SetFailureRetryCount(int value) {
122 m_failureRetryCountHasBeenSet = true;
123 m_failureRetryCount = value;
124 }
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
136 template <typename StartedAtT = Aws::Utils::DateTime>
137 void SetStartedAt(StartedAtT&& value) {
138 m_startedAtHasBeenSet = true;
139 m_startedAt = std::forward<StartedAtT>(value);
140 }
141 template <typename StartedAtT = Aws::Utils::DateTime>
142 GetTaskResult& WithStartedAt(StartedAtT&& value) {
143 SetStartedAt(std::forward<StartedAtT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
153 template <typename EndedAtT = Aws::Utils::DateTime>
154 void SetEndedAt(EndedAtT&& value) {
155 m_endedAtHasBeenSet = true;
156 m_endedAt = std::forward<EndedAtT>(value);
157 }
158 template <typename EndedAtT = Aws::Utils::DateTime>
159 GetTaskResult& WithEndedAt(EndedAtT&& value) {
160 SetEndedAt(std::forward<EndedAtT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 void SetUpdatedAt(UpdatedAtT&& value) {
172 m_updatedAtHasBeenSet = true;
173 m_updatedAt = std::forward<UpdatedAtT>(value);
174 }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 GetTaskResult& WithUpdatedAt(UpdatedAtT&& value) {
177 SetUpdatedAt(std::forward<UpdatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
187 template <typename UpdatedByT = Aws::String>
188 void SetUpdatedBy(UpdatedByT&& value) {
189 m_updatedByHasBeenSet = true;
190 m_updatedBy = std::forward<UpdatedByT>(value);
191 }
192 template <typename UpdatedByT = Aws::String>
193 GetTaskResult& WithUpdatedBy(UpdatedByT&& value) {
194 SetUpdatedBy(std::forward<UpdatedByT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetLatestSessionActionId() const { return m_latestSessionActionId; }
204 template <typename LatestSessionActionIdT = Aws::String>
205 void SetLatestSessionActionId(LatestSessionActionIdT&& value) {
206 m_latestSessionActionIdHasBeenSet = true;
207 m_latestSessionActionId = std::forward<LatestSessionActionIdT>(value);
208 }
209 template <typename LatestSessionActionIdT = Aws::String>
210 GetTaskResult& WithLatestSessionActionId(LatestSessionActionIdT&& value) {
211 SetLatestSessionActionId(std::forward<LatestSessionActionIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const { return m_parameters; }
221 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
222 void SetParameters(ParametersT&& value) {
223 m_parametersHasBeenSet = true;
224 m_parameters = std::forward<ParametersT>(value);
225 }
226 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
227 GetTaskResult& WithParameters(ParametersT&& value) {
228 SetParameters(std::forward<ParametersT>(value));
229 return *this;
230 }
231 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TaskParameterValue>
232 GetTaskResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
233 m_parametersHasBeenSet = true;
234 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
235 return *this;
236 }
238
240
241 inline const Aws::String& GetRequestId() const { return m_requestId; }
242 template <typename RequestIdT = Aws::String>
243 void SetRequestId(RequestIdT&& value) {
244 m_requestIdHasBeenSet = true;
245 m_requestId = std::forward<RequestIdT>(value);
246 }
247 template <typename RequestIdT = Aws::String>
248 GetTaskResult& WithRequestId(RequestIdT&& value) {
249 SetRequestId(std::forward<RequestIdT>(value));
250 return *this;
251 }
253 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
254
255 private:
256 Aws::String m_taskId;
257
258 Aws::Utils::DateTime m_createdAt{};
259
260 Aws::String m_createdBy;
261
263
265
266 int m_failureRetryCount{0};
267
268 Aws::Utils::DateTime m_startedAt{};
269
270 Aws::Utils::DateTime m_endedAt{};
271
272 Aws::Utils::DateTime m_updatedAt{};
273
274 Aws::String m_updatedBy;
275
276 Aws::String m_latestSessionActionId;
277
279
280 Aws::String m_requestId;
281 Aws::Http::HttpResponseCode m_HttpResponseCode;
282 bool m_taskIdHasBeenSet = false;
283 bool m_createdAtHasBeenSet = false;
284 bool m_createdByHasBeenSet = false;
285 bool m_runStatusHasBeenSet = false;
286 bool m_targetRunStatusHasBeenSet = false;
287 bool m_failureRetryCountHasBeenSet = false;
288 bool m_startedAtHasBeenSet = false;
289 bool m_endedAtHasBeenSet = false;
290 bool m_updatedAtHasBeenSet = false;
291 bool m_updatedByHasBeenSet = false;
292 bool m_latestSessionActionIdHasBeenSet = false;
293 bool m_parametersHasBeenSet = false;
294 bool m_requestIdHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace deadline
299} // namespace Aws
GetTaskResult & WithLatestSessionActionId(LatestSessionActionIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
GetTaskResult & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
const Aws::String & GetLatestSessionActionId() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetTaskResult & WithTargetRunStatus(TaskTargetRunStatus value)
void SetStartedAt(StartedAtT &&value)
AWS_DEADLINE_API GetTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTargetRunStatus(TaskTargetRunStatus value)
GetTaskResult & WithRunStatus(TaskRunStatus value)
const Aws::String & GetUpdatedBy() const
GetTaskResult & WithUpdatedAt(UpdatedAtT &&value)
void SetCreatedBy(CreatedByT &&value)
GetTaskResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetTaskId() const
GetTaskResult & WithUpdatedBy(UpdatedByT &&value)
void SetParameters(ParametersT &&value)
void SetRunStatus(TaskRunStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetCreatedBy() const
void SetUpdatedBy(UpdatedByT &&value)
AWS_DEADLINE_API GetTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEADLINE_API GetTaskResult()=default
GetTaskResult & WithStartedAt(StartedAtT &&value)
GetTaskResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
TaskRunStatus GetRunStatus() const
GetTaskResult & WithCreatedAt(CreatedAtT &&value)
GetTaskResult & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetEndedAt() const
void SetRequestId(RequestIdT &&value)
void SetLatestSessionActionId(LatestSessionActionIdT &&value)
GetTaskResult & WithFailureRetryCount(int value)
void SetEndedAt(EndedAtT &&value)
GetTaskResult & WithTaskId(TaskIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetTaskResult & WithEndedAt(EndedAtT &&value)
TaskTargetRunStatus GetTargetRunStatus() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue