AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrainingSpecification.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/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/AdditionalS3DataSource.h>
11#include <aws/sagemaker/model/HyperParameterSpecification.h>
12#include <aws/sagemaker/model/TrainingInstanceType.h>
13#include <aws/sagemaker/model/MetricDefinition.h>
14#include <aws/sagemaker/model/ChannelSpecification.h>
15#include <aws/sagemaker/model/HyperParameterTuningJobObjective.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SAGEMAKER_API TrainingSpecification();
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetTrainingImage() const{ return m_trainingImage; }
54 inline bool TrainingImageHasBeenSet() const { return m_trainingImageHasBeenSet; }
55 inline void SetTrainingImage(const Aws::String& value) { m_trainingImageHasBeenSet = true; m_trainingImage = value; }
56 inline void SetTrainingImage(Aws::String&& value) { m_trainingImageHasBeenSet = true; m_trainingImage = std::move(value); }
57 inline void SetTrainingImage(const char* value) { m_trainingImageHasBeenSet = true; m_trainingImage.assign(value); }
58 inline TrainingSpecification& WithTrainingImage(const Aws::String& value) { SetTrainingImage(value); return *this;}
59 inline TrainingSpecification& WithTrainingImage(Aws::String&& value) { SetTrainingImage(std::move(value)); return *this;}
60 inline TrainingSpecification& WithTrainingImage(const char* value) { SetTrainingImage(value); return *this;}
62
64
68 inline const Aws::String& GetTrainingImageDigest() const{ return m_trainingImageDigest; }
69 inline bool TrainingImageDigestHasBeenSet() const { return m_trainingImageDigestHasBeenSet; }
70 inline void SetTrainingImageDigest(const Aws::String& value) { m_trainingImageDigestHasBeenSet = true; m_trainingImageDigest = value; }
71 inline void SetTrainingImageDigest(Aws::String&& value) { m_trainingImageDigestHasBeenSet = true; m_trainingImageDigest = std::move(value); }
72 inline void SetTrainingImageDigest(const char* value) { m_trainingImageDigestHasBeenSet = true; m_trainingImageDigest.assign(value); }
74 inline TrainingSpecification& WithTrainingImageDigest(Aws::String&& value) { SetTrainingImageDigest(std::move(value)); return *this;}
75 inline TrainingSpecification& WithTrainingImageDigest(const char* value) { SetTrainingImageDigest(value); return *this;}
77
79
84 inline const Aws::Vector<HyperParameterSpecification>& GetSupportedHyperParameters() const{ return m_supportedHyperParameters; }
85 inline bool SupportedHyperParametersHasBeenSet() const { return m_supportedHyperParametersHasBeenSet; }
86 inline void SetSupportedHyperParameters(const Aws::Vector<HyperParameterSpecification>& value) { m_supportedHyperParametersHasBeenSet = true; m_supportedHyperParameters = value; }
87 inline void SetSupportedHyperParameters(Aws::Vector<HyperParameterSpecification>&& value) { m_supportedHyperParametersHasBeenSet = true; m_supportedHyperParameters = std::move(value); }
90 inline TrainingSpecification& AddSupportedHyperParameters(const HyperParameterSpecification& value) { m_supportedHyperParametersHasBeenSet = true; m_supportedHyperParameters.push_back(value); return *this; }
91 inline TrainingSpecification& AddSupportedHyperParameters(HyperParameterSpecification&& value) { m_supportedHyperParametersHasBeenSet = true; m_supportedHyperParameters.push_back(std::move(value)); return *this; }
93
95
98 inline const Aws::Vector<TrainingInstanceType>& GetSupportedTrainingInstanceTypes() const{ return m_supportedTrainingInstanceTypes; }
99 inline bool SupportedTrainingInstanceTypesHasBeenSet() const { return m_supportedTrainingInstanceTypesHasBeenSet; }
100 inline void SetSupportedTrainingInstanceTypes(const Aws::Vector<TrainingInstanceType>& value) { m_supportedTrainingInstanceTypesHasBeenSet = true; m_supportedTrainingInstanceTypes = value; }
101 inline void SetSupportedTrainingInstanceTypes(Aws::Vector<TrainingInstanceType>&& value) { m_supportedTrainingInstanceTypesHasBeenSet = true; m_supportedTrainingInstanceTypes = std::move(value); }
104 inline TrainingSpecification& AddSupportedTrainingInstanceTypes(const TrainingInstanceType& value) { m_supportedTrainingInstanceTypesHasBeenSet = true; m_supportedTrainingInstanceTypes.push_back(value); return *this; }
105 inline TrainingSpecification& AddSupportedTrainingInstanceTypes(TrainingInstanceType&& value) { m_supportedTrainingInstanceTypesHasBeenSet = true; m_supportedTrainingInstanceTypes.push_back(std::move(value)); return *this; }
107
109
113 inline bool GetSupportsDistributedTraining() const{ return m_supportsDistributedTraining; }
114 inline bool SupportsDistributedTrainingHasBeenSet() const { return m_supportsDistributedTrainingHasBeenSet; }
115 inline void SetSupportsDistributedTraining(bool value) { m_supportsDistributedTrainingHasBeenSet = true; m_supportsDistributedTraining = value; }
118
120
124 inline const Aws::Vector<MetricDefinition>& GetMetricDefinitions() const{ return m_metricDefinitions; }
125 inline bool MetricDefinitionsHasBeenSet() const { return m_metricDefinitionsHasBeenSet; }
126 inline void SetMetricDefinitions(const Aws::Vector<MetricDefinition>& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = value; }
127 inline void SetMetricDefinitions(Aws::Vector<MetricDefinition>&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = std::move(value); }
130 inline TrainingSpecification& AddMetricDefinitions(const MetricDefinition& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(value); return *this; }
131 inline TrainingSpecification& AddMetricDefinitions(MetricDefinition&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(std::move(value)); return *this; }
133
135
139 inline const Aws::Vector<ChannelSpecification>& GetTrainingChannels() const{ return m_trainingChannels; }
140 inline bool TrainingChannelsHasBeenSet() const { return m_trainingChannelsHasBeenSet; }
141 inline void SetTrainingChannels(const Aws::Vector<ChannelSpecification>& value) { m_trainingChannelsHasBeenSet = true; m_trainingChannels = value; }
142 inline void SetTrainingChannels(Aws::Vector<ChannelSpecification>&& value) { m_trainingChannelsHasBeenSet = true; m_trainingChannels = std::move(value); }
145 inline TrainingSpecification& AddTrainingChannels(const ChannelSpecification& value) { m_trainingChannelsHasBeenSet = true; m_trainingChannels.push_back(value); return *this; }
146 inline TrainingSpecification& AddTrainingChannels(ChannelSpecification&& value) { m_trainingChannelsHasBeenSet = true; m_trainingChannels.push_back(std::move(value)); return *this; }
148
150
154 inline const Aws::Vector<HyperParameterTuningJobObjective>& GetSupportedTuningJobObjectiveMetrics() const{ return m_supportedTuningJobObjectiveMetrics; }
155 inline bool SupportedTuningJobObjectiveMetricsHasBeenSet() const { return m_supportedTuningJobObjectiveMetricsHasBeenSet; }
156 inline void SetSupportedTuningJobObjectiveMetrics(const Aws::Vector<HyperParameterTuningJobObjective>& value) { m_supportedTuningJobObjectiveMetricsHasBeenSet = true; m_supportedTuningJobObjectiveMetrics = value; }
157 inline void SetSupportedTuningJobObjectiveMetrics(Aws::Vector<HyperParameterTuningJobObjective>&& value) { m_supportedTuningJobObjectiveMetricsHasBeenSet = true; m_supportedTuningJobObjectiveMetrics = std::move(value); }
160 inline TrainingSpecification& AddSupportedTuningJobObjectiveMetrics(const HyperParameterTuningJobObjective& value) { m_supportedTuningJobObjectiveMetricsHasBeenSet = true; m_supportedTuningJobObjectiveMetrics.push_back(value); return *this; }
161 inline TrainingSpecification& AddSupportedTuningJobObjectiveMetrics(HyperParameterTuningJobObjective&& value) { m_supportedTuningJobObjectiveMetricsHasBeenSet = true; m_supportedTuningJobObjectiveMetrics.push_back(std::move(value)); return *this; }
163
165
168 inline const AdditionalS3DataSource& GetAdditionalS3DataSource() const{ return m_additionalS3DataSource; }
169 inline bool AdditionalS3DataSourceHasBeenSet() const { return m_additionalS3DataSourceHasBeenSet; }
170 inline void SetAdditionalS3DataSource(const AdditionalS3DataSource& value) { m_additionalS3DataSourceHasBeenSet = true; m_additionalS3DataSource = value; }
171 inline void SetAdditionalS3DataSource(AdditionalS3DataSource&& value) { m_additionalS3DataSourceHasBeenSet = true; m_additionalS3DataSource = std::move(value); }
175 private:
176
177 Aws::String m_trainingImage;
178 bool m_trainingImageHasBeenSet = false;
179
180 Aws::String m_trainingImageDigest;
181 bool m_trainingImageDigestHasBeenSet = false;
182
183 Aws::Vector<HyperParameterSpecification> m_supportedHyperParameters;
184 bool m_supportedHyperParametersHasBeenSet = false;
185
186 Aws::Vector<TrainingInstanceType> m_supportedTrainingInstanceTypes;
187 bool m_supportedTrainingInstanceTypesHasBeenSet = false;
188
189 bool m_supportsDistributedTraining;
190 bool m_supportsDistributedTrainingHasBeenSet = false;
191
192 Aws::Vector<MetricDefinition> m_metricDefinitions;
193 bool m_metricDefinitionsHasBeenSet = false;
194
195 Aws::Vector<ChannelSpecification> m_trainingChannels;
196 bool m_trainingChannelsHasBeenSet = false;
197
198 Aws::Vector<HyperParameterTuningJobObjective> m_supportedTuningJobObjectiveMetrics;
199 bool m_supportedTuningJobObjectiveMetricsHasBeenSet = false;
200
201 AdditionalS3DataSource m_additionalS3DataSource;
202 bool m_additionalS3DataSourceHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace SageMaker
207} // namespace Aws
TrainingSpecification & WithAdditionalS3DataSource(AdditionalS3DataSource &&value)
TrainingSpecification & AddMetricDefinitions(MetricDefinition &&value)
TrainingSpecification & AddTrainingChannels(ChannelSpecification &&value)
void SetSupportedTrainingInstanceTypes(const Aws::Vector< TrainingInstanceType > &value)
TrainingSpecification & WithTrainingChannels(const Aws::Vector< ChannelSpecification > &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingSpecification & WithTrainingImageDigest(const char *value)
TrainingSpecification & WithSupportedHyperParameters(Aws::Vector< HyperParameterSpecification > &&value)
TrainingSpecification & WithTrainingImageDigest(const Aws::String &value)
const Aws::Vector< TrainingInstanceType > & GetSupportedTrainingInstanceTypes() const
TrainingSpecification & WithTrainingImage(const char *value)
TrainingSpecification & AddSupportedHyperParameters(HyperParameterSpecification &&value)
TrainingSpecification & WithAdditionalS3DataSource(const AdditionalS3DataSource &value)
AWS_SAGEMAKER_API TrainingSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingSpecification & AddSupportedTrainingInstanceTypes(TrainingInstanceType &&value)
TrainingSpecification & WithTrainingChannels(Aws::Vector< ChannelSpecification > &&value)
TrainingSpecification & AddSupportedHyperParameters(const HyperParameterSpecification &value)
void SetTrainingChannels(Aws::Vector< ChannelSpecification > &&value)
void SetAdditionalS3DataSource(const AdditionalS3DataSource &value)
TrainingSpecification & AddMetricDefinitions(const MetricDefinition &value)
const Aws::Vector< MetricDefinition > & GetMetricDefinitions() const
TrainingSpecification & WithSupportedTrainingInstanceTypes(const Aws::Vector< TrainingInstanceType > &value)
const AdditionalS3DataSource & GetAdditionalS3DataSource() const
void SetSupportedTuningJobObjectiveMetrics(Aws::Vector< HyperParameterTuningJobObjective > &&value)
TrainingSpecification & WithSupportsDistributedTraining(bool value)
const Aws::Vector< HyperParameterTuningJobObjective > & GetSupportedTuningJobObjectiveMetrics() const
const Aws::Vector< HyperParameterSpecification > & GetSupportedHyperParameters() const
TrainingSpecification & WithSupportedTrainingInstanceTypes(Aws::Vector< TrainingInstanceType > &&value)
void SetSupportedTrainingInstanceTypes(Aws::Vector< TrainingInstanceType > &&value)
void SetTrainingImageDigest(const Aws::String &value)
TrainingSpecification & WithTrainingImageDigest(Aws::String &&value)
void SetMetricDefinitions(Aws::Vector< MetricDefinition > &&value)
AWS_SAGEMAKER_API TrainingSpecification(Aws::Utils::Json::JsonView jsonValue)
TrainingSpecification & WithMetricDefinitions(const Aws::Vector< MetricDefinition > &value)
TrainingSpecification & AddSupportedTuningJobObjectiveMetrics(HyperParameterTuningJobObjective &&value)
void SetSupportedTuningJobObjectiveMetrics(const Aws::Vector< HyperParameterTuningJobObjective > &value)
TrainingSpecification & WithSupportedHyperParameters(const Aws::Vector< HyperParameterSpecification > &value)
void SetTrainingChannels(const Aws::Vector< ChannelSpecification > &value)
TrainingSpecification & AddTrainingChannels(const ChannelSpecification &value)
TrainingSpecification & WithTrainingImage(const Aws::String &value)
void SetMetricDefinitions(const Aws::Vector< MetricDefinition > &value)
TrainingSpecification & WithSupportedTuningJobObjectiveMetrics(const Aws::Vector< HyperParameterTuningJobObjective > &value)
TrainingSpecification & AddSupportedTuningJobObjectiveMetrics(const HyperParameterTuningJobObjective &value)
void SetSupportedHyperParameters(Aws::Vector< HyperParameterSpecification > &&value)
TrainingSpecification & AddSupportedTrainingInstanceTypes(const TrainingInstanceType &value)
TrainingSpecification & WithMetricDefinitions(Aws::Vector< MetricDefinition > &&value)
TrainingSpecification & WithTrainingImage(Aws::String &&value)
TrainingSpecification & WithSupportedTuningJobObjectiveMetrics(Aws::Vector< HyperParameterTuningJobObjective > &&value)
void SetSupportedHyperParameters(const Aws::Vector< HyperParameterSpecification > &value)
void SetAdditionalS3DataSource(AdditionalS3DataSource &&value)
const Aws::Vector< ChannelSpecification > & GetTrainingChannels() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue