AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetStepResult.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/StepLifecycleStatus.h>
10#include <aws/deadline/model/TaskRunStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/deadline/model/StepTargetTaskRunStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/deadline/model/DependencyCounts.h>
15#include <aws/deadline/model/StepRequiredCapabilities.h>
16#include <aws/deadline/model/ParameterSpace.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace deadline
32{
33namespace Model
34{
36 {
37 public:
38 AWS_DEADLINE_API GetStepResult() = default;
41
42
44
47 inline const Aws::String& GetStepId() const { return m_stepId; }
48 template<typename StepIdT = Aws::String>
49 void SetStepId(StepIdT&& value) { m_stepIdHasBeenSet = true; m_stepId = std::forward<StepIdT>(value); }
50 template<typename StepIdT = Aws::String>
51 GetStepResult& WithStepId(StepIdT&& value) { SetStepId(std::forward<StepIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 GetStepResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
70 inline void SetLifecycleStatus(StepLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
73
75
78 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
79 template<typename LifecycleStatusMessageT = Aws::String>
80 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
81 template<typename LifecycleStatusMessageT = Aws::String>
82 GetStepResult& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
84
86
89 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
90 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
91 inline GetStepResult& WithTaskRunStatus(TaskRunStatus value) { SetTaskRunStatus(value); return *this;}
93
95
98 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
99 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
100 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
101 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
102 GetStepResult& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
104 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
105 }
107
109
112 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
113 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
114 inline GetStepResult& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
116
118
121 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
122 inline void SetTargetTaskRunStatus(StepTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
131 template<typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
133 template<typename CreatedAtT = Aws::Utils::DateTime>
134 GetStepResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
136
138
141 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
142 template<typename CreatedByT = Aws::String>
143 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
144 template<typename CreatedByT = Aws::String>
145 GetStepResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
153 template<typename UpdatedAtT = Aws::Utils::DateTime>
154 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
155 template<typename UpdatedAtT = Aws::Utils::DateTime>
156 GetStepResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
158
160
163 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
164 template<typename UpdatedByT = Aws::String>
165 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
166 template<typename UpdatedByT = Aws::String>
167 GetStepResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
169
171
174 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
175 template<typename StartedAtT = Aws::Utils::DateTime>
176 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
177 template<typename StartedAtT = Aws::Utils::DateTime>
178 GetStepResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
180
182
185 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
186 template<typename EndedAtT = Aws::Utils::DateTime>
187 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
188 template<typename EndedAtT = Aws::Utils::DateTime>
189 GetStepResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
191
193
196 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
197 template<typename DependencyCountsT = DependencyCounts>
198 void SetDependencyCounts(DependencyCountsT&& value) { m_dependencyCountsHasBeenSet = true; m_dependencyCounts = std::forward<DependencyCountsT>(value); }
199 template<typename DependencyCountsT = DependencyCounts>
200 GetStepResult& WithDependencyCounts(DependencyCountsT&& value) { SetDependencyCounts(std::forward<DependencyCountsT>(value)); return *this;}
202
204
207 inline const StepRequiredCapabilities& GetRequiredCapabilities() const { return m_requiredCapabilities; }
208 template<typename RequiredCapabilitiesT = StepRequiredCapabilities>
209 void SetRequiredCapabilities(RequiredCapabilitiesT&& value) { m_requiredCapabilitiesHasBeenSet = true; m_requiredCapabilities = std::forward<RequiredCapabilitiesT>(value); }
210 template<typename RequiredCapabilitiesT = StepRequiredCapabilities>
211 GetStepResult& WithRequiredCapabilities(RequiredCapabilitiesT&& value) { SetRequiredCapabilities(std::forward<RequiredCapabilitiesT>(value)); return *this;}
213
215
218 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
219 template<typename ParameterSpaceT = ParameterSpace>
220 void SetParameterSpace(ParameterSpaceT&& value) { m_parameterSpaceHasBeenSet = true; m_parameterSpace = std::forward<ParameterSpaceT>(value); }
221 template<typename ParameterSpaceT = ParameterSpace>
222 GetStepResult& WithParameterSpace(ParameterSpaceT&& value) { SetParameterSpace(std::forward<ParameterSpaceT>(value)); return *this;}
224
226
231 inline const Aws::String& GetDescription() const { return m_description; }
232 template<typename DescriptionT = Aws::String>
233 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
234 template<typename DescriptionT = Aws::String>
235 GetStepResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
237
239
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 template<typename RequestIdT = Aws::String>
242 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
243 template<typename RequestIdT = Aws::String>
244 GetStepResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
246 private:
247
248 Aws::String m_stepId;
249 bool m_stepIdHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
255 bool m_lifecycleStatusHasBeenSet = false;
256
257 Aws::String m_lifecycleStatusMessage;
258 bool m_lifecycleStatusMessageHasBeenSet = false;
259
260 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
261 bool m_taskRunStatusHasBeenSet = false;
262
263 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
264 bool m_taskRunStatusCountsHasBeenSet = false;
265
266 int m_taskFailureRetryCount{0};
267 bool m_taskFailureRetryCountHasBeenSet = false;
268
270 bool m_targetTaskRunStatusHasBeenSet = false;
271
272 Aws::Utils::DateTime m_createdAt{};
273 bool m_createdAtHasBeenSet = false;
274
275 Aws::String m_createdBy;
276 bool m_createdByHasBeenSet = false;
277
278 Aws::Utils::DateTime m_updatedAt{};
279 bool m_updatedAtHasBeenSet = false;
280
281 Aws::String m_updatedBy;
282 bool m_updatedByHasBeenSet = false;
283
284 Aws::Utils::DateTime m_startedAt{};
285 bool m_startedAtHasBeenSet = false;
286
287 Aws::Utils::DateTime m_endedAt{};
288 bool m_endedAtHasBeenSet = false;
289
290 DependencyCounts m_dependencyCounts;
291 bool m_dependencyCountsHasBeenSet = false;
292
293 StepRequiredCapabilities m_requiredCapabilities;
294 bool m_requiredCapabilitiesHasBeenSet = false;
295
296 ParameterSpace m_parameterSpace;
297 bool m_parameterSpaceHasBeenSet = false;
298
299 Aws::String m_description;
300 bool m_descriptionHasBeenSet = false;
301
302 Aws::String m_requestId;
303 bool m_requestIdHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace deadline
308} // namespace Aws
GetStepResult & WithDependencyCounts(DependencyCountsT &&value)
GetStepResult & WithCreatedBy(CreatedByT &&value)
const ParameterSpace & GetParameterSpace() const
GetStepResult & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
StepLifecycleStatus GetLifecycleStatus() const
const StepRequiredCapabilities & GetRequiredCapabilities() const
void SetCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API GetStepResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEADLINE_API GetStepResult()=default
GetStepResult & WithUpdatedBy(UpdatedByT &&value)
GetStepResult & WithRequiredCapabilities(RequiredCapabilitiesT &&value)
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetRequiredCapabilities(RequiredCapabilitiesT &&value)
const DependencyCounts & GetDependencyCounts() const
const Aws::String & GetUpdatedBy() const
const Aws::String & GetDescription() const
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
void SetCreatedAt(CreatedAtT &&value)
GetStepResult & WithDescription(DescriptionT &&value)
GetStepResult & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUpdatedBy(UpdatedByT &&value)
GetStepResult & WithLifecycleStatus(StepLifecycleStatus value)
void SetDependencyCounts(DependencyCountsT &&value)
GetStepResult & WithEndedAt(EndedAtT &&value)
GetStepResult & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
GetStepResult & WithStepId(StepIdT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
void SetLifecycleStatus(StepLifecycleStatus value)
void SetTaskRunStatus(TaskRunStatus value)
const Aws::String & GetRequestId() const
TaskRunStatus GetTaskRunStatus() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetLifecycleStatusMessage() const
GetStepResult & WithRequestId(RequestIdT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
GetStepResult & WithName(NameT &&value)
void SetParameterSpace(ParameterSpaceT &&value)
GetStepResult & WithStartedAt(StartedAtT &&value)
void SetDescription(DescriptionT &&value)
void SetStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetStepResult & WithTaskFailureRetryCount(int value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetEndedAt(EndedAtT &&value)
GetStepResult & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetRequestId(RequestIdT &&value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
GetStepResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetStepId() const
AWS_DEADLINE_API GetStepResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetName() const
GetStepResult & WithCreatedAt(CreatedAtT &&value)
GetStepResult & WithParameterSpace(ParameterSpaceT &&value)
GetStepResult & AddTaskRunStatusCounts(TaskRunStatus key, int value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
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