AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HyperParameterAlgorithmSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/TrainingInputMode.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/MetricDefinition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
37 {
38 public:
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
57 inline const Aws::String& GetTrainingImage() const{ return m_trainingImage; }
58 inline bool TrainingImageHasBeenSet() const { return m_trainingImageHasBeenSet; }
59 inline void SetTrainingImage(const Aws::String& value) { m_trainingImageHasBeenSet = true; m_trainingImage = value; }
60 inline void SetTrainingImage(Aws::String&& value) { m_trainingImageHasBeenSet = true; m_trainingImage = std::move(value); }
61 inline void SetTrainingImage(const char* value) { m_trainingImageHasBeenSet = true; m_trainingImage.assign(value); }
63 inline HyperParameterAlgorithmSpecification& WithTrainingImage(Aws::String&& value) { SetTrainingImage(std::move(value)); return *this;}
64 inline HyperParameterAlgorithmSpecification& WithTrainingImage(const char* value) { SetTrainingImage(value); return *this;}
66
68
69 inline const TrainingInputMode& GetTrainingInputMode() const{ return m_trainingInputMode; }
70 inline bool TrainingInputModeHasBeenSet() const { return m_trainingInputModeHasBeenSet; }
71 inline void SetTrainingInputMode(const TrainingInputMode& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = value; }
72 inline void SetTrainingInputMode(TrainingInputMode&& value) { m_trainingInputModeHasBeenSet = true; m_trainingInputMode = std::move(value); }
76
78
83 inline const Aws::String& GetAlgorithmName() const{ return m_algorithmName; }
84 inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
85 inline void SetAlgorithmName(const Aws::String& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = value; }
86 inline void SetAlgorithmName(Aws::String&& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = std::move(value); }
87 inline void SetAlgorithmName(const char* value) { m_algorithmNameHasBeenSet = true; m_algorithmName.assign(value); }
89 inline HyperParameterAlgorithmSpecification& WithAlgorithmName(Aws::String&& value) { SetAlgorithmName(std::move(value)); return *this;}
90 inline HyperParameterAlgorithmSpecification& WithAlgorithmName(const char* value) { SetAlgorithmName(value); return *this;}
92
94
99 inline const Aws::Vector<MetricDefinition>& GetMetricDefinitions() const{ return m_metricDefinitions; }
100 inline bool MetricDefinitionsHasBeenSet() const { return m_metricDefinitionsHasBeenSet; }
101 inline void SetMetricDefinitions(const Aws::Vector<MetricDefinition>& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = value; }
102 inline void SetMetricDefinitions(Aws::Vector<MetricDefinition>&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = std::move(value); }
105 inline HyperParameterAlgorithmSpecification& AddMetricDefinitions(const MetricDefinition& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(value); return *this; }
106 inline HyperParameterAlgorithmSpecification& AddMetricDefinitions(MetricDefinition&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_trainingImage;
111 bool m_trainingImageHasBeenSet = false;
112
113 TrainingInputMode m_trainingInputMode;
114 bool m_trainingInputModeHasBeenSet = false;
115
116 Aws::String m_algorithmName;
117 bool m_algorithmNameHasBeenSet = false;
118
119 Aws::Vector<MetricDefinition> m_metricDefinitions;
120 bool m_metricDefinitionsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
HyperParameterAlgorithmSpecification & AddMetricDefinitions(MetricDefinition &&value)
void SetMetricDefinitions(const Aws::Vector< MetricDefinition > &value)
HyperParameterAlgorithmSpecification & WithTrainingInputMode(const TrainingInputMode &value)
AWS_SAGEMAKER_API HyperParameterAlgorithmSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterAlgorithmSpecification & WithTrainingImage(const char *value)
HyperParameterAlgorithmSpecification & AddMetricDefinitions(const MetricDefinition &value)
HyperParameterAlgorithmSpecification & WithAlgorithmName(Aws::String &&value)
AWS_SAGEMAKER_API HyperParameterAlgorithmSpecification(Aws::Utils::Json::JsonView jsonValue)
HyperParameterAlgorithmSpecification & WithAlgorithmName(const Aws::String &value)
HyperParameterAlgorithmSpecification & WithTrainingImage(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterAlgorithmSpecification & WithAlgorithmName(const char *value)
HyperParameterAlgorithmSpecification & WithMetricDefinitions(Aws::Vector< MetricDefinition > &&value)
HyperParameterAlgorithmSpecification & WithTrainingInputMode(TrainingInputMode &&value)
HyperParameterAlgorithmSpecification & WithMetricDefinitions(const Aws::Vector< MetricDefinition > &value)
HyperParameterAlgorithmSpecification & WithTrainingImage(Aws::String &&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