AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBatchSegmentJobRequest.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/BatchSegmentJobInput.h>
12#include <aws/personalize/model/BatchSegmentJobOutput.h>
13#include <aws/personalize/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Personalize {
19namespace Model {
20
24 public:
25 AWS_PERSONALIZE_API CreateBatchSegmentJobRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBatchSegmentJob"; }
32
33 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
34
35 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetJobName() const { return m_jobName; }
42 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
43 template <typename JobNameT = Aws::String>
44 void SetJobName(JobNameT&& value) {
45 m_jobNameHasBeenSet = true;
46 m_jobName = std::forward<JobNameT>(value);
47 }
48 template <typename JobNameT = Aws::String>
50 SetJobName(std::forward<JobNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
61 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
62 template <typename SolutionVersionArnT = Aws::String>
63 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
64 m_solutionVersionArnHasBeenSet = true;
65 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
66 }
67 template <typename SolutionVersionArnT = Aws::String>
69 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
82 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
83 template <typename FilterArnT = Aws::String>
84 void SetFilterArn(FilterArnT&& value) {
85 m_filterArnHasBeenSet = true;
86 m_filterArn = std::forward<FilterArnT>(value);
87 }
88 template <typename FilterArnT = Aws::String>
90 SetFilterArn(std::forward<FilterArnT>(value));
91 return *this;
92 }
94
96
100 inline int GetNumResults() const { return m_numResults; }
101 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
102 inline void SetNumResults(int value) {
103 m_numResultsHasBeenSet = true;
104 m_numResults = value;
105 }
107 SetNumResults(value);
108 return *this;
109 }
111
113
117 inline const BatchSegmentJobInput& GetJobInput() const { return m_jobInput; }
118 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
119 template <typename JobInputT = BatchSegmentJobInput>
120 void SetJobInput(JobInputT&& value) {
121 m_jobInputHasBeenSet = true;
122 m_jobInput = std::forward<JobInputT>(value);
123 }
124 template <typename JobInputT = BatchSegmentJobInput>
126 SetJobInput(std::forward<JobInputT>(value));
127 return *this;
128 }
130
132
135 inline const BatchSegmentJobOutput& GetJobOutput() const { return m_jobOutput; }
136 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
137 template <typename JobOutputT = BatchSegmentJobOutput>
138 void SetJobOutput(JobOutputT&& value) {
139 m_jobOutputHasBeenSet = true;
140 m_jobOutput = std::forward<JobOutputT>(value);
141 }
142 template <typename JobOutputT = BatchSegmentJobOutput>
144 SetJobOutput(std::forward<JobOutputT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
156 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
157 template <typename RoleArnT = Aws::String>
158 void SetRoleArn(RoleArnT&& value) {
159 m_roleArnHasBeenSet = true;
160 m_roleArn = std::forward<RoleArnT>(value);
161 }
162 template <typename RoleArnT = Aws::String>
164 SetRoleArn(std::forward<RoleArnT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Vector<Tag>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Vector<Tag>>
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsT = Tag>
189 m_tagsHasBeenSet = true;
190 m_tags.emplace_back(std::forward<TagsT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_jobName;
196
197 Aws::String m_solutionVersionArn;
198
199 Aws::String m_filterArn;
200
201 int m_numResults{0};
202
203 BatchSegmentJobInput m_jobInput;
204
205 BatchSegmentJobOutput m_jobOutput;
206
207 Aws::String m_roleArn;
208
209 Aws::Vector<Tag> m_tags;
210 bool m_jobNameHasBeenSet = false;
211 bool m_solutionVersionArnHasBeenSet = false;
212 bool m_filterArnHasBeenSet = false;
213 bool m_numResultsHasBeenSet = false;
214 bool m_jobInputHasBeenSet = false;
215 bool m_jobOutputHasBeenSet = false;
216 bool m_roleArnHasBeenSet = false;
217 bool m_tagsHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Personalize
222} // namespace Aws
CreateBatchSegmentJobRequest & WithJobInput(JobInputT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateBatchSegmentJobRequest & WithFilterArn(FilterArnT &&value)
CreateBatchSegmentJobRequest & WithJobName(JobNameT &&value)
CreateBatchSegmentJobRequest & WithRoleArn(RoleArnT &&value)
CreateBatchSegmentJobRequest & WithTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBatchSegmentJobRequest & WithSolutionVersionArn(SolutionVersionArnT &&value)
CreateBatchSegmentJobRequest & WithJobOutput(JobOutputT &&value)
CreateBatchSegmentJobRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API CreateBatchSegmentJobRequest()=default
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