AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
50 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
51 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
52 inline void SetTrainingInputMode(TrainingInputMode value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
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) { m_hyperParametersHasBeenSet = true; m_hyperParameters = std::forward<HyperParametersT>(value); }
64 template<typename HyperParametersT = Aws::Map<Aws::String, Aws::String>>
65 TrainingJobDefinition& WithHyperParameters(HyperParametersT&& value) { SetHyperParameters(std::forward<HyperParametersT>(value)); return *this;}
66 template<typename HyperParametersKeyT = Aws::String, typename HyperParametersValueT = Aws::String>
67 TrainingJobDefinition& AddHyperParameters(HyperParametersKeyT&& key, HyperParametersValueT&& value) {
68 m_hyperParametersHasBeenSet = true; m_hyperParameters.emplace(std::forward<HyperParametersKeyT>(key), std::forward<HyperParametersValueT>(value)); return *this;
69 }
71
73
77 inline const Aws::Vector<Channel>& GetInputDataConfig() const { return m_inputDataConfig; }
78 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
79 template<typename InputDataConfigT = Aws::Vector<Channel>>
80 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
81 template<typename InputDataConfigT = Aws::Vector<Channel>>
82 TrainingJobDefinition& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
83 template<typename InputDataConfigT = Channel>
84 TrainingJobDefinition& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
86
88
92 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
93 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
94 template<typename OutputDataConfigT = OutputDataConfig>
95 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
96 template<typename OutputDataConfigT = OutputDataConfig>
97 TrainingJobDefinition& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
99
101
105 inline const ResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
106 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
107 template<typename ResourceConfigT = ResourceConfig>
108 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
109 template<typename ResourceConfigT = ResourceConfig>
110 TrainingJobDefinition& WithResourceConfig(ResourceConfigT&& value) { SetResourceConfig(std::forward<ResourceConfigT>(value)); return *this;}
112
114
122 inline const StoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
123 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
124 template<typename StoppingConditionT = StoppingCondition>
125 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
126 template<typename StoppingConditionT = StoppingCondition>
127 TrainingJobDefinition& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
129 private:
130
132 bool m_trainingInputModeHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_hyperParameters;
135 bool m_hyperParametersHasBeenSet = false;
136
137 Aws::Vector<Channel> m_inputDataConfig;
138 bool m_inputDataConfigHasBeenSet = false;
139
140 OutputDataConfig m_outputDataConfig;
141 bool m_outputDataConfigHasBeenSet = false;
142
143 ResourceConfig m_resourceConfig;
144 bool m_resourceConfigHasBeenSet = false;
145
146 StoppingCondition m_stoppingCondition;
147 bool m_stoppingConditionHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace SageMaker
152} // 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