AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateInferenceRecommendationsJobRequest.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/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/RecommendationJobInputConfig.h>
12#include <aws/sagemaker/model/RecommendationJobOutputConfig.h>
13#include <aws/sagemaker/model/RecommendationJobStoppingConditions.h>
14#include <aws/sagemaker/model/RecommendationJobType.h>
15#include <aws/sagemaker/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateInferenceRecommendationsJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateInferenceRecommendationsJob"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
47 inline const Aws::String& GetJobName() const { return m_jobName; }
48 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
49 template <typename JobNameT = Aws::String>
50 void SetJobName(JobNameT&& value) {
51 m_jobNameHasBeenSet = true;
52 m_jobName = std::forward<JobNameT>(value);
53 }
54 template <typename JobNameT = Aws::String>
56 SetJobName(std::forward<JobNameT>(value));
57 return *this;
58 }
60
62
68 inline RecommendationJobType GetJobType() const { return m_jobType; }
69 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
70 inline void SetJobType(RecommendationJobType value) {
71 m_jobTypeHasBeenSet = true;
72 m_jobType = value;
73 }
75 SetJobType(value);
76 return *this;
77 }
79
81
85 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
86 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
87 template <typename RoleArnT = Aws::String>
88 void SetRoleArn(RoleArnT&& value) {
89 m_roleArnHasBeenSet = true;
90 m_roleArn = std::forward<RoleArnT>(value);
91 }
92 template <typename RoleArnT = Aws::String>
94 SetRoleArn(std::forward<RoleArnT>(value));
95 return *this;
96 }
98
100
104 inline const RecommendationJobInputConfig& GetInputConfig() const { return m_inputConfig; }
105 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
106 template <typename InputConfigT = RecommendationJobInputConfig>
107 void SetInputConfig(InputConfigT&& value) {
108 m_inputConfigHasBeenSet = true;
109 m_inputConfig = std::forward<InputConfigT>(value);
110 }
111 template <typename InputConfigT = RecommendationJobInputConfig>
113 SetInputConfig(std::forward<InputConfigT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetJobDescription() const { return m_jobDescription; }
123 inline bool JobDescriptionHasBeenSet() const { return m_jobDescriptionHasBeenSet; }
124 template <typename JobDescriptionT = Aws::String>
125 void SetJobDescription(JobDescriptionT&& value) {
126 m_jobDescriptionHasBeenSet = true;
127 m_jobDescription = std::forward<JobDescriptionT>(value);
128 }
129 template <typename JobDescriptionT = Aws::String>
131 SetJobDescription(std::forward<JobDescriptionT>(value));
132 return *this;
133 }
135
137
141 inline const RecommendationJobStoppingConditions& GetStoppingConditions() const { return m_stoppingConditions; }
142 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
143 template <typename StoppingConditionsT = RecommendationJobStoppingConditions>
144 void SetStoppingConditions(StoppingConditionsT&& value) {
145 m_stoppingConditionsHasBeenSet = true;
146 m_stoppingConditions = std::forward<StoppingConditionsT>(value);
147 }
148 template <typename StoppingConditionsT = RecommendationJobStoppingConditions>
150 SetStoppingConditions(std::forward<StoppingConditionsT>(value));
151 return *this;
152 }
154
156
160 inline const RecommendationJobOutputConfig& GetOutputConfig() const { return m_outputConfig; }
161 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
162 template <typename OutputConfigT = RecommendationJobOutputConfig>
163 void SetOutputConfig(OutputConfigT&& value) {
164 m_outputConfigHasBeenSet = true;
165 m_outputConfig = std::forward<OutputConfigT>(value);
166 }
167 template <typename OutputConfigT = RecommendationJobOutputConfig>
169 SetOutputConfig(std::forward<OutputConfigT>(value));
170 return *this;
171 }
173
175
183 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template <typename TagsT = Aws::Vector<Tag>>
186 void SetTags(TagsT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags = std::forward<TagsT>(value);
189 }
190 template <typename TagsT = Aws::Vector<Tag>>
192 SetTags(std::forward<TagsT>(value));
193 return *this;
194 }
195 template <typename TagsT = Tag>
197 m_tagsHasBeenSet = true;
198 m_tags.emplace_back(std::forward<TagsT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_jobName;
204
206
207 Aws::String m_roleArn;
208
209 RecommendationJobInputConfig m_inputConfig;
210
211 Aws::String m_jobDescription;
212
213 RecommendationJobStoppingConditions m_stoppingConditions;
214
215 RecommendationJobOutputConfig m_outputConfig;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_jobNameHasBeenSet = false;
219 bool m_jobTypeHasBeenSet = false;
220 bool m_roleArnHasBeenSet = false;
221 bool m_inputConfigHasBeenSet = false;
222 bool m_jobDescriptionHasBeenSet = false;
223 bool m_stoppingConditionsHasBeenSet = false;
224 bool m_outputConfigHasBeenSet = false;
225 bool m_tagsHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace SageMaker
230} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceRecommendationsJobRequest & WithJobName(JobNameT &&value)
CreateInferenceRecommendationsJobRequest & WithJobType(RecommendationJobType value)
CreateInferenceRecommendationsJobRequest & WithOutputConfig(OutputConfigT &&value)
CreateInferenceRecommendationsJobRequest & WithInputConfig(InputConfigT &&value)
CreateInferenceRecommendationsJobRequest & WithStoppingConditions(StoppingConditionsT &&value)
CreateInferenceRecommendationsJobRequest & WithRoleArn(RoleArnT &&value)
CreateInferenceRecommendationsJobRequest & WithJobDescription(JobDescriptionT &&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