AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBatchInferenceJobRequest.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/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/BatchInferenceJobConfig.h>
12#include <aws/personalize/model/BatchInferenceJobInput.h>
13#include <aws/personalize/model/BatchInferenceJobMode.h>
14#include <aws/personalize/model/BatchInferenceJobOutput.h>
15#include <aws/personalize/model/Tag.h>
16#include <aws/personalize/model/ThemeGenerationConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Personalize {
22namespace Model {
23
27 public:
28 AWS_PERSONALIZE_API CreateBatchInferenceJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBatchInferenceJob"; }
35
36 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
37
38 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetJobName() const { return m_jobName; }
45 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
46 template <typename JobNameT = Aws::String>
47 void SetJobName(JobNameT&& value) {
48 m_jobNameHasBeenSet = true;
49 m_jobName = std::forward<JobNameT>(value);
50 }
51 template <typename JobNameT = Aws::String>
53 SetJobName(std::forward<JobNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
64 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
65 template <typename SolutionVersionArnT = Aws::String>
66 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
67 m_solutionVersionArnHasBeenSet = true;
68 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
69 }
70 template <typename SolutionVersionArnT = Aws::String>
72 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
85 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
86 template <typename FilterArnT = Aws::String>
87 void SetFilterArn(FilterArnT&& value) {
88 m_filterArnHasBeenSet = true;
89 m_filterArn = std::forward<FilterArnT>(value);
90 }
91 template <typename FilterArnT = Aws::String>
93 SetFilterArn(std::forward<FilterArnT>(value));
94 return *this;
95 }
97
99
102 inline int GetNumResults() const { return m_numResults; }
103 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
104 inline void SetNumResults(int value) {
105 m_numResultsHasBeenSet = true;
106 m_numResults = value;
107 }
109 SetNumResults(value);
110 return *this;
111 }
113
115
119 inline const BatchInferenceJobInput& GetJobInput() const { return m_jobInput; }
120 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
121 template <typename JobInputT = BatchInferenceJobInput>
122 void SetJobInput(JobInputT&& value) {
123 m_jobInputHasBeenSet = true;
124 m_jobInput = std::forward<JobInputT>(value);
125 }
126 template <typename JobInputT = BatchInferenceJobInput>
128 SetJobInput(std::forward<JobInputT>(value));
129 return *this;
130 }
132
134
137 inline const BatchInferenceJobOutput& GetJobOutput() const { return m_jobOutput; }
138 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
139 template <typename JobOutputT = BatchInferenceJobOutput>
140 void SetJobOutput(JobOutputT&& value) {
141 m_jobOutputHasBeenSet = true;
142 m_jobOutput = std::forward<JobOutputT>(value);
143 }
144 template <typename JobOutputT = BatchInferenceJobOutput>
146 SetJobOutput(std::forward<JobOutputT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
158 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
159 template <typename RoleArnT = Aws::String>
160 void SetRoleArn(RoleArnT&& value) {
161 m_roleArnHasBeenSet = true;
162 m_roleArn = std::forward<RoleArnT>(value);
163 }
164 template <typename RoleArnT = Aws::String>
166 SetRoleArn(std::forward<RoleArnT>(value));
167 return *this;
168 }
170
172
175 inline const BatchInferenceJobConfig& GetBatchInferenceJobConfig() const { return m_batchInferenceJobConfig; }
176 inline bool BatchInferenceJobConfigHasBeenSet() const { return m_batchInferenceJobConfigHasBeenSet; }
177 template <typename BatchInferenceJobConfigT = BatchInferenceJobConfig>
178 void SetBatchInferenceJobConfig(BatchInferenceJobConfigT&& value) {
179 m_batchInferenceJobConfigHasBeenSet = true;
180 m_batchInferenceJobConfig = std::forward<BatchInferenceJobConfigT>(value);
181 }
182 template <typename BatchInferenceJobConfigT = BatchInferenceJobConfig>
184 SetBatchInferenceJobConfig(std::forward<BatchInferenceJobConfigT>(value));
185 return *this;
186 }
188
190
195 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Vector<Tag>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Vector<Tag>>
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsT = Tag>
209 m_tagsHasBeenSet = true;
210 m_tags.emplace_back(std::forward<TagsT>(value));
211 return *this;
212 }
214
216
225 inline BatchInferenceJobMode GetBatchInferenceJobMode() const { return m_batchInferenceJobMode; }
226 inline bool BatchInferenceJobModeHasBeenSet() const { return m_batchInferenceJobModeHasBeenSet; }
228 m_batchInferenceJobModeHasBeenSet = true;
229 m_batchInferenceJobMode = value;
230 }
233 return *this;
234 }
236
238
242 inline const ThemeGenerationConfig& GetThemeGenerationConfig() const { return m_themeGenerationConfig; }
243 inline bool ThemeGenerationConfigHasBeenSet() const { return m_themeGenerationConfigHasBeenSet; }
244 template <typename ThemeGenerationConfigT = ThemeGenerationConfig>
245 void SetThemeGenerationConfig(ThemeGenerationConfigT&& value) {
246 m_themeGenerationConfigHasBeenSet = true;
247 m_themeGenerationConfig = std::forward<ThemeGenerationConfigT>(value);
248 }
249 template <typename ThemeGenerationConfigT = ThemeGenerationConfig>
251 SetThemeGenerationConfig(std::forward<ThemeGenerationConfigT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_jobName;
257
258 Aws::String m_solutionVersionArn;
259
260 Aws::String m_filterArn;
261
262 int m_numResults{0};
263
264 BatchInferenceJobInput m_jobInput;
265
266 BatchInferenceJobOutput m_jobOutput;
267
268 Aws::String m_roleArn;
269
270 BatchInferenceJobConfig m_batchInferenceJobConfig;
271
272 Aws::Vector<Tag> m_tags;
273
275
276 ThemeGenerationConfig m_themeGenerationConfig;
277 bool m_jobNameHasBeenSet = false;
278 bool m_solutionVersionArnHasBeenSet = false;
279 bool m_filterArnHasBeenSet = false;
280 bool m_numResultsHasBeenSet = false;
281 bool m_jobInputHasBeenSet = false;
282 bool m_jobOutputHasBeenSet = false;
283 bool m_roleArnHasBeenSet = false;
284 bool m_batchInferenceJobConfigHasBeenSet = false;
285 bool m_tagsHasBeenSet = false;
286 bool m_batchInferenceJobModeHasBeenSet = false;
287 bool m_themeGenerationConfigHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace Personalize
292} // namespace Aws
CreateBatchInferenceJobRequest & WithBatchInferenceJobMode(BatchInferenceJobMode value)
CreateBatchInferenceJobRequest & WithRoleArn(RoleArnT &&value)
CreateBatchInferenceJobRequest & WithJobInput(JobInputT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateBatchInferenceJobRequest & WithJobOutput(JobOutputT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API CreateBatchInferenceJobRequest()=default
CreateBatchInferenceJobRequest & WithThemeGenerationConfig(ThemeGenerationConfigT &&value)
CreateBatchInferenceJobRequest & WithJobName(JobNameT &&value)
CreateBatchInferenceJobRequest & WithSolutionVersionArn(SolutionVersionArnT &&value)
CreateBatchInferenceJobRequest & WithBatchInferenceJobConfig(BatchInferenceJobConfigT &&value)
CreateBatchInferenceJobRequest & WithFilterArn(FilterArnT &&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