AWS SDK for C++  1.8.95
AWS SDK for C++
CreateHyperParameterTuningJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateHyperParameterTuningJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
49  inline const Aws::String& GetHyperParameterTuningJobName() const{ return m_hyperParameterTuningJobName; }
50 
58  inline bool HyperParameterTuningJobNameHasBeenSet() const { return m_hyperParameterTuningJobNameHasBeenSet; }
59 
67  inline void SetHyperParameterTuningJobName(const Aws::String& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = value; }
68 
76  inline void SetHyperParameterTuningJobName(Aws::String&& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = std::move(value); }
77 
85  inline void SetHyperParameterTuningJobName(const char* value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName.assign(value); }
86 
94  inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(const Aws::String& value) { SetHyperParameterTuningJobName(value); return *this;}
95 
103  inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(Aws::String&& value) { SetHyperParameterTuningJobName(std::move(value)); return *this;}
104 
112  inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobName(const char* value) { SetHyperParameterTuningJobName(value); return *this;}
113 
114 
123  inline const HyperParameterTuningJobConfig& GetHyperParameterTuningJobConfig() const{ return m_hyperParameterTuningJobConfig; }
124 
133  inline bool HyperParameterTuningJobConfigHasBeenSet() const { return m_hyperParameterTuningJobConfigHasBeenSet; }
134 
143  inline void SetHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = value; }
144 
153  inline void SetHyperParameterTuningJobConfig(HyperParameterTuningJobConfig&& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = std::move(value); }
154 
163  inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig& value) { SetHyperParameterTuningJobConfig(value); return *this;}
164 
173  inline CreateHyperParameterTuningJobRequest& WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfig&& value) { SetHyperParameterTuningJobConfig(std::move(value)); return *this;}
174 
175 
182  inline const HyperParameterTrainingJobDefinition& GetTrainingJobDefinition() const{ return m_trainingJobDefinition; }
183 
190  inline bool TrainingJobDefinitionHasBeenSet() const { return m_trainingJobDefinitionHasBeenSet; }
191 
198  inline void SetTrainingJobDefinition(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = value; }
199 
206  inline void SetTrainingJobDefinition(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = std::move(value); }
207 
214  inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinition(const HyperParameterTrainingJobDefinition& value) { SetTrainingJobDefinition(value); return *this;}
215 
222  inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinition(HyperParameterTrainingJobDefinition&& value) { SetTrainingJobDefinition(std::move(value)); return *this;}
223 
224 
229  inline const Aws::Vector<HyperParameterTrainingJobDefinition>& GetTrainingJobDefinitions() const{ return m_trainingJobDefinitions; }
230 
235  inline bool TrainingJobDefinitionsHasBeenSet() const { return m_trainingJobDefinitionsHasBeenSet; }
236 
241  inline void SetTrainingJobDefinitions(const Aws::Vector<HyperParameterTrainingJobDefinition>& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = value; }
242 
247  inline void SetTrainingJobDefinitions(Aws::Vector<HyperParameterTrainingJobDefinition>&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = std::move(value); }
248 
253  inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinitions(const Aws::Vector<HyperParameterTrainingJobDefinition>& value) { SetTrainingJobDefinitions(value); return *this;}
254 
259  inline CreateHyperParameterTuningJobRequest& WithTrainingJobDefinitions(Aws::Vector<HyperParameterTrainingJobDefinition>&& value) { SetTrainingJobDefinitions(std::move(value)); return *this;}
260 
265  inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(const HyperParameterTrainingJobDefinition& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(value); return *this; }
266 
271  inline CreateHyperParameterTuningJobRequest& AddTrainingJobDefinitions(HyperParameterTrainingJobDefinition&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.push_back(std::move(value)); return *this; }
272 
273 
289  inline const HyperParameterTuningJobWarmStartConfig& GetWarmStartConfig() const{ return m_warmStartConfig; }
290 
306  inline bool WarmStartConfigHasBeenSet() const { return m_warmStartConfigHasBeenSet; }
307 
323  inline void SetWarmStartConfig(const HyperParameterTuningJobWarmStartConfig& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = value; }
324 
340  inline void SetWarmStartConfig(HyperParameterTuningJobWarmStartConfig&& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = std::move(value); }
341 
357  inline CreateHyperParameterTuningJobRequest& WithWarmStartConfig(const HyperParameterTuningJobWarmStartConfig& value) { SetWarmStartConfig(value); return *this;}
358 
374  inline CreateHyperParameterTuningJobRequest& WithWarmStartConfig(HyperParameterTuningJobWarmStartConfig&& value) { SetWarmStartConfig(std::move(value)); return *this;}
375 
376 
385  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
386 
395  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
396 
405  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
406 
415  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
416 
425  inline CreateHyperParameterTuningJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
426 
435  inline CreateHyperParameterTuningJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
436 
445  inline CreateHyperParameterTuningJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
446 
455  inline CreateHyperParameterTuningJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
456 
457  private:
458 
459  Aws::String m_hyperParameterTuningJobName;
460  bool m_hyperParameterTuningJobNameHasBeenSet;
461 
462  HyperParameterTuningJobConfig m_hyperParameterTuningJobConfig;
463  bool m_hyperParameterTuningJobConfigHasBeenSet;
464 
465  HyperParameterTrainingJobDefinition m_trainingJobDefinition;
466  bool m_trainingJobDefinitionHasBeenSet;
467 
468  Aws::Vector<HyperParameterTrainingJobDefinition> m_trainingJobDefinitions;
469  bool m_trainingJobDefinitionsHasBeenSet;
470 
471  HyperParameterTuningJobWarmStartConfig m_warmStartConfig;
472  bool m_warmStartConfigHasBeenSet;
473 
474  Aws::Vector<Tag> m_tags;
475  bool m_tagsHasBeenSet;
476  };
477 
478 } // namespace Model
479 } // namespace SageMaker
480 } // namespace Aws
#define AWS_SAGEMAKER_API
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig &value)
void SetTrainingJobDefinitions(Aws::Vector< HyperParameterTrainingJobDefinition > &&value)
CreateHyperParameterTuningJobRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTrainingJobDefinition(HyperParameterTrainingJobDefinition &&value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinition(HyperParameterTrainingJobDefinition &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(const char *value)
CreateHyperParameterTuningJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateHyperParameterTuningJobRequest & AddTrainingJobDefinitions(const HyperParameterTrainingJobDefinition &value)
CreateHyperParameterTuningJobRequest & WithWarmStartConfig(HyperParameterTuningJobWarmStartConfig &&value)
CreateHyperParameterTuningJobRequest & WithWarmStartConfig(const HyperParameterTuningJobWarmStartConfig &value)
void SetWarmStartConfig(HyperParameterTuningJobWarmStartConfig &&value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(Aws::String &&value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobName(const Aws::String &value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinition(const HyperParameterTrainingJobDefinition &value)
const Aws::Vector< HyperParameterTrainingJobDefinition > & GetTrainingJobDefinitions() const
CreateHyperParameterTuningJobRequest & AddTrainingJobDefinitions(HyperParameterTrainingJobDefinition &&value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinitions(Aws::Vector< HyperParameterTrainingJobDefinition > &&value)
CreateHyperParameterTuningJobRequest & WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfig &&value)
CreateHyperParameterTuningJobRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const HyperParameterTuningJobConfig & GetHyperParameterTuningJobConfig() const
const HyperParameterTuningJobWarmStartConfig & GetWarmStartConfig() const
void SetHyperParameterTuningJobConfig(const HyperParameterTuningJobConfig &value)
const HyperParameterTrainingJobDefinition & GetTrainingJobDefinition() const
void SetTrainingJobDefinitions(const Aws::Vector< HyperParameterTrainingJobDefinition > &value)
void SetTrainingJobDefinition(const HyperParameterTrainingJobDefinition &value)
CreateHyperParameterTuningJobRequest & WithTrainingJobDefinitions(const Aws::Vector< HyperParameterTrainingJobDefinition > &value)
void SetWarmStartConfig(const HyperParameterTuningJobWarmStartConfig &value)