AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
BatchSegmentJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/BatchSegmentJobInput.h>
11#include <aws/personalize/model/BatchSegmentJobOutput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize {
23namespace Model {
24
31 public:
32 AWS_PERSONALIZE_API BatchSegmentJob() = default;
33 AWS_PERSONALIZE_API BatchSegmentJob(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZE_API BatchSegmentJob& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
49 BatchSegmentJob& WithJobName(JobNameT&& value) {
50 SetJobName(std::forward<JobNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetBatchSegmentJobArn() const { return m_batchSegmentJobArn; }
60 inline bool BatchSegmentJobArnHasBeenSet() const { return m_batchSegmentJobArnHasBeenSet; }
61 template <typename BatchSegmentJobArnT = Aws::String>
62 void SetBatchSegmentJobArn(BatchSegmentJobArnT&& value) {
63 m_batchSegmentJobArnHasBeenSet = true;
64 m_batchSegmentJobArn = std::forward<BatchSegmentJobArnT>(value);
65 }
66 template <typename BatchSegmentJobArnT = Aws::String>
67 BatchSegmentJob& WithBatchSegmentJobArn(BatchSegmentJobArnT&& value) {
68 SetBatchSegmentJobArn(std::forward<BatchSegmentJobArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
78 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
79 template <typename FilterArnT = Aws::String>
80 void SetFilterArn(FilterArnT&& value) {
81 m_filterArnHasBeenSet = true;
82 m_filterArn = std::forward<FilterArnT>(value);
83 }
84 template <typename FilterArnT = Aws::String>
85 BatchSegmentJob& WithFilterArn(FilterArnT&& value) {
86 SetFilterArn(std::forward<FilterArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
96 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
97 template <typename FailureReasonT = Aws::String>
98 void SetFailureReason(FailureReasonT&& value) {
99 m_failureReasonHasBeenSet = true;
100 m_failureReason = std::forward<FailureReasonT>(value);
101 }
102 template <typename FailureReasonT = Aws::String>
103 BatchSegmentJob& WithFailureReason(FailureReasonT&& value) {
104 SetFailureReason(std::forward<FailureReasonT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
115 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
116 template <typename SolutionVersionArnT = Aws::String>
117 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
118 m_solutionVersionArnHasBeenSet = true;
119 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
120 }
121 template <typename SolutionVersionArnT = Aws::String>
122 BatchSegmentJob& WithSolutionVersionArn(SolutionVersionArnT&& value) {
123 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
124 return *this;
125 }
127
129
133 inline int GetNumResults() const { return m_numResults; }
134 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
135 inline void SetNumResults(int value) {
136 m_numResultsHasBeenSet = true;
137 m_numResults = value;
138 }
139 inline BatchSegmentJob& WithNumResults(int value) {
140 SetNumResults(value);
141 return *this;
142 }
144
146
150 inline const BatchSegmentJobInput& GetJobInput() const { return m_jobInput; }
151 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
152 template <typename JobInputT = BatchSegmentJobInput>
153 void SetJobInput(JobInputT&& value) {
154 m_jobInputHasBeenSet = true;
155 m_jobInput = std::forward<JobInputT>(value);
156 }
157 template <typename JobInputT = BatchSegmentJobInput>
158 BatchSegmentJob& WithJobInput(JobInputT&& value) {
159 SetJobInput(std::forward<JobInputT>(value));
160 return *this;
161 }
163
165
169 inline const BatchSegmentJobOutput& GetJobOutput() const { return m_jobOutput; }
170 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
171 template <typename JobOutputT = BatchSegmentJobOutput>
172 void SetJobOutput(JobOutputT&& value) {
173 m_jobOutputHasBeenSet = true;
174 m_jobOutput = std::forward<JobOutputT>(value);
175 }
176 template <typename JobOutputT = BatchSegmentJobOutput>
177 BatchSegmentJob& WithJobOutput(JobOutputT&& value) {
178 SetJobOutput(std::forward<JobOutputT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
189 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
190 template <typename RoleArnT = Aws::String>
191 void SetRoleArn(RoleArnT&& value) {
192 m_roleArnHasBeenSet = true;
193 m_roleArn = std::forward<RoleArnT>(value);
194 }
195 template <typename RoleArnT = Aws::String>
196 BatchSegmentJob& WithRoleArn(RoleArnT&& value) {
197 SetRoleArn(std::forward<RoleArnT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::String& GetStatus() const { return m_status; }
209 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
210 template <typename StatusT = Aws::String>
211 void SetStatus(StatusT&& value) {
212 m_statusHasBeenSet = true;
213 m_status = std::forward<StatusT>(value);
214 }
215 template <typename StatusT = Aws::String>
216 BatchSegmentJob& WithStatus(StatusT&& value) {
217 SetStatus(std::forward<StatusT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
227 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
228 template <typename CreationDateTimeT = Aws::Utils::DateTime>
229 void SetCreationDateTime(CreationDateTimeT&& value) {
230 m_creationDateTimeHasBeenSet = true;
231 m_creationDateTime = std::forward<CreationDateTimeT>(value);
232 }
233 template <typename CreationDateTimeT = Aws::Utils::DateTime>
234 BatchSegmentJob& WithCreationDateTime(CreationDateTimeT&& value) {
235 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
245 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
246 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
247 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
248 m_lastUpdatedDateTimeHasBeenSet = true;
249 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
250 }
251 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
252 BatchSegmentJob& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
253 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
254 return *this;
255 }
257 private:
258 Aws::String m_jobName;
259
260 Aws::String m_batchSegmentJobArn;
261
262 Aws::String m_filterArn;
263
264 Aws::String m_failureReason;
265
266 Aws::String m_solutionVersionArn;
267
268 int m_numResults{0};
269
270 BatchSegmentJobInput m_jobInput;
271
272 BatchSegmentJobOutput m_jobOutput;
273
274 Aws::String m_roleArn;
275
276 Aws::String m_status;
277
278 Aws::Utils::DateTime m_creationDateTime{};
279
280 Aws::Utils::DateTime m_lastUpdatedDateTime{};
281 bool m_jobNameHasBeenSet = false;
282 bool m_batchSegmentJobArnHasBeenSet = false;
283 bool m_filterArnHasBeenSet = false;
284 bool m_failureReasonHasBeenSet = false;
285 bool m_solutionVersionArnHasBeenSet = false;
286 bool m_numResultsHasBeenSet = false;
287 bool m_jobInputHasBeenSet = false;
288 bool m_jobOutputHasBeenSet = false;
289 bool m_roleArnHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_creationDateTimeHasBeenSet = false;
292 bool m_lastUpdatedDateTimeHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace Personalize
297} // namespace Aws
AWS_PERSONALIZE_API BatchSegmentJob(Aws::Utils::Json::JsonView jsonValue)
BatchSegmentJob & WithRoleArn(RoleArnT &&value)
BatchSegmentJob & WithBatchSegmentJobArn(BatchSegmentJobArnT &&value)
BatchSegmentJob & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetCreationDateTime(CreationDateTimeT &&value)
void SetBatchSegmentJobArn(BatchSegmentJobArnT &&value)
BatchSegmentJob & WithJobInput(JobInputT &&value)
BatchSegmentJob & WithCreationDateTime(CreationDateTimeT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
const Aws::String & GetSolutionVersionArn() const
BatchSegmentJob & WithFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
BatchSegmentJob & WithFilterArn(FilterArnT &&value)
BatchSegmentJob & WithJobOutput(JobOutputT &&value)
const Aws::String & GetFilterArn() const
BatchSegmentJob & WithNumResults(int value)
const Aws::String & GetRoleArn() const
BatchSegmentJob & WithJobName(JobNameT &&value)
void SetFailureReason(FailureReasonT &&value)
const BatchSegmentJobOutput & GetJobOutput() const
AWS_PERSONALIZE_API BatchSegmentJob & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobName() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::String & GetFailureReason() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchSegmentJob & WithStatus(StatusT &&value)
const Aws::String & GetBatchSegmentJobArn() const
BatchSegmentJob & WithSolutionVersionArn(SolutionVersionArnT &&value)
const Aws::String & GetStatus() const
const BatchSegmentJobInput & GetJobInput() const
AWS_PERSONALIZE_API BatchSegmentJob()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue