AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBatchInferenceJobRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/BatchInferenceJobInput.h>
11#include <aws/personalize/model/BatchInferenceJobOutput.h>
12#include <aws/personalize/model/BatchInferenceJobConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/personalize/model/BatchInferenceJobMode.h>
15#include <aws/personalize/model/ThemeGenerationConfig.h>
16#include <aws/personalize/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Personalize
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_PERSONALIZE_API CreateBatchInferenceJobRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateBatchInferenceJob"; }
38
39 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
40
41 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetJobName() const{ return m_jobName; }
49 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
50 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
51 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
52 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
53 inline CreateBatchInferenceJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
54 inline CreateBatchInferenceJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
55 inline CreateBatchInferenceJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
57
59
63 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
64 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
65 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
66 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
67 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
70 inline CreateBatchInferenceJobRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
72
74
80 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
81 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
82 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
83 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
84 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
85 inline CreateBatchInferenceJobRequest& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
86 inline CreateBatchInferenceJobRequest& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
87 inline CreateBatchInferenceJobRequest& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
89
91
94 inline int GetNumResults() const{ return m_numResults; }
95 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
96 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
97 inline CreateBatchInferenceJobRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
99
101
105 inline const BatchInferenceJobInput& GetJobInput() const{ return m_jobInput; }
106 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
107 inline void SetJobInput(const BatchInferenceJobInput& value) { m_jobInputHasBeenSet = true; m_jobInput = value; }
108 inline void SetJobInput(BatchInferenceJobInput&& value) { m_jobInputHasBeenSet = true; m_jobInput = std::move(value); }
110 inline CreateBatchInferenceJobRequest& WithJobInput(BatchInferenceJobInput&& value) { SetJobInput(std::move(value)); return *this;}
112
114
117 inline const BatchInferenceJobOutput& GetJobOutput() const{ return m_jobOutput; }
118 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
119 inline void SetJobOutput(const BatchInferenceJobOutput& value) { m_jobOutputHasBeenSet = true; m_jobOutput = value; }
120 inline void SetJobOutput(BatchInferenceJobOutput&& value) { m_jobOutputHasBeenSet = true; m_jobOutput = std::move(value); }
122 inline CreateBatchInferenceJobRequest& WithJobOutput(BatchInferenceJobOutput&& value) { SetJobOutput(std::move(value)); return *this;}
124
126
131 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
132 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
133 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
134 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
135 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
136 inline CreateBatchInferenceJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
137 inline CreateBatchInferenceJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
138 inline CreateBatchInferenceJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
140
142
145 inline const BatchInferenceJobConfig& GetBatchInferenceJobConfig() const{ return m_batchInferenceJobConfig; }
146 inline bool BatchInferenceJobConfigHasBeenSet() const { return m_batchInferenceJobConfigHasBeenSet; }
147 inline void SetBatchInferenceJobConfig(const BatchInferenceJobConfig& value) { m_batchInferenceJobConfigHasBeenSet = true; m_batchInferenceJobConfig = value; }
148 inline void SetBatchInferenceJobConfig(BatchInferenceJobConfig&& value) { m_batchInferenceJobConfigHasBeenSet = true; m_batchInferenceJobConfig = std::move(value); }
152
154
159 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
162 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline CreateBatchInferenceJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164 inline CreateBatchInferenceJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
165 inline CreateBatchInferenceJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
166 inline CreateBatchInferenceJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
168
170
179 inline const BatchInferenceJobMode& GetBatchInferenceJobMode() const{ return m_batchInferenceJobMode; }
180 inline bool BatchInferenceJobModeHasBeenSet() const { return m_batchInferenceJobModeHasBeenSet; }
181 inline void SetBatchInferenceJobMode(const BatchInferenceJobMode& value) { m_batchInferenceJobModeHasBeenSet = true; m_batchInferenceJobMode = value; }
182 inline void SetBatchInferenceJobMode(BatchInferenceJobMode&& value) { m_batchInferenceJobModeHasBeenSet = true; m_batchInferenceJobMode = std::move(value); }
186
188
192 inline const ThemeGenerationConfig& GetThemeGenerationConfig() const{ return m_themeGenerationConfig; }
193 inline bool ThemeGenerationConfigHasBeenSet() const { return m_themeGenerationConfigHasBeenSet; }
194 inline void SetThemeGenerationConfig(const ThemeGenerationConfig& value) { m_themeGenerationConfigHasBeenSet = true; m_themeGenerationConfig = value; }
195 inline void SetThemeGenerationConfig(ThemeGenerationConfig&& value) { m_themeGenerationConfigHasBeenSet = true; m_themeGenerationConfig = std::move(value); }
199 private:
200
201 Aws::String m_jobName;
202 bool m_jobNameHasBeenSet = false;
203
204 Aws::String m_solutionVersionArn;
205 bool m_solutionVersionArnHasBeenSet = false;
206
207 Aws::String m_filterArn;
208 bool m_filterArnHasBeenSet = false;
209
210 int m_numResults;
211 bool m_numResultsHasBeenSet = false;
212
213 BatchInferenceJobInput m_jobInput;
214 bool m_jobInputHasBeenSet = false;
215
216 BatchInferenceJobOutput m_jobOutput;
217 bool m_jobOutputHasBeenSet = false;
218
219 Aws::String m_roleArn;
220 bool m_roleArnHasBeenSet = false;
221
222 BatchInferenceJobConfig m_batchInferenceJobConfig;
223 bool m_batchInferenceJobConfigHasBeenSet = false;
224
225 Aws::Vector<Tag> m_tags;
226 bool m_tagsHasBeenSet = false;
227
228 BatchInferenceJobMode m_batchInferenceJobMode;
229 bool m_batchInferenceJobModeHasBeenSet = false;
230
231 ThemeGenerationConfig m_themeGenerationConfig;
232 bool m_themeGenerationConfigHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Personalize
237} // namespace Aws
CreateBatchInferenceJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateBatchInferenceJobRequest & WithJobInput(const BatchInferenceJobInput &value)
void SetBatchInferenceJobConfig(const BatchInferenceJobConfig &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBatchInferenceJobRequest & AddTags(const Tag &value)
CreateBatchInferenceJobRequest & WithBatchInferenceJobConfig(BatchInferenceJobConfig &&value)
CreateBatchInferenceJobRequest & WithRoleArn(Aws::String &&value)
CreateBatchInferenceJobRequest & WithJobName(const Aws::String &value)
CreateBatchInferenceJobRequest & WithJobInput(BatchInferenceJobInput &&value)
CreateBatchInferenceJobRequest & WithRoleArn(const char *value)
CreateBatchInferenceJobRequest & WithFilterArn(const char *value)
CreateBatchInferenceJobRequest & WithSolutionVersionArn(const char *value)
CreateBatchInferenceJobRequest & WithJobOutput(const BatchInferenceJobOutput &value)
CreateBatchInferenceJobRequest & WithJobName(const char *value)
CreateBatchInferenceJobRequest & WithFilterArn(const Aws::String &value)
CreateBatchInferenceJobRequest & WithRoleArn(const Aws::String &value)
CreateBatchInferenceJobRequest & WithBatchInferenceJobMode(const BatchInferenceJobMode &value)
CreateBatchInferenceJobRequest & WithJobOutput(BatchInferenceJobOutput &&value)
CreateBatchInferenceJobRequest & WithSolutionVersionArn(Aws::String &&value)
CreateBatchInferenceJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateBatchInferenceJobRequest & WithBatchInferenceJobConfig(const BatchInferenceJobConfig &value)
CreateBatchInferenceJobRequest & WithThemeGenerationConfig(ThemeGenerationConfig &&value)
CreateBatchInferenceJobRequest & WithJobName(Aws::String &&value)
CreateBatchInferenceJobRequest & WithThemeGenerationConfig(const ThemeGenerationConfig &value)
CreateBatchInferenceJobRequest & WithBatchInferenceJobMode(BatchInferenceJobMode &&value)
CreateBatchInferenceJobRequest & WithSolutionVersionArn(const Aws::String &value)
CreateBatchInferenceJobRequest & WithFilterArn(Aws::String &&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