AWS SDK for C++  1.9.157
AWS SDK for C++
TrainingJobDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25  class JsonView;
26 } // namespace Json
27 } // namespace Utils
28 namespace SageMaker
29 {
30 namespace Model
31 {
32 
40  {
41  public:
46 
47 
48 
49  inline const TrainingInputMode& GetTrainingInputMode() const{ return m_trainingInputMode; }
50 
51 
52  inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
53 
54 
55  inline void SetTrainingInputMode(const TrainingInputMode& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
56 
57 
58  inline void SetTrainingInputMode(TrainingInputMode&& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = std::move(value); }
59 
60 
61  inline TrainingJobDefinition& WithTrainingInputMode(const TrainingInputMode& value) { SetTrainingInputMode(value); return *this;}
62 
63 
64  inline TrainingJobDefinition& WithTrainingInputMode(TrainingInputMode&& value) { SetTrainingInputMode(std::move(value)); return *this;}
65 
66 
70  inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const{ return m_hyperParameters; }
71 
75  inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
76 
80  inline void SetHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = value; }
81 
85  inline void SetHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::move(value); }
86 
90  inline TrainingJobDefinition& WithHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetHyperParameters(value); return *this;}
91 
95  inline TrainingJobDefinition& WithHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetHyperParameters(std::move(value)); return *this;}
96 
100  inline TrainingJobDefinition& AddHyperParameters(const Aws::String& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
101 
105  inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
106 
110  inline TrainingJobDefinition& AddHyperParameters(const Aws::String& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
111 
115  inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), std::move(value)); return *this; }
116 
120  inline TrainingJobDefinition& AddHyperParameters(const char* key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
121 
125  inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
126 
130  inline TrainingJobDefinition& AddHyperParameters(const char* key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
131 
132 
137  inline const Aws::Vector<Channel>& GetInputDataConfig() const{ return m_inputDataConfig; }
138 
143  inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
144 
149  inline void SetInputDataConfig(const Aws::Vector<Channel>& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
150 
155  inline void SetInputDataConfig(Aws::Vector<Channel>&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
156 
161  inline TrainingJobDefinition& WithInputDataConfig(const Aws::Vector<Channel>& value) { SetInputDataConfig(value); return *this;}
162 
167  inline TrainingJobDefinition& WithInputDataConfig(Aws::Vector<Channel>&& value) { SetInputDataConfig(std::move(value)); return *this;}
168 
173  inline TrainingJobDefinition& AddInputDataConfig(const Channel& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(value); return *this; }
174 
179  inline TrainingJobDefinition& AddInputDataConfig(Channel&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(std::move(value)); return *this; }
180 
181 
186  inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
187 
192  inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
193 
198  inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
199 
204  inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
205 
210  inline TrainingJobDefinition& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
211 
216  inline TrainingJobDefinition& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
217 
218 
223  inline const ResourceConfig& GetResourceConfig() const{ return m_resourceConfig; }
224 
229  inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
230 
235  inline void SetResourceConfig(const ResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
236 
241  inline void SetResourceConfig(ResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
242 
247  inline TrainingJobDefinition& WithResourceConfig(const ResourceConfig& value) { SetResourceConfig(value); return *this;}
248 
253  inline TrainingJobDefinition& WithResourceConfig(ResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;}
254 
255 
264  inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; }
265 
274  inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
275 
284  inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; }
285 
294  inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); }
295 
304  inline TrainingJobDefinition& WithStoppingCondition(const StoppingCondition& value) { SetStoppingCondition(value); return *this;}
305 
314  inline TrainingJobDefinition& WithStoppingCondition(StoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;}
315 
316  private:
317 
318  TrainingInputMode m_trainingInputMode;
319  bool m_trainingInputModeHasBeenSet;
320 
321  Aws::Map<Aws::String, Aws::String> m_hyperParameters;
322  bool m_hyperParametersHasBeenSet;
323 
324  Aws::Vector<Channel> m_inputDataConfig;
325  bool m_inputDataConfigHasBeenSet;
326 
327  OutputDataConfig m_outputDataConfig;
328  bool m_outputDataConfigHasBeenSet;
329 
330  ResourceConfig m_resourceConfig;
331  bool m_resourceConfigHasBeenSet;
332 
333  StoppingCondition m_stoppingCondition;
334  bool m_stoppingConditionHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace SageMaker
339 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::TrainingJobDefinition::SetInputDataConfig
void SetInputDataConfig(const Aws::Vector< Channel > &value)
Definition: TrainingJobDefinition.h:149
Aws::SageMaker::Model::TrainingJobDefinition::WithHyperParameters
TrainingJobDefinition & WithHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TrainingJobDefinition.h:90
SageMaker_EXPORTS.h
Aws::SageMaker::Model::TrainingJobDefinition::OutputDataConfigHasBeenSet
bool OutputDataConfigHasBeenSet() const
Definition: TrainingJobDefinition.h:192
Aws::SageMaker::Model::ResourceConfig
Definition: ResourceConfig.h:34
Aws::SageMaker::Model::TrainingJobDefinition::WithHyperParameters
TrainingJobDefinition & WithHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TrainingJobDefinition.h:95
Aws::SageMaker::Model::TrainingJobDefinition::operator=
TrainingJobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::TrainingJobDefinition::WithResourceConfig
TrainingJobDefinition & WithResourceConfig(const ResourceConfig &value)
Definition: TrainingJobDefinition.h:247
OutputDataConfig.h
Aws::SageMaker::Model::TrainingJobDefinition::SetOutputDataConfig
void SetOutputDataConfig(OutputDataConfig &&value)
Definition: TrainingJobDefinition.h:204
StoppingCondition.h
Aws::SageMaker::Model::TrainingJobDefinition::SetResourceConfig
void SetResourceConfig(const ResourceConfig &value)
Definition: TrainingJobDefinition.h:235
Aws::SageMaker::Model::TrainingJobDefinition::StoppingConditionHasBeenSet
bool StoppingConditionHasBeenSet() const
Definition: TrainingJobDefinition.h:274
Aws::SageMaker::Model::TrainingJobDefinition::WithResourceConfig
TrainingJobDefinition & WithResourceConfig(ResourceConfig &&value)
Definition: TrainingJobDefinition.h:253
Aws::SageMaker::Model::TrainingJobDefinition::GetStoppingCondition
const StoppingCondition & GetStoppingCondition() const
Definition: TrainingJobDefinition.h:264
Aws::SageMaker::Model::TrainingJobDefinition::SetStoppingCondition
void SetStoppingCondition(StoppingCondition &&value)
Definition: TrainingJobDefinition.h:294
Aws::SageMaker::Model::TrainingInputMode
TrainingInputMode
Definition: TrainingInputMode.h:17
Aws::SageMaker::Model::TrainingJobDefinition::ResourceConfigHasBeenSet
bool ResourceConfigHasBeenSet() const
Definition: TrainingJobDefinition.h:229
Aws::SageMaker::Model::TrainingJobDefinition::WithStoppingCondition
TrainingJobDefinition & WithStoppingCondition(StoppingCondition &&value)
Definition: TrainingJobDefinition.h:314
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
TrainingInputMode.h
Aws::SageMaker::Model::TrainingJobDefinition::HyperParametersHasBeenSet
bool HyperParametersHasBeenSet() const
Definition: TrainingJobDefinition.h:75
AWSVector.h
Aws::SageMaker::Model::Channel
Definition: Channel.h:38
Aws::SageMaker::Model::TrainingJobDefinition::SetTrainingInputMode
void SetTrainingInputMode(TrainingInputMode &&value)
Definition: TrainingJobDefinition.h:58
Aws::SageMaker::Model::TrainingJobDefinition::WithInputDataConfig
TrainingJobDefinition & WithInputDataConfig(Aws::Vector< Channel > &&value)
Definition: TrainingJobDefinition.h:167
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, const char *value)
Definition: TrainingJobDefinition.h:125
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(const Aws::String &key, Aws::String &&value)
Definition: TrainingJobDefinition.h:110
Aws::SageMaker::Model::TrainingJobDefinition::GetOutputDataConfig
const OutputDataConfig & GetOutputDataConfig() const
Definition: TrainingJobDefinition.h:186
Aws::SageMaker::Model::TrainingJobDefinition::TrainingJobDefinition
TrainingJobDefinition()
Aws::SageMaker::Model::TrainingJobDefinition::TrainingJobDefinition
TrainingJobDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::TrainingJobDefinition::SetTrainingInputMode
void SetTrainingInputMode(const TrainingInputMode &value)
Definition: TrainingJobDefinition.h:55
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(const char *key, const char *value)
Definition: TrainingJobDefinition.h:130
Aws::SageMaker::Model::TrainingJobDefinition::AddInputDataConfig
TrainingJobDefinition & AddInputDataConfig(Channel &&value)
Definition: TrainingJobDefinition.h:179
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::TrainingJobDefinition::InputDataConfigHasBeenSet
bool InputDataConfigHasBeenSet() const
Definition: TrainingJobDefinition.h:143
Aws::SageMaker::Model::TrainingJobDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::TrainingJobDefinition::GetResourceConfig
const ResourceConfig & GetResourceConfig() const
Definition: TrainingJobDefinition.h:223
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(const char *key, Aws::String &&value)
Definition: TrainingJobDefinition.h:120
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, Aws::String &&value)
Definition: TrainingJobDefinition.h:115
Aws::SageMaker::Model::TrainingJobDefinition::WithTrainingInputMode
TrainingJobDefinition & WithTrainingInputMode(const TrainingInputMode &value)
Definition: TrainingJobDefinition.h:61
Channel.h
Aws::SageMaker::Model::TrainingJobDefinition::GetInputDataConfig
const Aws::Vector< Channel > & GetInputDataConfig() const
Definition: TrainingJobDefinition.h:137
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SageMaker::Model::TrainingJobDefinition::GetTrainingInputMode
const TrainingInputMode & GetTrainingInputMode() const
Definition: TrainingJobDefinition.h:49
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(const Aws::String &key, const Aws::String &value)
Definition: TrainingJobDefinition.h:100
Aws::SageMaker::Model::TrainingJobDefinition::SetInputDataConfig
void SetInputDataConfig(Aws::Vector< Channel > &&value)
Definition: TrainingJobDefinition.h:155
Aws::SageMaker::Model::TrainingJobDefinition::WithOutputDataConfig
TrainingJobDefinition & WithOutputDataConfig(const OutputDataConfig &value)
Definition: TrainingJobDefinition.h:210
Aws::SageMaker::Model::OutputDataConfig
Definition: OutputDataConfig.h:33
Aws::SageMaker::Model::TrainingJobDefinition::WithTrainingInputMode
TrainingJobDefinition & WithTrainingInputMode(TrainingInputMode &&value)
Definition: TrainingJobDefinition.h:64
Aws::SageMaker::Model::TrainingJobDefinition::SetResourceConfig
void SetResourceConfig(ResourceConfig &&value)
Definition: TrainingJobDefinition.h:241
Aws::SageMaker::Model::TrainingJobDefinition
Definition: TrainingJobDefinition.h:40
Aws::SageMaker::Model::TrainingJobDefinition::AddInputDataConfig
TrainingJobDefinition & AddInputDataConfig(const Channel &value)
Definition: TrainingJobDefinition.h:173
Aws::SageMaker::Model::TrainingJobDefinition::WithInputDataConfig
TrainingJobDefinition & WithInputDataConfig(const Aws::Vector< Channel > &value)
Definition: TrainingJobDefinition.h:161
Aws::SageMaker::Model::TrainingJobDefinition::WithStoppingCondition
TrainingJobDefinition & WithStoppingCondition(const StoppingCondition &value)
Definition: TrainingJobDefinition.h:304
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::TrainingJobDefinition::AddHyperParameters
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, const Aws::String &value)
Definition: TrainingJobDefinition.h:105
Aws::SageMaker::Model::TrainingJobDefinition::SetHyperParameters
void SetHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TrainingJobDefinition.h:85
Aws::SageMaker::Model::TrainingJobDefinition::SetHyperParameters
void SetHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TrainingJobDefinition.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::TrainingJobDefinition::WithOutputDataConfig
TrainingJobDefinition & WithOutputDataConfig(OutputDataConfig &&value)
Definition: TrainingJobDefinition.h:216
ResourceConfig.h
Aws::SageMaker::Model::StoppingCondition
Definition: StoppingCondition.h:46
AWSMap.h
Aws::SageMaker::Model::TrainingJobDefinition::SetStoppingCondition
void SetStoppingCondition(const StoppingCondition &value)
Definition: TrainingJobDefinition.h:284
Aws::SageMaker::Model::TrainingJobDefinition::GetHyperParameters
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
Definition: TrainingJobDefinition.h:70
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SageMaker::Model::TrainingJobDefinition::SetOutputDataConfig
void SetOutputDataConfig(const OutputDataConfig &value)
Definition: TrainingJobDefinition.h:198
Aws::SageMaker::Model::TrainingJobDefinition::TrainingInputModeHasBeenSet
bool TrainingInputModeHasBeenSet() const
Definition: TrainingJobDefinition.h:52