AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateInferenceRecommendationsJobRequest.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/RecommendationJobType.h>
11#include <aws/sagemaker/model/RecommendationJobInputConfig.h>
12#include <aws/sagemaker/model/RecommendationJobStoppingConditions.h>
13#include <aws/sagemaker/model/RecommendationJobOutputConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.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:
30 AWS_SAGEMAKER_API CreateInferenceRecommendationsJobRequest() = default;
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 "CreateInferenceRecommendationsJob"; }
37
38 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
51 inline const Aws::String& GetJobName() const { return m_jobName; }
52 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
53 template<typename JobNameT = Aws::String>
54 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
55 template<typename JobNameT = Aws::String>
56 CreateInferenceRecommendationsJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
58
60
66 inline RecommendationJobType GetJobType() const { return m_jobType; }
67 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
68 inline void SetJobType(RecommendationJobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
71
73
77 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
78 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
79 template<typename RoleArnT = Aws::String>
80 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
81 template<typename RoleArnT = Aws::String>
82 CreateInferenceRecommendationsJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
84
86
90 inline const RecommendationJobInputConfig& GetInputConfig() const { return m_inputConfig; }
91 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
92 template<typename InputConfigT = RecommendationJobInputConfig>
93 void SetInputConfig(InputConfigT&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::forward<InputConfigT>(value); }
94 template<typename InputConfigT = RecommendationJobInputConfig>
95 CreateInferenceRecommendationsJobRequest& WithInputConfig(InputConfigT&& value) { SetInputConfig(std::forward<InputConfigT>(value)); return *this;}
97
99
102 inline const Aws::String& GetJobDescription() const { return m_jobDescription; }
103 inline bool JobDescriptionHasBeenSet() const { return m_jobDescriptionHasBeenSet; }
104 template<typename JobDescriptionT = Aws::String>
105 void SetJobDescription(JobDescriptionT&& value) { m_jobDescriptionHasBeenSet = true; m_jobDescription = std::forward<JobDescriptionT>(value); }
106 template<typename JobDescriptionT = Aws::String>
107 CreateInferenceRecommendationsJobRequest& WithJobDescription(JobDescriptionT&& value) { SetJobDescription(std::forward<JobDescriptionT>(value)); return *this;}
109
111
115 inline const RecommendationJobStoppingConditions& GetStoppingConditions() const { return m_stoppingConditions; }
116 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
117 template<typename StoppingConditionsT = RecommendationJobStoppingConditions>
118 void SetStoppingConditions(StoppingConditionsT&& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = std::forward<StoppingConditionsT>(value); }
119 template<typename StoppingConditionsT = RecommendationJobStoppingConditions>
120 CreateInferenceRecommendationsJobRequest& WithStoppingConditions(StoppingConditionsT&& value) { SetStoppingConditions(std::forward<StoppingConditionsT>(value)); return *this;}
122
124
128 inline const RecommendationJobOutputConfig& GetOutputConfig() const { return m_outputConfig; }
129 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
130 template<typename OutputConfigT = RecommendationJobOutputConfig>
131 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
132 template<typename OutputConfigT = RecommendationJobOutputConfig>
133 CreateInferenceRecommendationsJobRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
135
137
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Vector<Tag>>
150 CreateInferenceRecommendationsJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsT = Tag>
152 CreateInferenceRecommendationsJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
154 private:
155
156 Aws::String m_jobName;
157 bool m_jobNameHasBeenSet = false;
158
160 bool m_jobTypeHasBeenSet = false;
161
162 Aws::String m_roleArn;
163 bool m_roleArnHasBeenSet = false;
164
165 RecommendationJobInputConfig m_inputConfig;
166 bool m_inputConfigHasBeenSet = false;
167
168 Aws::String m_jobDescription;
169 bool m_jobDescriptionHasBeenSet = false;
170
171 RecommendationJobStoppingConditions m_stoppingConditions;
172 bool m_stoppingConditionsHasBeenSet = false;
173
174 RecommendationJobOutputConfig m_outputConfig;
175 bool m_outputConfigHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SageMaker
183} // 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