AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrainingJobDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/Channel.h>
12#include <aws/sagemaker/model/OutputDataConfig.h>
13#include <aws/sagemaker/model/ResourceConfig.h>
14#include <aws/sagemaker/model/StoppingCondition.h>
15#include <aws/sagemaker/model/TrainingInputMode.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
36 public:
37 AWS_SAGEMAKER_API TrainingJobDefinition() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
44 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
45 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
47 m_trainingInputModeHasBeenSet = true;
48 m_trainingInputMode = value;
49 }
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, Aws::String>& GetHyperParameters() const { return m_hyperParameters; }
61 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
62 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
63 void SetHyperParameters(HyperParametersT&& value) {
64 m_hyperParametersHasBeenSet = true;
65 m_hyperParameters = std::forward<HyperParametersT>(value);
66 }
67 template <typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
68 TrainingJobDefinition& WithHyperParameters(HyperParametersT&& value) {
69 SetHyperParameters(std::forward<HyperParametersT>(value));
70 return *this;
71 }
72 template <typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
73 TrainingJobDefinition& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
74 m_hyperParametersHasBeenSet = true;
75 m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Channel>& GetInputDataConfig() const { return m_inputDataConfig; }
86 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
87 template <typename InputDataConfigT = Aws::Vector<Channel>>
88 void SetInputDataConfig(InputDataConfigT&& value) {
89 m_inputDataConfigHasBeenSet = true;
90 m_inputDataConfig = std::forward<InputDataConfigT>(value);
91 }
92 template <typename InputDataConfigT = Aws::Vector<Channel>>
93 TrainingJobDefinition& WithInputDataConfig(InputDataConfigT&& value) {
94 SetInputDataConfig(std::forward<InputDataConfigT>(value));
95 return *this;
96 }
97 template <typename InputDataConfigT = Channel>
98 TrainingJobDefinition& AddInputDataConfig(InputDataConfigT&& value) {
99 m_inputDataConfigHasBeenSet = true;
100 m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value));
101 return *this;
102 }
104
106
110 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
111 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
112 template <typename OutputDataConfigT = OutputDataConfig>
113 void SetOutputDataConfig(OutputDataConfigT&& value) {
114 m_outputDataConfigHasBeenSet = true;
115 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
116 }
117 template <typename OutputDataConfigT = OutputDataConfig>
118 TrainingJobDefinition& WithOutputDataConfig(OutputDataConfigT&& value) {
119 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
120 return *this;
121 }
123
125
129 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
130 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
131 template <typename ResourceConfigT = ResourceConfig>
132 void SetResourceConfig(ResourceConfigT&& value) {
133 m_resourceConfigHasBeenSet = true;
134 m_resourceConfig = std::forward<ResourceConfigT>(value);
135 }
136 template <typename ResourceConfigT = ResourceConfig>
137 TrainingJobDefinition& WithResourceConfig(ResourceConfigT&& value) {
138 SetResourceConfig(std::forward<ResourceConfigT>(value));
139 return *this;
140 }
142
144
152 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
153 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
154 template <typename StoppingConditionT = StoppingCondition>
155 void SetStoppingCondition(StoppingConditionT&& value) {
156 m_stoppingConditionHasBeenSet = true;
157 m_stoppingCondition = std::forward<StoppingConditionT>(value);
158 }
159 template <typename StoppingConditionT = StoppingCondition>
160 TrainingJobDefinition& WithStoppingCondition(StoppingConditionT&& value) {
161 SetStoppingCondition(std::forward<StoppingConditionT>(value));
162 return *this;
163 }
165 private:
167
168 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
169
170 Aws::Vector<Channel> m_inputDataConfig;
171
172 OutputDataConfig m_outputDataConfig;
173
174 ResourceConfig m_resourceConfig;
175
176 StoppingCondition m_stoppingCondition;
177 bool m_trainingInputModeHasBeenSet = false;
178 bool m_hyperParametersHasBeenSet = false;
179 bool m_inputDataConfigHasBeenSet = false;
180 bool m_outputDataConfigHasBeenSet = false;
181 bool m_resourceConfigHasBeenSet = false;
182 bool m_stoppingConditionHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace SageMaker
187} // namespace Aws
const Aws::Vector< Channel > & GetInputDataConfig() const
TrainingJobDefinition & WithStoppingCondition(StoppingConditionT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
AWS_SAGEMAKER_API TrainingJobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingJobDefinition & WithOutputDataConfig(OutputDataConfigT &&value)
AWS_SAGEMAKER_API TrainingJobDefinition()=default
const StoppingCondition & GetStoppingCondition() const
TrainingJobDefinition & WithHyperParameters(HyperParametersT &&value)
const OutputDataConfig & GetOutputDataConfig() const
TrainingJobDefinition & WithResourceConfig(ResourceConfigT &&value)
void SetStoppingCondition(StoppingConditionT &&value)
TrainingJobDefinition & AddHyperParameters(HyperParametersKeyT &&key, HyperParametersValueT &&value)
void SetHyperParameters(HyperParametersT &&value)
void SetOutputDataConfig(OutputDataConfigT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetHyperParameters() const
AWS_SAGEMAKER_API TrainingJobDefinition(Aws::Utils::Json::JsonView jsonValue)
TrainingJobDefinition & WithTrainingInputMode(TrainingInputMode value)
TrainingJobDefinition & AddInputDataConfig(InputDataConfigT &&value)
TrainingJobDefinition & WithInputDataConfig(InputDataConfigT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue