AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PipelineExecutionStep.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker/model/StepStatus.h>
11#include <aws/sagemaker/model/CacheHitResult.h>
12#include <aws/sagemaker/model/PipelineExecutionStepMetadata.h>
13#include <aws/sagemaker/model/SelectiveExecutionResult.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_SAGEMAKER_API PipelineExecutionStep() = default;
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetStepName() const { return m_stepName; }
50 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
51 template<typename StepNameT = Aws::String>
52 void SetStepName(StepNameT&& value) { m_stepNameHasBeenSet = true; m_stepName = std::forward<StepNameT>(value); }
53 template<typename StepNameT = Aws::String>
54 PipelineExecutionStep& WithStepName(StepNameT&& value) { SetStepName(std::forward<StepNameT>(value)); return *this;}
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) { m_stepDisplayNameHasBeenSet = true; m_stepDisplayName = std::forward<StepDisplayNameT>(value); }
65 template<typename StepDisplayNameT = Aws::String>
66 PipelineExecutionStep& WithStepDisplayName(StepDisplayNameT&& value) { SetStepDisplayName(std::forward<StepDisplayNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetStepDescription() const { return m_stepDescription; }
74 inline bool StepDescriptionHasBeenSet() const { return m_stepDescriptionHasBeenSet; }
75 template<typename StepDescriptionT = Aws::String>
76 void SetStepDescription(StepDescriptionT&& value) { m_stepDescriptionHasBeenSet = true; m_stepDescription = std::forward<StepDescriptionT>(value); }
77 template<typename StepDescriptionT = Aws::String>
78 PipelineExecutionStep& WithStepDescription(StepDescriptionT&& value) { SetStepDescription(std::forward<StepDescriptionT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 PipelineExecutionStep& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template<typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
101 template<typename EndTimeT = Aws::Utils::DateTime>
102 PipelineExecutionStep& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
104
106
109 inline StepStatus GetStepStatus() const { return m_stepStatus; }
110 inline bool StepStatusHasBeenSet() const { return m_stepStatusHasBeenSet; }
111 inline void SetStepStatus(StepStatus value) { m_stepStatusHasBeenSet = true; m_stepStatus = value; }
112 inline PipelineExecutionStep& WithStepStatus(StepStatus value) { SetStepStatus(value); return *this;}
114
116
119 inline const CacheHitResult& GetCacheHitResult() const { return m_cacheHitResult; }
120 inline bool CacheHitResultHasBeenSet() const { return m_cacheHitResultHasBeenSet; }
121 template<typename CacheHitResultT = CacheHitResult>
122 void SetCacheHitResult(CacheHitResultT&& value) { m_cacheHitResultHasBeenSet = true; m_cacheHitResult = std::forward<CacheHitResultT>(value); }
123 template<typename CacheHitResultT = CacheHitResult>
124 PipelineExecutionStep& WithCacheHitResult(CacheHitResultT&& value) { SetCacheHitResult(std::forward<CacheHitResultT>(value)); return *this;}
126
128
132 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
133 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
134 template<typename FailureReasonT = Aws::String>
135 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
136 template<typename FailureReasonT = Aws::String>
137 PipelineExecutionStep& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
139
141
144 inline const PipelineExecutionStepMetadata& GetMetadata() const { return m_metadata; }
145 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
146 template<typename MetadataT = PipelineExecutionStepMetadata>
147 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
148 template<typename MetadataT = PipelineExecutionStepMetadata>
149 PipelineExecutionStep& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
151
153
158 inline int GetAttemptCount() const { return m_attemptCount; }
159 inline bool AttemptCountHasBeenSet() const { return m_attemptCountHasBeenSet; }
160 inline void SetAttemptCount(int value) { m_attemptCountHasBeenSet = true; m_attemptCount = value; }
161 inline PipelineExecutionStep& WithAttemptCount(int value) { SetAttemptCount(value); return *this;}
163
165
169 inline const SelectiveExecutionResult& GetSelectiveExecutionResult() const { return m_selectiveExecutionResult; }
170 inline bool SelectiveExecutionResultHasBeenSet() const { return m_selectiveExecutionResultHasBeenSet; }
171 template<typename SelectiveExecutionResultT = SelectiveExecutionResult>
172 void SetSelectiveExecutionResult(SelectiveExecutionResultT&& value) { m_selectiveExecutionResultHasBeenSet = true; m_selectiveExecutionResult = std::forward<SelectiveExecutionResultT>(value); }
173 template<typename SelectiveExecutionResultT = SelectiveExecutionResult>
174 PipelineExecutionStep& WithSelectiveExecutionResult(SelectiveExecutionResultT&& value) { SetSelectiveExecutionResult(std::forward<SelectiveExecutionResultT>(value)); return *this;}
176 private:
177
178 Aws::String m_stepName;
179 bool m_stepNameHasBeenSet = false;
180
181 Aws::String m_stepDisplayName;
182 bool m_stepDisplayNameHasBeenSet = false;
183
184 Aws::String m_stepDescription;
185 bool m_stepDescriptionHasBeenSet = false;
186
187 Aws::Utils::DateTime m_startTime{};
188 bool m_startTimeHasBeenSet = false;
189
190 Aws::Utils::DateTime m_endTime{};
191 bool m_endTimeHasBeenSet = false;
192
193 StepStatus m_stepStatus{StepStatus::NOT_SET};
194 bool m_stepStatusHasBeenSet = false;
195
196 CacheHitResult m_cacheHitResult;
197 bool m_cacheHitResultHasBeenSet = false;
198
199 Aws::String m_failureReason;
200 bool m_failureReasonHasBeenSet = false;
201
202 PipelineExecutionStepMetadata m_metadata;
203 bool m_metadataHasBeenSet = false;
204
205 int m_attemptCount{0};
206 bool m_attemptCountHasBeenSet = false;
207
208 SelectiveExecutionResult m_selectiveExecutionResult;
209 bool m_selectiveExecutionResultHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace SageMaker
214} // 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