AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/PipelineExecutionStepMetadata.h>
12#include <aws/sagemaker/model/SelectiveExecutionResult.h>
13#include <aws/sagemaker/model/StepStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
33 public:
34 AWS_SAGEMAKER_API PipelineExecutionStep() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetStepName() const { return m_stepName; }
44 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
45 template <typename StepNameT = Aws::String>
46 void SetStepName(StepNameT&& value) {
47 m_stepNameHasBeenSet = true;
48 m_stepName = std::forward<StepNameT>(value);
49 }
50 template <typename StepNameT = Aws::String>
51 PipelineExecutionStep& WithStepName(StepNameT&& value) {
52 SetStepName(std::forward<StepNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStepDisplayName() const { return m_stepDisplayName; }
62 inline bool StepDisplayNameHasBeenSet() const { return m_stepDisplayNameHasBeenSet; }
63 template <typename StepDisplayNameT = Aws::String>
64 void SetStepDisplayName(StepDisplayNameT&& value) {
65 m_stepDisplayNameHasBeenSet = true;
66 m_stepDisplayName = std::forward<StepDisplayNameT>(value);
67 }
68 template <typename StepDisplayNameT = Aws::String>
69 PipelineExecutionStep& WithStepDisplayName(StepDisplayNameT&& value) {
70 SetStepDisplayName(std::forward<StepDisplayNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetStepDescription() const { return m_stepDescription; }
80 inline bool StepDescriptionHasBeenSet() const { return m_stepDescriptionHasBeenSet; }
81 template <typename StepDescriptionT = Aws::String>
82 void SetStepDescription(StepDescriptionT&& value) {
83 m_stepDescriptionHasBeenSet = true;
84 m_stepDescription = std::forward<StepDescriptionT>(value);
85 }
86 template <typename StepDescriptionT = Aws::String>
87 PipelineExecutionStep& WithStepDescription(StepDescriptionT&& value) {
88 SetStepDescription(std::forward<StepDescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
98 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
99 template <typename StartTimeT = Aws::Utils::DateTime>
100 void SetStartTime(StartTimeT&& value) {
101 m_startTimeHasBeenSet = true;
102 m_startTime = std::forward<StartTimeT>(value);
103 }
104 template <typename StartTimeT = Aws::Utils::DateTime>
106 SetStartTime(std::forward<StartTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
116 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
117 template <typename EndTimeT = Aws::Utils::DateTime>
118 void SetEndTime(EndTimeT&& value) {
119 m_endTimeHasBeenSet = true;
120 m_endTime = std::forward<EndTimeT>(value);
121 }
122 template <typename EndTimeT = Aws::Utils::DateTime>
124 SetEndTime(std::forward<EndTimeT>(value));
125 return *this;
126 }
128
130
133 inline StepStatus GetStepStatus() const { return m_stepStatus; }
134 inline bool StepStatusHasBeenSet() const { return m_stepStatusHasBeenSet; }
135 inline void SetStepStatus(StepStatus value) {
136 m_stepStatusHasBeenSet = true;
137 m_stepStatus = value;
138 }
140 SetStepStatus(value);
141 return *this;
142 }
144
146
149 inline const CacheHitResult& GetCacheHitResult() const { return m_cacheHitResult; }
150 inline bool CacheHitResultHasBeenSet() const { return m_cacheHitResultHasBeenSet; }
151 template <typename CacheHitResultT = CacheHitResult>
152 void SetCacheHitResult(CacheHitResultT&& value) {
153 m_cacheHitResultHasBeenSet = true;
154 m_cacheHitResult = std::forward<CacheHitResultT>(value);
155 }
156 template <typename CacheHitResultT = CacheHitResult>
157 PipelineExecutionStep& WithCacheHitResult(CacheHitResultT&& value) {
158 SetCacheHitResult(std::forward<CacheHitResultT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
169 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
170 template <typename FailureReasonT = Aws::String>
171 void SetFailureReason(FailureReasonT&& value) {
172 m_failureReasonHasBeenSet = true;
173 m_failureReason = std::forward<FailureReasonT>(value);
174 }
175 template <typename FailureReasonT = Aws::String>
176 PipelineExecutionStep& WithFailureReason(FailureReasonT&& value) {
177 SetFailureReason(std::forward<FailureReasonT>(value));
178 return *this;
179 }
181
183
186 inline const PipelineExecutionStepMetadata& GetMetadata() const { return m_metadata; }
187 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
188 template <typename MetadataT = PipelineExecutionStepMetadata>
189 void SetMetadata(MetadataT&& value) {
190 m_metadataHasBeenSet = true;
191 m_metadata = std::forward<MetadataT>(value);
192 }
193 template <typename MetadataT = PipelineExecutionStepMetadata>
195 SetMetadata(std::forward<MetadataT>(value));
196 return *this;
197 }
199
201
206 inline int GetAttemptCount() const { return m_attemptCount; }
207 inline bool AttemptCountHasBeenSet() const { return m_attemptCountHasBeenSet; }
208 inline void SetAttemptCount(int value) {
209 m_attemptCountHasBeenSet = true;
210 m_attemptCount = value;
211 }
213 SetAttemptCount(value);
214 return *this;
215 }
217
219
223 inline const SelectiveExecutionResult& GetSelectiveExecutionResult() const { return m_selectiveExecutionResult; }
224 inline bool SelectiveExecutionResultHasBeenSet() const { return m_selectiveExecutionResultHasBeenSet; }
225 template <typename SelectiveExecutionResultT = SelectiveExecutionResult>
226 void SetSelectiveExecutionResult(SelectiveExecutionResultT&& value) {
227 m_selectiveExecutionResultHasBeenSet = true;
228 m_selectiveExecutionResult = std::forward<SelectiveExecutionResultT>(value);
229 }
230 template <typename SelectiveExecutionResultT = SelectiveExecutionResult>
231 PipelineExecutionStep& WithSelectiveExecutionResult(SelectiveExecutionResultT&& value) {
232 SetSelectiveExecutionResult(std::forward<SelectiveExecutionResultT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_stepName;
238
239 Aws::String m_stepDisplayName;
240
241 Aws::String m_stepDescription;
242
243 Aws::Utils::DateTime m_startTime{};
244
245 Aws::Utils::DateTime m_endTime{};
246
247 StepStatus m_stepStatus{StepStatus::NOT_SET};
248
249 CacheHitResult m_cacheHitResult;
250
251 Aws::String m_failureReason;
252
253 PipelineExecutionStepMetadata m_metadata;
254
255 int m_attemptCount{0};
256
257 SelectiveExecutionResult m_selectiveExecutionResult;
258 bool m_stepNameHasBeenSet = false;
259 bool m_stepDisplayNameHasBeenSet = false;
260 bool m_stepDescriptionHasBeenSet = false;
261 bool m_startTimeHasBeenSet = false;
262 bool m_endTimeHasBeenSet = false;
263 bool m_stepStatusHasBeenSet = false;
264 bool m_cacheHitResultHasBeenSet = false;
265 bool m_failureReasonHasBeenSet = false;
266 bool m_metadataHasBeenSet = false;
267 bool m_attemptCountHasBeenSet = false;
268 bool m_selectiveExecutionResultHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace SageMaker
273} // namespace Aws
AWS_SAGEMAKER_API PipelineExecutionStep()=default
const SelectiveExecutionResult & GetSelectiveExecutionResult() const
void SetStepDisplayName(StepDisplayNameT &&value)
PipelineExecutionStep & WithCacheHitResult(CacheHitResultT &&value)
PipelineExecutionStep & WithFailureReason(FailureReasonT &&value)
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)
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