AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DatasetImportJob.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/DataSource.h>
11#include <aws/personalize/model/ImportMode.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
36 public:
37 AWS_PERSONALIZE_API DatasetImportJob() = default;
38 AWS_PERSONALIZE_API DatasetImportJob(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API DatasetImportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetJobName() const { return m_jobName; }
47 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
48 template <typename JobNameT = Aws::String>
49 void SetJobName(JobNameT&& value) {
50 m_jobNameHasBeenSet = true;
51 m_jobName = std::forward<JobNameT>(value);
52 }
53 template <typename JobNameT = Aws::String>
54 DatasetImportJob& WithJobName(JobNameT&& value) {
55 SetJobName(std::forward<JobNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDatasetImportJobArn() const { return m_datasetImportJobArn; }
65 inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
66 template <typename DatasetImportJobArnT = Aws::String>
67 void SetDatasetImportJobArn(DatasetImportJobArnT&& value) {
68 m_datasetImportJobArnHasBeenSet = true;
69 m_datasetImportJobArn = std::forward<DatasetImportJobArnT>(value);
70 }
71 template <typename DatasetImportJobArnT = Aws::String>
72 DatasetImportJob& WithDatasetImportJobArn(DatasetImportJobArnT&& value) {
73 SetDatasetImportJobArn(std::forward<DatasetImportJobArnT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
84 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
85 template <typename DatasetArnT = Aws::String>
86 void SetDatasetArn(DatasetArnT&& value) {
87 m_datasetArnHasBeenSet = true;
88 m_datasetArn = std::forward<DatasetArnT>(value);
89 }
90 template <typename DatasetArnT = Aws::String>
91 DatasetImportJob& WithDatasetArn(DatasetArnT&& value) {
92 SetDatasetArn(std::forward<DatasetArnT>(value));
93 return *this;
94 }
96
98
101 inline const DataSource& GetDataSource() const { return m_dataSource; }
102 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
103 template <typename DataSourceT = DataSource>
104 void SetDataSource(DataSourceT&& value) {
105 m_dataSourceHasBeenSet = true;
106 m_dataSource = std::forward<DataSourceT>(value);
107 }
108 template <typename DataSourceT = DataSource>
109 DatasetImportJob& WithDataSource(DataSourceT&& value) {
110 SetDataSource(std::forward<DataSourceT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 template <typename RoleArnT = Aws::String>
123 void SetRoleArn(RoleArnT&& value) {
124 m_roleArnHasBeenSet = true;
125 m_roleArn = std::forward<RoleArnT>(value);
126 }
127 template <typename RoleArnT = Aws::String>
128 DatasetImportJob& WithRoleArn(RoleArnT&& value) {
129 SetRoleArn(std::forward<RoleArnT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 template <typename StatusT = Aws::String>
143 void SetStatus(StatusT&& value) {
144 m_statusHasBeenSet = true;
145 m_status = std::forward<StatusT>(value);
146 }
147 template <typename StatusT = Aws::String>
148 DatasetImportJob& WithStatus(StatusT&& value) {
149 SetStatus(std::forward<StatusT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
159 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
160 template <typename CreationDateTimeT = Aws::Utils::DateTime>
161 void SetCreationDateTime(CreationDateTimeT&& value) {
162 m_creationDateTimeHasBeenSet = true;
163 m_creationDateTime = std::forward<CreationDateTimeT>(value);
164 }
165 template <typename CreationDateTimeT = Aws::Utils::DateTime>
166 DatasetImportJob& WithCreationDateTime(CreationDateTimeT&& value) {
167 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
177 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
178 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
179 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
180 m_lastUpdatedDateTimeHasBeenSet = true;
181 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
182 }
183 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
184 DatasetImportJob& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
185 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
195 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
196 template <typename FailureReasonT = Aws::String>
197 void SetFailureReason(FailureReasonT&& value) {
198 m_failureReasonHasBeenSet = true;
199 m_failureReason = std::forward<FailureReasonT>(value);
200 }
201 template <typename FailureReasonT = Aws::String>
202 DatasetImportJob& WithFailureReason(FailureReasonT&& value) {
203 SetFailureReason(std::forward<FailureReasonT>(value));
204 return *this;
205 }
207
209
212 inline ImportMode GetImportMode() const { return m_importMode; }
213 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
214 inline void SetImportMode(ImportMode value) {
215 m_importModeHasBeenSet = true;
216 m_importMode = value;
217 }
219 SetImportMode(value);
220 return *this;
221 }
223
225
228 inline bool GetPublishAttributionMetricsToS3() const { return m_publishAttributionMetricsToS3; }
229 inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; }
230 inline void SetPublishAttributionMetricsToS3(bool value) {
231 m_publishAttributionMetricsToS3HasBeenSet = true;
232 m_publishAttributionMetricsToS3 = value;
233 }
236 return *this;
237 }
239 private:
240 Aws::String m_jobName;
241
242 Aws::String m_datasetImportJobArn;
243
244 Aws::String m_datasetArn;
245
246 DataSource m_dataSource;
247
248 Aws::String m_roleArn;
249
250 Aws::String m_status;
251
252 Aws::Utils::DateTime m_creationDateTime{};
253
254 Aws::Utils::DateTime m_lastUpdatedDateTime{};
255
256 Aws::String m_failureReason;
257
258 ImportMode m_importMode{ImportMode::NOT_SET};
259
260 bool m_publishAttributionMetricsToS3{false};
261 bool m_jobNameHasBeenSet = false;
262 bool m_datasetImportJobArnHasBeenSet = false;
263 bool m_datasetArnHasBeenSet = false;
264 bool m_dataSourceHasBeenSet = false;
265 bool m_roleArnHasBeenSet = false;
266 bool m_statusHasBeenSet = false;
267 bool m_creationDateTimeHasBeenSet = false;
268 bool m_lastUpdatedDateTimeHasBeenSet = false;
269 bool m_failureReasonHasBeenSet = false;
270 bool m_importModeHasBeenSet = false;
271 bool m_publishAttributionMetricsToS3HasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace Personalize
276} // namespace Aws
const Aws::String & GetDatasetImportJobArn() const
void SetDatasetImportJobArn(DatasetImportJobArnT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::String & GetDatasetArn() const
DatasetImportJob & WithJobName(JobNameT &&value)
DatasetImportJob & WithDatasetArn(DatasetArnT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
DatasetImportJob & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API DatasetImportJob & operator=(Aws::Utils::Json::JsonView jsonValue)
DatasetImportJob & WithFailureReason(FailureReasonT &&value)
DatasetImportJob & WithPublishAttributionMetricsToS3(bool value)
DatasetImportJob & WithDatasetImportJobArn(DatasetImportJobArnT &&value)
DatasetImportJob & WithImportMode(ImportMode value)
DatasetImportJob & WithDataSource(DataSourceT &&value)
AWS_PERSONALIZE_API DatasetImportJob()=default
void SetFailureReason(FailureReasonT &&value)
AWS_PERSONALIZE_API DatasetImportJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationDateTime() const
DatasetImportJob & WithStatus(StatusT &&value)
DatasetImportJob & WithCreationDateTime(CreationDateTimeT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DatasetImportJob & WithRoleArn(RoleArnT &&value)
const Aws::String & GetFailureReason() const
void SetCreationDateTime(CreationDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue