AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHyperParameterTuningJobRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/HyperParameterTuningJobConfig.h>
11#include <aws/sagemaker/model/HyperParameterTrainingJobDefinition.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/HyperParameterTuningJobWarmStartConfig.h>
14#include <aws/sagemaker/model/Autotune.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateHyperParameterTuningJob"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
51 inline const Aws::String& GetHyperParameterTuningJobName() const{ return m_hyperParameterTuningJobName; }
52 inline bool HyperParameterTuningJobNameHasBeenSet() const { return m_hyperParameterTuningJobNameHasBeenSet; }
53 inline void SetHyperParameterTuningJobName(const Aws::String& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = value; }
54 inline void SetHyperParameterTuningJobName(Aws::String&& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = std::move(value); }
55 inline void SetHyperParameterTuningJobName(const char* value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName.assign(value); }
60
62
71 inline const HyperParameterTuningJobConfig& GetHyperParameterTuningJobConfig() const{ return m_hyperParameterTuningJobConfig; }
72 inline bool HyperParameterTuningJobConfigHasBeenSet() const { return m_hyperParameterTuningJobConfigHasBeenSet; }
73 inline void SetHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = value; }
74 inline void SetHyperParameterTuningJobConfig(HyperParameterTuningJobConfig&& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = std::move(value); }
78
80
87 inline const HyperParameterTrainingJobDefinition& GetTrainingJobDefinition() const{ return m_trainingJobDefinition; }
88 inline bool TrainingJobDefinitionHasBeenSet() const { return m_trainingJobDefinitionHasBeenSet; }
89 inline void SetTrainingJobDefinition(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = value; }
90 inline void SetTrainingJobDefinition(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = std::move(value); }
94
96
101 inline const Aws::Vector<HyperParameterTrainingJobDefinition>& GetTrainingJobDefinitions() const{ return m_trainingJobDefinitions; }
102 inline bool TrainingJobDefinitionsHasBeenSet() const { return m_trainingJobDefinitionsHasBeenSet; }
103 inline void SetTrainingJobDefinitions(const Aws::Vector<HyperParameterTrainingJobDefinition>& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = value; }
104 inline void SetTrainingJobDefinitions(Aws::Vector<HyperParameterTrainingJobDefinition>&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = std::move(value); }
107 inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(value); return *this; }
108 inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(std::move(value)); return *this; }
110
112
127 inline const HyperParameterTuningJobWarmStartConfig& GetWarmStartConfig() const{ return m_warmStartConfig; }
128 inline bool WarmStartConfigHasBeenSet() const { return m_warmStartConfigHasBeenSet; }
129 inline void SetWarmStartConfig(const HyperParameterTuningJobWarmStartConfig& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = value; }
130 inline void SetWarmStartConfig(HyperParameterTuningJobWarmStartConfig&& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = std::move(value); }
134
136
144 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline CreateHyperParameterTuningJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
149 inline CreateHyperParameterTuningJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
150 inline CreateHyperParameterTuningJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
151 inline CreateHyperParameterTuningJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
153
155
178 inline const Autotune& GetAutotune() const{ return m_autotune; }
179 inline bool AutotuneHasBeenSet() const { return m_autotuneHasBeenSet; }
180 inline void SetAutotune(const Autotune& value) { m_autotuneHasBeenSet = true; m_autotune = value; }
181 inline void SetAutotune(Autotune&& value) { m_autotuneHasBeenSet = true; m_autotune = std::move(value); }
182 inline CreateHyperParameterTuningJobRequest& WithAutotune(const Autotune& value) { SetAutotune(value); return *this;}
183 inline CreateHyperParameterTuningJobRequest& WithAutotune(Autotune&& value) { SetAutotune(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_hyperParameterTuningJobName;
188 bool m_hyperParameterTuningJobNameHasBeenSet = false;
189
190 HyperParameterTuningJobConfig m_hyperParameterTuningJobConfig;
191 bool m_hyperParameterTuningJobConfigHasBeenSet = false;
192
193 HyperParameterTrainingJobDefinition m_trainingJobDefinition;
194 bool m_trainingJobDefinitionHasBeenSet = false;
195
197 bool m_trainingJobDefinitionsHasBeenSet = false;
198
200 bool m_warmStartConfigHasBeenSet = false;
201
202 Aws::Vector<Tag> m_tags;
203 bool m_tagsHasBeenSet = false;
204
205 Autotune m_autotune;
206 bool m_autotuneHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace SageMaker
211} // namespace Aws
CreateHyperParameterTuningJobRequest & AddTrainingJobDefinitions(HyperParameterTrainingJobDefinition &&value)
CreateHyperParameterTuningJobRequest & WithWarmStartConfig(HyperParameterTuningJobWarmStartConfig &&value)
void SetTrainingJobDefinitions(const Aws::Vector< HyperParameterTrainingJobDefinition > &value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(const char *value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinition(const HyperParameterTrainingJobDefinition &value)
const HyperParameterTuningJobWarmStartConfig & GetWarmStartConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateHyperParameterTuningJobRequest & AddTrainingJobDefinitions(const HyperParameterTrainingJobDefinition &value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(Aws::String &&value)
CreateHyperParameterTuningJobRequest & WithAutotune(const Autotune &value)
void SetTrainingJobDefinition(HyperParameterTrainingJobDefinition &&value)
void SetWarmStartConfig(HyperParameterTuningJobWarmStartConfig &&value)
CreateHyperParameterTuningJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfig &&value)
const HyperParameterTrainingJobDefinition & GetTrainingJobDefinition() const
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinitions(Aws::Vector< HyperParameterTrainingJobDefinition > &&value)
void SetHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig &value)
void SetWarmStartConfig(const HyperParameterTuningJobWarmStartConfig &value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig &value)
CreateHyperParameterTuningJobRequest & WithAutotune(Autotune &&value)
const Aws::Vector< HyperParameterTrainingJobDefinition > & GetTrainingJobDefinitions() const
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(const Aws::String &value)
CreateHyperParameterTuningJobRequest & WithWarmStartConfig(const HyperParameterTuningJobWarmStartConfig &value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinition(HyperParameterTrainingJobDefinition &&value)
CreateHyperParameterTuningJobRequest & AddTags(const Tag &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTrainingJobDefinitions(Aws::Vector< HyperParameterTrainingJobDefinition > &&value)
CreateHyperParameterTuningJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinitions(const Aws::Vector< HyperParameterTrainingJobDefinition > &value)
void SetTrainingJobDefinition(const HyperParameterTrainingJobDefinition &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector