AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HyperParameterAlgorithmSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/MetricDefinition.h>
11#include <aws/sagemaker/model/TrainingInputMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
33 public:
34 AWS_SAGEMAKER_API HyperParameterAlgorithmSpecification() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
51 inline const Aws::String& GetTrainingImage() const { return m_trainingImage; }
52 inline bool TrainingImageHasBeenSet() const { return m_trainingImageHasBeenSet; }
53 template <typename TrainingImageT = Aws::String>
54 void SetTrainingImage(TrainingImageT&& value) {
55 m_trainingImageHasBeenSet = true;
56 m_trainingImage = std::forward<TrainingImageT>(value);
57 }
58 template <typename TrainingImageT = Aws::String>
60 SetTrainingImage(std::forward<TrainingImageT>(value));
61 return *this;
62 }
64
66
67 inline TrainingInputMode GetTrainingInputMode() const { return m_trainingInputMode; }
68 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
70 m_trainingInputModeHasBeenSet = true;
71 m_trainingInputMode = value;
72 }
75 return *this;
76 }
78
80
85 inline const Aws::String& GetAlgorithmName() const { return m_algorithmName; }
86 inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
87 template <typename AlgorithmNameT = Aws::String>
88 void SetAlgorithmName(AlgorithmNameT&& value) {
89 m_algorithmNameHasBeenSet = true;
90 m_algorithmName = std::forward<AlgorithmNameT>(value);
91 }
92 template <typename AlgorithmNameT = Aws::String>
94 SetAlgorithmName(std::forward<AlgorithmNameT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Vector<MetricDefinition>& GetMetricDefinitions() const { return m_metricDefinitions; }
106 inline bool MetricDefinitionsHasBeenSet() const { return m_metricDefinitionsHasBeenSet; }
107 template <typename MetricDefinitionsT = Aws::Vector<MetricDefinition>>
108 void SetMetricDefinitions(MetricDefinitionsT&& value) {
109 m_metricDefinitionsHasBeenSet = true;
110 m_metricDefinitions = std::forward<MetricDefinitionsT>(value);
111 }
112 template <typename MetricDefinitionsT = Aws::Vector<MetricDefinition>>
114 SetMetricDefinitions(std::forward<MetricDefinitionsT>(value));
115 return *this;
116 }
117 template <typename MetricDefinitionsT = MetricDefinition>
119 m_metricDefinitionsHasBeenSet = true;
120 m_metricDefinitions.emplace_back(std::forward<MetricDefinitionsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_trainingImage;
126
128
129 Aws::String m_algorithmName;
130
131 Aws::Vector<MetricDefinition> m_metricDefinitions;
132 bool m_trainingImageHasBeenSet = false;
133 bool m_trainingInputModeHasBeenSet = false;
134 bool m_algorithmNameHasBeenSet = false;
135 bool m_metricDefinitionsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace SageMaker
140} // namespace Aws
HyperParameterAlgorithmSpecification & WithTrainingImage(TrainingImageT &&value)
AWS_SAGEMAKER_API HyperParameterAlgorithmSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API HyperParameterAlgorithmSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterAlgorithmSpecification & WithAlgorithmName(AlgorithmNameT &&value)
HyperParameterAlgorithmSpecification & WithMetricDefinitions(MetricDefinitionsT &&value)
HyperParameterAlgorithmSpecification & WithTrainingInputMode(TrainingInputMode value)
HyperParameterAlgorithmSpecification & AddMetricDefinitions(MetricDefinitionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue