AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
GetTaskResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/TaskParameterValue.h>
12#include <aws/deadline/model/TaskRunStatus.h>
13#include <aws/deadline/model/TaskTargetRunStatus.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 deadline {
27namespace Model {
29 public:
30 AWS_DEADLINE_API GetTaskResult() = default;
33
35
38 inline const Aws::String& GetTaskId() const { return m_taskId; }
39 template <typename TaskIdT = Aws::String>
40 void SetTaskId(TaskIdT&& value) {
41 m_taskIdHasBeenSet = true;
42 m_taskId = std::forward<TaskIdT>(value);
43 }
44 template <typename TaskIdT = Aws::String>
45 GetTaskResult& WithTaskId(TaskIdT&& value) {
46 SetTaskId(std::forward<TaskIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template <typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) {
58 m_createdAtHasBeenSet = true;
59 m_createdAt = std::forward<CreatedAtT>(value);
60 }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 GetTaskResult& WithCreatedAt(CreatedAtT&& value) {
63 SetCreatedAt(std::forward<CreatedAtT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
73 template <typename CreatedByT = Aws::String>
74 void SetCreatedBy(CreatedByT&& value) {
75 m_createdByHasBeenSet = true;
76 m_createdBy = std::forward<CreatedByT>(value);
77 }
78 template <typename CreatedByT = Aws::String>
79 GetTaskResult& WithCreatedBy(CreatedByT&& value) {
80 SetCreatedBy(std::forward<CreatedByT>(value));
81 return *this;
82 }
84
86
89 inline TaskRunStatus GetRunStatus() const { return m_runStatus; }
90 inline void SetRunStatus(TaskRunStatus value) {
91 m_runStatusHasBeenSet = true;
92 m_runStatus = value;
93 }
95 SetRunStatus(value);
96 return *this;
97 }
99
101
104 inline TaskTargetRunStatus GetTargetRunStatus() const { return m_targetRunStatus; }
106 m_targetRunStatusHasBeenSet = true;
107 m_targetRunStatus = value;
108 }
110 SetTargetRunStatus(value);
111 return *this;
112 }
114
116
119 inline int GetFailureRetryCount() const { return m_failureRetryCount; }
120 inline void SetFailureRetryCount(int value) {
121 m_failureRetryCountHasBeenSet = true;
122 m_failureRetryCount = value;
123 }
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const { return m_parameters; }
135 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
136 void SetParameters(ParametersT&& value) {
137 m_parametersHasBeenSet = true;
138 m_parameters = std::forward<ParametersT>(value);
139 }
140 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
141 GetTaskResult& WithParameters(ParametersT&& value) {
142 SetParameters(std::forward<ParametersT>(value));
143 return *this;
144 }
145 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TaskParameterValue>
146 GetTaskResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
147 m_parametersHasBeenSet = true;
148 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
158 template <typename StartedAtT = Aws::Utils::DateTime>
159 void SetStartedAt(StartedAtT&& value) {
160 m_startedAtHasBeenSet = true;
161 m_startedAt = std::forward<StartedAtT>(value);
162 }
163 template <typename StartedAtT = Aws::Utils::DateTime>
164 GetTaskResult& WithStartedAt(StartedAtT&& value) {
165 SetStartedAt(std::forward<StartedAtT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
175 template <typename EndedAtT = Aws::Utils::DateTime>
176 void SetEndedAt(EndedAtT&& value) {
177 m_endedAtHasBeenSet = true;
178 m_endedAt = std::forward<EndedAtT>(value);
179 }
180 template <typename EndedAtT = Aws::Utils::DateTime>
181 GetTaskResult& WithEndedAt(EndedAtT&& value) {
182 SetEndedAt(std::forward<EndedAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 void SetUpdatedAt(UpdatedAtT&& value) {
194 m_updatedAtHasBeenSet = true;
195 m_updatedAt = std::forward<UpdatedAtT>(value);
196 }
197 template <typename UpdatedAtT = Aws::Utils::DateTime>
198 GetTaskResult& WithUpdatedAt(UpdatedAtT&& value) {
199 SetUpdatedAt(std::forward<UpdatedAtT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
209 template <typename UpdatedByT = Aws::String>
210 void SetUpdatedBy(UpdatedByT&& value) {
211 m_updatedByHasBeenSet = true;
212 m_updatedBy = std::forward<UpdatedByT>(value);
213 }
214 template <typename UpdatedByT = Aws::String>
215 GetTaskResult& WithUpdatedBy(UpdatedByT&& value) {
216 SetUpdatedBy(std::forward<UpdatedByT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetLatestSessionActionId() const { return m_latestSessionActionId; }
226 template <typename LatestSessionActionIdT = Aws::String>
227 void SetLatestSessionActionId(LatestSessionActionIdT&& value) {
228 m_latestSessionActionIdHasBeenSet = true;
229 m_latestSessionActionId = std::forward<LatestSessionActionIdT>(value);
230 }
231 template <typename LatestSessionActionIdT = Aws::String>
232 GetTaskResult& WithLatestSessionActionId(LatestSessionActionIdT&& value) {
233 SetLatestSessionActionId(std::forward<LatestSessionActionIdT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 template <typename RequestIdT = Aws::String>
242 void SetRequestId(RequestIdT&& value) {
243 m_requestIdHasBeenSet = true;
244 m_requestId = std::forward<RequestIdT>(value);
245 }
246 template <typename RequestIdT = Aws::String>
247 GetTaskResult& WithRequestId(RequestIdT&& value) {
248 SetRequestId(std::forward<RequestIdT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_taskId;
254
255 Aws::Utils::DateTime m_createdAt{};
256
257 Aws::String m_createdBy;
258
260
262
263 int m_failureRetryCount{0};
264
266
267 Aws::Utils::DateTime m_startedAt{};
268
269 Aws::Utils::DateTime m_endedAt{};
270
271 Aws::Utils::DateTime m_updatedAt{};
272
273 Aws::String m_updatedBy;
274
275 Aws::String m_latestSessionActionId;
276
277 Aws::String m_requestId;
278 bool m_taskIdHasBeenSet = false;
279 bool m_createdAtHasBeenSet = false;
280 bool m_createdByHasBeenSet = false;
281 bool m_runStatusHasBeenSet = false;
282 bool m_targetRunStatusHasBeenSet = false;
283 bool m_failureRetryCountHasBeenSet = false;
284 bool m_parametersHasBeenSet = false;
285 bool m_startedAtHasBeenSet = false;
286 bool m_endedAtHasBeenSet = false;
287 bool m_updatedAtHasBeenSet = false;
288 bool m_updatedByHasBeenSet = false;
289 bool m_latestSessionActionIdHasBeenSet = false;
290 bool m_requestIdHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace deadline
295} // 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)
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