AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
PipelineExecutionStep.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/CacheHitResult.h>
11#include <aws/sagemaker/model/IterationContext.h>
12#include <aws/sagemaker/model/PipelineExecutionStepMetadata.h>
13#include <aws/sagemaker/model/SelectiveExecutionResult.h>
14#include <aws/sagemaker/model/StepStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
27
34 public:
35 AWS_SAGEMAKER_API PipelineExecutionStep() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetStepName() const { return m_stepName; }
45 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
46 template <typename StepNameT = Aws::String>
47 void SetStepName(StepNameT&& value) {
48 m_stepNameHasBeenSet = true;
49 m_stepName = std::forward<StepNameT>(value);
50 }
51 template <typename StepNameT = Aws::String>
52 PipelineExecutionStep& WithStepName(StepNameT&& value) {
53 SetStepName(std::forward<StepNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetStepDisplayName() const { return m_stepDisplayName; }
63 inline bool StepDisplayNameHasBeenSet() const { return m_stepDisplayNameHasBeenSet; }
64 template <typename StepDisplayNameT = Aws::String>
65 void SetStepDisplayName(StepDisplayNameT&& value) {
66 m_stepDisplayNameHasBeenSet = true;
67 m_stepDisplayName = std::forward<StepDisplayNameT>(value);
68 }
69 template <typename StepDisplayNameT = Aws::String>
70 PipelineExecutionStep& WithStepDisplayName(StepDisplayNameT&& value) {
71 SetStepDisplayName(std::forward<StepDisplayNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetStepDescription() const { return m_stepDescription; }
81 inline bool StepDescriptionHasBeenSet() const { return m_stepDescriptionHasBeenSet; }
82 template <typename StepDescriptionT = Aws::String>
83 void SetStepDescription(StepDescriptionT&& value) {
84 m_stepDescriptionHasBeenSet = true;
85 m_stepDescription = std::forward<StepDescriptionT>(value);
86 }
87 template <typename StepDescriptionT = Aws::String>
88 PipelineExecutionStep& WithStepDescription(StepDescriptionT&& value) {
89 SetStepDescription(std::forward<StepDescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
99 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
100 template <typename StartTimeT = Aws::Utils::DateTime>
101 void SetStartTime(StartTimeT&& value) {
102 m_startTimeHasBeenSet = true;
103 m_startTime = std::forward<StartTimeT>(value);
104 }
105 template <typename StartTimeT = Aws::Utils::DateTime>
107 SetStartTime(std::forward<StartTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
117 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
118 template <typename EndTimeT = Aws::Utils::DateTime>
119 void SetEndTime(EndTimeT&& value) {
120 m_endTimeHasBeenSet = true;
121 m_endTime = std::forward<EndTimeT>(value);
122 }
123 template <typename EndTimeT = Aws::Utils::DateTime>
125 SetEndTime(std::forward<EndTimeT>(value));
126 return *this;
127 }
129
131
134 inline StepStatus GetStepStatus() const { return m_stepStatus; }
135 inline bool StepStatusHasBeenSet() const { return m_stepStatusHasBeenSet; }
136 inline void SetStepStatus(StepStatus value) {
137 m_stepStatusHasBeenSet = true;
138 m_stepStatus = value;
139 }
141 SetStepStatus(value);
142 return *this;
143 }
145
147
150 inline const CacheHitResult& GetCacheHitResult() const { return m_cacheHitResult; }
151 inline bool CacheHitResultHasBeenSet() const { return m_cacheHitResultHasBeenSet; }
152 template <typename CacheHitResultT = CacheHitResult>
153 void SetCacheHitResult(CacheHitResultT&& value) {
154 m_cacheHitResultHasBeenSet = true;
155 m_cacheHitResult = std::forward<CacheHitResultT>(value);
156 }
157 template <typename CacheHitResultT = CacheHitResult>
158 PipelineExecutionStep& WithCacheHitResult(CacheHitResultT&& value) {
159 SetCacheHitResult(std::forward<CacheHitResultT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
170 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
171 template <typename FailureReasonT = Aws::String>
172 void SetFailureReason(FailureReasonT&& value) {
173 m_failureReasonHasBeenSet = true;
174 m_failureReason = std::forward<FailureReasonT>(value);
175 }
176 template <typename FailureReasonT = Aws::String>
177 PipelineExecutionStep& WithFailureReason(FailureReasonT&& value) {
178 SetFailureReason(std::forward<FailureReasonT>(value));
179 return *this;
180 }
182
184
187 inline const PipelineExecutionStepMetadata& GetMetadata() const { return m_metadata; }
188 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
189 template <typename MetadataT = PipelineExecutionStepMetadata>
190 void SetMetadata(MetadataT&& value) {
191 m_metadataHasBeenSet = true;
192 m_metadata = std::forward<MetadataT>(value);
193 }
194 template <typename MetadataT = PipelineExecutionStepMetadata>
196 SetMetadata(std::forward<MetadataT>(value));
197 return *this;
198 }
200
202
207 inline int GetAttemptCount() const { return m_attemptCount; }
208 inline bool AttemptCountHasBeenSet() const { return m_attemptCountHasBeenSet; }
209 inline void SetAttemptCount(int value) {
210 m_attemptCountHasBeenSet = true;
211 m_attemptCount = value;
212 }
214 SetAttemptCount(value);
215 return *this;
216 }
218
220
224 inline const SelectiveExecutionResult& GetSelectiveExecutionResult() const { return m_selectiveExecutionResult; }
225 inline bool SelectiveExecutionResultHasBeenSet() const { return m_selectiveExecutionResultHasBeenSet; }
226 template <typename SelectiveExecutionResultT = SelectiveExecutionResult>
227 void SetSelectiveExecutionResult(SelectiveExecutionResultT&& value) {
228 m_selectiveExecutionResultHasBeenSet = true;
229 m_selectiveExecutionResult = std::forward<SelectiveExecutionResultT>(value);
230 }
231 template <typename SelectiveExecutionResultT = SelectiveExecutionResult>
232 PipelineExecutionStep& WithSelectiveExecutionResult(SelectiveExecutionResultT&& value) {
233 SetSelectiveExecutionResult(std::forward<SelectiveExecutionResultT>(value));
234 return *this;
235 }
237
239
243 inline const IterationContext& GetIterationContext() const { return m_iterationContext; }
244 inline bool IterationContextHasBeenSet() const { return m_iterationContextHasBeenSet; }
245 template <typename IterationContextT = IterationContext>
246 void SetIterationContext(IterationContextT&& value) {
247 m_iterationContextHasBeenSet = true;
248 m_iterationContext = std::forward<IterationContextT>(value);
249 }
250 template <typename IterationContextT = IterationContext>
251 PipelineExecutionStep& WithIterationContext(IterationContextT&& value) {
252 SetIterationContext(std::forward<IterationContextT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_stepName;
258
259 Aws::String m_stepDisplayName;
260
261 Aws::String m_stepDescription;
262
263 Aws::Utils::DateTime m_startTime{};
264
265 Aws::Utils::DateTime m_endTime{};
266
267 StepStatus m_stepStatus{StepStatus::NOT_SET};
268
269 CacheHitResult m_cacheHitResult;
270
271 Aws::String m_failureReason;
272
273 PipelineExecutionStepMetadata m_metadata;
274
275 int m_attemptCount{0};
276
277 SelectiveExecutionResult m_selectiveExecutionResult;
278
279 IterationContext m_iterationContext;
280 bool m_stepNameHasBeenSet = false;
281 bool m_stepDisplayNameHasBeenSet = false;
282 bool m_stepDescriptionHasBeenSet = false;
283 bool m_startTimeHasBeenSet = false;
284 bool m_endTimeHasBeenSet = false;
285 bool m_stepStatusHasBeenSet = false;
286 bool m_cacheHitResultHasBeenSet = false;
287 bool m_failureReasonHasBeenSet = false;
288 bool m_metadataHasBeenSet = false;
289 bool m_attemptCountHasBeenSet = false;
290 bool m_selectiveExecutionResultHasBeenSet = false;
291 bool m_iterationContextHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace SageMaker
296} // namespace Aws
AWS_SAGEMAKER_API PipelineExecutionStep()=default
const SelectiveExecutionResult & GetSelectiveExecutionResult() const
void SetStepDisplayName(StepDisplayNameT &&value)
PipelineExecutionStep & WithCacheHitResult(CacheHitResultT &&value)
PipelineExecutionStep & WithIterationContext(IterationContextT &&value)
PipelineExecutionStep & WithFailureReason(FailureReasonT &&value)
const IterationContext & GetIterationContext() const
PipelineExecutionStep & WithStepName(StepNameT &&value)
PipelineExecutionStep & WithAttemptCount(int value)
PipelineExecutionStep & WithStartTime(StartTimeT &&value)
PipelineExecutionStep & WithStepStatus(StepStatus value)
AWS_SAGEMAKER_API PipelineExecutionStep(Aws::Utils::Json::JsonView jsonValue)
PipelineExecutionStep & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
PipelineExecutionStep & WithMetadata(MetadataT &&value)
void SetIterationContext(IterationContextT &&value)
AWS_SAGEMAKER_API PipelineExecutionStep & operator=(Aws::Utils::Json::JsonView jsonValue)
const PipelineExecutionStepMetadata & GetMetadata() const
void SetSelectiveExecutionResult(SelectiveExecutionResultT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStepDescription(StepDescriptionT &&value)
PipelineExecutionStep & WithSelectiveExecutionResult(SelectiveExecutionResultT &&value)
PipelineExecutionStep & WithStepDisplayName(StepDisplayNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
PipelineExecutionStep & WithStepDescription(StepDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue