AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAutoMLJobRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/AutoMLOutputDataConfig.h>
12#include <aws/sagemaker/model/ProblemType.h>
13#include <aws/sagemaker/model/AutoMLJobObjective.h>
14#include <aws/sagemaker/model/AutoMLJobConfig.h>
15#include <aws/sagemaker/model/ModelDeployConfig.h>
16#include <aws/sagemaker/model/AutoMLChannel.h>
17#include <aws/sagemaker/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace SageMaker
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SAGEMAKER_API CreateAutoMLJobRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateAutoMLJob"; }
39
40 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
41
43
44
46
50 inline const Aws::String& GetAutoMLJobName() const { return m_autoMLJobName; }
51 inline bool AutoMLJobNameHasBeenSet() const { return m_autoMLJobNameHasBeenSet; }
52 template<typename AutoMLJobNameT = Aws::String>
53 void SetAutoMLJobName(AutoMLJobNameT&& value) { m_autoMLJobNameHasBeenSet = true; m_autoMLJobName = std::forward<AutoMLJobNameT>(value); }
54 template<typename AutoMLJobNameT = Aws::String>
55 CreateAutoMLJobRequest& WithAutoMLJobName(AutoMLJobNameT&& value) { SetAutoMLJobName(std::forward<AutoMLJobNameT>(value)); return *this;}
57
59
68 inline const Aws::Vector<AutoMLChannel>& GetInputDataConfig() const { return m_inputDataConfig; }
69 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
70 template<typename InputDataConfigT = Aws::Vector<AutoMLChannel>>
71 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
72 template<typename InputDataConfigT = Aws::Vector<AutoMLChannel>>
73 CreateAutoMLJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
74 template<typename InputDataConfigT = AutoMLChannel>
75 CreateAutoMLJobRequest& AddInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig.emplace_back(std::forward<InputDataConfigT>(value)); return *this; }
77
79
83 inline const AutoMLOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
84 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
85 template<typename OutputDataConfigT = AutoMLOutputDataConfig>
86 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
87 template<typename OutputDataConfigT = AutoMLOutputDataConfig>
88 CreateAutoMLJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
90
92
98 inline ProblemType GetProblemType() const { return m_problemType; }
99 inline bool ProblemTypeHasBeenSet() const { return m_problemTypeHasBeenSet; }
100 inline void SetProblemType(ProblemType value) { m_problemTypeHasBeenSet = true; m_problemType = value; }
101 inline CreateAutoMLJobRequest& WithProblemType(ProblemType value) { SetProblemType(value); return *this;}
103
105
111 inline const AutoMLJobObjective& GetAutoMLJobObjective() const { return m_autoMLJobObjective; }
112 inline bool AutoMLJobObjectiveHasBeenSet() const { return m_autoMLJobObjectiveHasBeenSet; }
113 template<typename AutoMLJobObjectiveT = AutoMLJobObjective>
114 void SetAutoMLJobObjective(AutoMLJobObjectiveT&& value) { m_autoMLJobObjectiveHasBeenSet = true; m_autoMLJobObjective = std::forward<AutoMLJobObjectiveT>(value); }
115 template<typename AutoMLJobObjectiveT = AutoMLJobObjective>
116 CreateAutoMLJobRequest& WithAutoMLJobObjective(AutoMLJobObjectiveT&& value) { SetAutoMLJobObjective(std::forward<AutoMLJobObjectiveT>(value)); return *this;}
118
120
123 inline const AutoMLJobConfig& GetAutoMLJobConfig() const { return m_autoMLJobConfig; }
124 inline bool AutoMLJobConfigHasBeenSet() const { return m_autoMLJobConfigHasBeenSet; }
125 template<typename AutoMLJobConfigT = AutoMLJobConfig>
126 void SetAutoMLJobConfig(AutoMLJobConfigT&& value) { m_autoMLJobConfigHasBeenSet = true; m_autoMLJobConfig = std::forward<AutoMLJobConfigT>(value); }
127 template<typename AutoMLJobConfigT = AutoMLJobConfig>
128 CreateAutoMLJobRequest& WithAutoMLJobConfig(AutoMLJobConfigT&& value) { SetAutoMLJobConfig(std::forward<AutoMLJobConfigT>(value)); return *this;}
130
132
135 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
136 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
137 template<typename RoleArnT = Aws::String>
138 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
139 template<typename RoleArnT = Aws::String>
140 CreateAutoMLJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
142
144
149 inline bool GetGenerateCandidateDefinitionsOnly() const { return m_generateCandidateDefinitionsOnly; }
150 inline bool GenerateCandidateDefinitionsOnlyHasBeenSet() const { return m_generateCandidateDefinitionsOnlyHasBeenSet; }
151 inline void SetGenerateCandidateDefinitionsOnly(bool value) { m_generateCandidateDefinitionsOnlyHasBeenSet = true; m_generateCandidateDefinitionsOnly = value; }
154
156
163 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template<typename TagsT = Aws::Vector<Tag>>
166 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
167 template<typename TagsT = Aws::Vector<Tag>>
168 CreateAutoMLJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
169 template<typename TagsT = Tag>
170 CreateAutoMLJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
172
174
178 inline const ModelDeployConfig& GetModelDeployConfig() const { return m_modelDeployConfig; }
179 inline bool ModelDeployConfigHasBeenSet() const { return m_modelDeployConfigHasBeenSet; }
180 template<typename ModelDeployConfigT = ModelDeployConfig>
181 void SetModelDeployConfig(ModelDeployConfigT&& value) { m_modelDeployConfigHasBeenSet = true; m_modelDeployConfig = std::forward<ModelDeployConfigT>(value); }
182 template<typename ModelDeployConfigT = ModelDeployConfig>
183 CreateAutoMLJobRequest& WithModelDeployConfig(ModelDeployConfigT&& value) { SetModelDeployConfig(std::forward<ModelDeployConfigT>(value)); return *this;}
185 private:
186
187 Aws::String m_autoMLJobName;
188 bool m_autoMLJobNameHasBeenSet = false;
189
190 Aws::Vector<AutoMLChannel> m_inputDataConfig;
191 bool m_inputDataConfigHasBeenSet = false;
192
193 AutoMLOutputDataConfig m_outputDataConfig;
194 bool m_outputDataConfigHasBeenSet = false;
195
196 ProblemType m_problemType{ProblemType::NOT_SET};
197 bool m_problemTypeHasBeenSet = false;
198
199 AutoMLJobObjective m_autoMLJobObjective;
200 bool m_autoMLJobObjectiveHasBeenSet = false;
201
202 AutoMLJobConfig m_autoMLJobConfig;
203 bool m_autoMLJobConfigHasBeenSet = false;
204
205 Aws::String m_roleArn;
206 bool m_roleArnHasBeenSet = false;
207
208 bool m_generateCandidateDefinitionsOnly{false};
209 bool m_generateCandidateDefinitionsOnlyHasBeenSet = false;
210
211 Aws::Vector<Tag> m_tags;
212 bool m_tagsHasBeenSet = false;
213
214 ModelDeployConfig m_modelDeployConfig;
215 bool m_modelDeployConfigHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace SageMaker
220} // namespace Aws
CreateAutoMLJobRequest & WithAutoMLJobName(AutoMLJobNameT &&value)
AWS_SAGEMAKER_API CreateAutoMLJobRequest()=default
CreateAutoMLJobRequest & WithTags(TagsT &&value)
void SetAutoMLJobObjective(AutoMLJobObjectiveT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAutoMLJobRequest & WithAutoMLJobConfig(AutoMLJobConfigT &&value)
CreateAutoMLJobRequest & AddTags(TagsT &&value)
CreateAutoMLJobRequest & WithGenerateCandidateDefinitionsOnly(bool value)
CreateAutoMLJobRequest & WithRoleArn(RoleArnT &&value)
CreateAutoMLJobRequest & AddInputDataConfig(InputDataConfigT &&value)
virtual const char * GetServiceRequestName() const override
const AutoMLOutputDataConfig & GetOutputDataConfig() const
const Aws::Vector< AutoMLChannel > & GetInputDataConfig() const
CreateAutoMLJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
void SetOutputDataConfig(OutputDataConfigT &&value)
CreateAutoMLJobRequest & WithInputDataConfig(InputDataConfigT &&value)
const ModelDeployConfig & GetModelDeployConfig() const
void SetModelDeployConfig(ModelDeployConfigT &&value)
CreateAutoMLJobRequest & WithAutoMLJobObjective(AutoMLJobObjectiveT &&value)
const AutoMLJobObjective & GetAutoMLJobObjective() const
CreateAutoMLJobRequest & WithModelDeployConfig(ModelDeployConfigT &&value)
CreateAutoMLJobRequest & WithProblemType(ProblemType 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