AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrainingJobDefinition.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrainingInputMode.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/OutputDataConfig.h>
12#include <aws/sagemaker/model/ResourceConfig.h>
13#include <aws/sagemaker/model/StoppingCondition.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/sagemaker/model/Channel.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 TrainingJobDefinition();
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline const TrainingInputMode& GetTrainingInputMode() const{ return m_trainingInputMode; }
51 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
52 inline void SetTrainingInputMode(const TrainingInputMode& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
53 inline void SetTrainingInputMode(TrainingInputMode&& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = std::move(value); }
55 inline TrainingJobDefinition& WithTrainingInputMode(TrainingInputMode&& value) { SetTrainingInputMode(std::move(value)); return *this;}
57
59
62 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const{ return m_hyperParameters; }
63 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
64 inline void SetHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = value; }
65 inline void SetHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::move(value); }
68 inline TrainingJobDefinition& AddHyperParameters(const Aws::String& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
69 inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, const Aws::String& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
70 inline TrainingJobDefinition& AddHyperParameters(const Aws::String& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
71 inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), std::move(value)); return *this; }
72 inline TrainingJobDefinition& AddHyperParameters(const char* key, Aws::String&& value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, std::move(value)); return *this; }
73 inline TrainingJobDefinition& AddHyperParameters(Aws::String&& key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::move(key), value); return *this; }
74 inline TrainingJobDefinition& AddHyperParameters(const char* key, const char* value) { m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(key, value); return *this; }
76
78
82 inline const Aws::Vector<Channel>& GetInputDataConfig() const{ return m_inputDataConfig; }
83 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
84 inline void SetInputDataConfig(const Aws::Vector<Channel>& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
85 inline void SetInputDataConfig(Aws::Vector<Channel>&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
87 inline TrainingJobDefinition& WithInputDataConfig(Aws::Vector<Channel>&& value) { SetInputDataConfig(std::move(value)); return *this;}
88 inline TrainingJobDefinition& AddInputDataConfig(const Channel& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(value); return *this; }
89 inline TrainingJobDefinition& AddInputDataConfig(Channel&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.push_back(std::move(value)); return *this; }
91
93
97 inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
98 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
99 inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
100 inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
102 inline TrainingJobDefinition& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
104
106
110 inline const ResourceConfig& GetResourceConfig() const{ return m_resourceConfig; }
111 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
112 inline void SetResourceConfig(const ResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
113 inline void SetResourceConfig(ResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
114 inline TrainingJobDefinition& WithResourceConfig(const ResourceConfig& value) { SetResourceConfig(value); return *this;}
115 inline TrainingJobDefinition& WithResourceConfig(ResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;}
117
119
127 inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; }
128 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
129 inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; }
130 inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); }
132 inline TrainingJobDefinition& WithStoppingCondition(StoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;}
134 private:
135
136 TrainingInputMode m_trainingInputMode;
137 bool m_trainingInputModeHasBeenSet = false;
138
139 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
140 bool m_hyperParametersHasBeenSet = false;
141
142 Aws::Vector<Channel> m_inputDataConfig;
143 bool m_inputDataConfigHasBeenSet = false;
144
145 OutputDataConfig m_outputDataConfig;
146 bool m_outputDataConfigHasBeenSet = false;
147
148 ResourceConfig m_resourceConfig;
149 bool m_resourceConfigHasBeenSet = false;
150
151 StoppingCondition m_stoppingCondition;
152 bool m_stoppingConditionHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SageMaker
157} // namespace Aws
TrainingJobDefinition & WithTrainingInputMode(TrainingInputMode &&value)
const Aws::Vector< Channel > & GetInputDataConfig() const
TrainingJobDefinition & AddInputDataConfig(Channel &&value)
TrainingJobDefinition & AddHyperParameters(const char *key, Aws::String &&value)
AWS_SAGEMAKER_API TrainingJobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const TrainingInputMode & GetTrainingInputMode() const
TrainingJobDefinition & WithOutputDataConfig(OutputDataConfig &&value)
TrainingJobDefinition & WithStoppingCondition(const StoppingCondition &value)
void SetResourceConfig(const ResourceConfig &value)
void SetTrainingInputMode(TrainingInputMode &&value)
TrainingJobDefinition & WithHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
TrainingJobDefinition & WithHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, const Aws::String &value)
void SetOutputDataConfig(const OutputDataConfig &value)
void SetHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
const StoppingCondition & GetStoppingCondition() const
TrainingJobDefinition & AddHyperParameters(const Aws::String &key, Aws::String &&value)
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, const char *value)
const OutputDataConfig & GetOutputDataConfig() const
TrainingJobDefinition & AddInputDataConfig(const Channel &value)
TrainingJobDefinition & WithResourceConfig(const ResourceConfig &value)
void SetInputDataConfig(const Aws::Vector< Channel > &value)
TrainingJobDefinition & AddHyperParameters(Aws::String &&key, Aws::String &&value)
TrainingJobDefinition & WithInputDataConfig(Aws::Vector< Channel > &&value)
void SetStoppingCondition(StoppingCondition &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
void SetStoppingCondition(const StoppingCondition &value)
AWS_SAGEMAKER_API TrainingJobDefinition(Aws::Utils::Json::JsonView jsonValue)
TrainingJobDefinition & WithOutputDataConfig(const OutputDataConfig &value)
TrainingJobDefinition & WithStoppingCondition(StoppingCondition &&value)
TrainingJobDefinition & AddHyperParameters(const Aws::String &key, const Aws::String &value)
TrainingJobDefinition & AddHyperParameters(const char *key, const char *value)
TrainingJobDefinition & WithTrainingInputMode(const TrainingInputMode &value)
void SetInputDataConfig(Aws::Vector< Channel > &&value)
TrainingJobDefinition & WithResourceConfig(ResourceConfig &&value)
void SetTrainingInputMode(const TrainingInputMode &value)
TrainingJobDefinition & WithInputDataConfig(const Aws::Vector< Channel > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue