AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AlgorithmSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/MetricDefinition.h>
11#include <aws/sagemaker/model/TrainingImageConfig.h>
12#include <aws/sagemaker/model/TrainingInputMode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
44 public:
45 AWS_SAGEMAKER_API AlgorithmSpecification() = default;
48 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
67 inline const Aws::String& GetTrainingImage() const { return m_trainingImage; }
68 inline bool TrainingImageHasBeenSet() const { return m_trainingImageHasBeenSet; }
69 template <typename TrainingImageT = Aws::String>
70 void SetTrainingImage(TrainingImageT&& value) {
71 m_trainingImageHasBeenSet = true;
72 m_trainingImage = std::forward<TrainingImageT>(value);
73 }
74 template <typename TrainingImageT = Aws::String>
75 AlgorithmSpecification& WithTrainingImage(TrainingImageT&& value) {
76 SetTrainingImage(std::forward<TrainingImageT>(value));
77 return *this;
78 }
80
82
96 inline const Aws::String& GetAlgorithmName() const { return m_algorithmName; }
97 inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
98 template <typename AlgorithmNameT = Aws::String>
99 void SetAlgorithmName(AlgorithmNameT&& value) {
100 m_algorithmNameHasBeenSet = true;
101 m_algorithmName = std::forward<AlgorithmNameT>(value);
102 }
103 template <typename AlgorithmNameT = Aws::String>
104 AlgorithmSpecification& WithAlgorithmName(AlgorithmNameT&& value) {
105 SetAlgorithmName(std::forward<AlgorithmNameT>(value));
106 return *this;
107 }
109
111
112 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
113 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
115 m_trainingInputModeHasBeenSet = true;
116 m_trainingInputMode = value;
117 }
120 return *this;
121 }
123
125
130 inline const Aws::Vector<MetricDefinition>& GetMetricDefinitions() const { return m_metricDefinitions; }
131 inline bool MetricDefinitionsHasBeenSet() const { return m_metricDefinitionsHasBeenSet; }
132 template <typename MetricDefinitionsT = Aws::Vector<MetricDefinition>>
133 void SetMetricDefinitions(MetricDefinitionsT&& value) {
134 m_metricDefinitionsHasBeenSet = true;
135 m_metricDefinitions = std::forward<MetricDefinitionsT>(value);
136 }
137 template <typename MetricDefinitionsT = Aws::Vector<MetricDefinition>>
138 AlgorithmSpecification& WithMetricDefinitions(MetricDefinitionsT&& value) {
139 SetMetricDefinitions(std::forward<MetricDefinitionsT>(value));
140 return *this;
141 }
142 template <typename MetricDefinitionsT = MetricDefinition>
143 AlgorithmSpecification& AddMetricDefinitions(MetricDefinitionsT&& value) {
144 m_metricDefinitionsHasBeenSet = true;
145 m_metricDefinitions.emplace_back(std::forward<MetricDefinitionsT>(value));
146 return *this;
147 }
149
151
164 inline bool GetEnableSageMakerMetricsTimeSeries() const { return m_enableSageMakerMetricsTimeSeries; }
165 inline bool EnableSageMakerMetricsTimeSeriesHasBeenSet() const { return m_enableSageMakerMetricsTimeSeriesHasBeenSet; }
166 inline void SetEnableSageMakerMetricsTimeSeries(bool value) {
167 m_enableSageMakerMetricsTimeSeriesHasBeenSet = true;
168 m_enableSageMakerMetricsTimeSeries = value;
169 }
172 return *this;
173 }
175
177
184 inline const Aws::Vector<Aws::String>& GetContainerEntrypoint() const { return m_containerEntrypoint; }
185 inline bool ContainerEntrypointHasBeenSet() const { return m_containerEntrypointHasBeenSet; }
186 template <typename ContainerEntrypointT = Aws::Vector<Aws::String>>
187 void SetContainerEntrypoint(ContainerEntrypointT&& value) {
188 m_containerEntrypointHasBeenSet = true;
189 m_containerEntrypoint = std::forward<ContainerEntrypointT>(value);
190 }
191 template <typename ContainerEntrypointT = Aws::Vector<Aws::String>>
192 AlgorithmSpecification& WithContainerEntrypoint(ContainerEntrypointT&& value) {
193 SetContainerEntrypoint(std::forward<ContainerEntrypointT>(value));
194 return *this;
195 }
196 template <typename ContainerEntrypointT = Aws::String>
197 AlgorithmSpecification& AddContainerEntrypoint(ContainerEntrypointT&& value) {
198 m_containerEntrypointHasBeenSet = true;
199 m_containerEntrypoint.emplace_back(std::forward<ContainerEntrypointT>(value));
200 return *this;
201 }
203
205
210 inline const Aws::Vector<Aws::String>& GetContainerArguments() const { return m_containerArguments; }
211 inline bool ContainerArgumentsHasBeenSet() const { return m_containerArgumentsHasBeenSet; }
212 template <typename ContainerArgumentsT = Aws::Vector<Aws::String>>
213 void SetContainerArguments(ContainerArgumentsT&& value) {
214 m_containerArgumentsHasBeenSet = true;
215 m_containerArguments = std::forward<ContainerArgumentsT>(value);
216 }
217 template <typename ContainerArgumentsT = Aws::Vector<Aws::String>>
218 AlgorithmSpecification& WithContainerArguments(ContainerArgumentsT&& value) {
219 SetContainerArguments(std::forward<ContainerArgumentsT>(value));
220 return *this;
221 }
222 template <typename ContainerArgumentsT = Aws::String>
223 AlgorithmSpecification& AddContainerArguments(ContainerArgumentsT&& value) {
224 m_containerArgumentsHasBeenSet = true;
225 m_containerArguments.emplace_back(std::forward<ContainerArgumentsT>(value));
226 return *this;
227 }
229
231
235 inline const TrainingImageConfig& GetTrainingImageConfig() const { return m_trainingImageConfig; }
236 inline bool TrainingImageConfigHasBeenSet() const { return m_trainingImageConfigHasBeenSet; }
237 template <typename TrainingImageConfigT = TrainingImageConfig>
238 void SetTrainingImageConfig(TrainingImageConfigT&& value) {
239 m_trainingImageConfigHasBeenSet = true;
240 m_trainingImageConfig = std::forward<TrainingImageConfigT>(value);
241 }
242 template <typename TrainingImageConfigT = TrainingImageConfig>
243 AlgorithmSpecification& WithTrainingImageConfig(TrainingImageConfigT&& value) {
244 SetTrainingImageConfig(std::forward<TrainingImageConfigT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_trainingImage;
250
251 Aws::String m_algorithmName;
252
254
255 Aws::Vector<MetricDefinition> m_metricDefinitions;
256
257 bool m_enableSageMakerMetricsTimeSeries{false};
258
259 Aws::Vector<Aws::String> m_containerEntrypoint;
260
261 Aws::Vector<Aws::String> m_containerArguments;
262
263 TrainingImageConfig m_trainingImageConfig;
264 bool m_trainingImageHasBeenSet = false;
265 bool m_algorithmNameHasBeenSet = false;
266 bool m_trainingInputModeHasBeenSet = false;
267 bool m_metricDefinitionsHasBeenSet = false;
268 bool m_enableSageMakerMetricsTimeSeriesHasBeenSet = false;
269 bool m_containerEntrypointHasBeenSet = false;
270 bool m_containerArgumentsHasBeenSet = false;
271 bool m_trainingImageConfigHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace SageMaker
276} // namespace Aws
void SetContainerArguments(ContainerArgumentsT &&value)
const Aws::Vector< Aws::String > & GetContainerArguments() const
AlgorithmSpecification & WithTrainingImage(TrainingImageT &&value)
const Aws::Vector< MetricDefinition > & GetMetricDefinitions() const
AlgorithmSpecification & AddContainerEntrypoint(ContainerEntrypointT &&value)
const TrainingImageConfig & GetTrainingImageConfig() const
void SetContainerEntrypoint(ContainerEntrypointT &&value)
const Aws::Vector< Aws::String > & GetContainerEntrypoint() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AlgorithmSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API AlgorithmSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AlgorithmSpecification & AddMetricDefinitions(MetricDefinitionsT &&value)
AWS_SAGEMAKER_API AlgorithmSpecification()=default
AlgorithmSpecification & WithContainerArguments(ContainerArgumentsT &&value)
AlgorithmSpecification & WithContainerEntrypoint(ContainerEntrypointT &&value)
AlgorithmSpecification & WithMetricDefinitions(MetricDefinitionsT &&value)
AlgorithmSpecification & WithTrainingImageConfig(TrainingImageConfigT &&value)
AlgorithmSpecification & WithEnableSageMakerMetricsTimeSeries(bool value)
void SetMetricDefinitions(MetricDefinitionsT &&value)
AlgorithmSpecification & AddContainerArguments(ContainerArgumentsT &&value)
void SetTrainingImageConfig(TrainingImageConfigT &&value)
AlgorithmSpecification & WithAlgorithmName(AlgorithmNameT &&value)
AlgorithmSpecification & WithTrainingInputMode(TrainingInputMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue