AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DatasetImportJob.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/DataSource.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/personalize/model/ImportMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Personalize
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_PERSONALIZE_API DatasetImportJob() = default;
43 AWS_PERSONALIZE_API DatasetImportJob(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PERSONALIZE_API DatasetImportJob& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetJobName() const { return m_jobName; }
53 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
54 template<typename JobNameT = Aws::String>
55 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
56 template<typename JobNameT = Aws::String>
57 DatasetImportJob& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
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) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::forward<DatasetImportJobArnT>(value); }
68 template<typename DatasetImportJobArnT = Aws::String>
69 DatasetImportJob& WithDatasetImportJobArn(DatasetImportJobArnT&& value) { SetDatasetImportJobArn(std::forward<DatasetImportJobArnT>(value)); return *this;}
71
73
77 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
78 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
79 template<typename DatasetArnT = Aws::String>
80 void SetDatasetArn(DatasetArnT&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::forward<DatasetArnT>(value); }
81 template<typename DatasetArnT = Aws::String>
82 DatasetImportJob& WithDatasetArn(DatasetArnT&& value) { SetDatasetArn(std::forward<DatasetArnT>(value)); return *this;}
84
86
89 inline const DataSource& GetDataSource() const { return m_dataSource; }
90 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
91 template<typename DataSourceT = DataSource>
92 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
93 template<typename DataSourceT = DataSource>
94 DatasetImportJob& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
96
98
102 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 template<typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
106 template<typename RoleArnT = Aws::String>
107 DatasetImportJob& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
109
111
116 inline const Aws::String& GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 template<typename StatusT = Aws::String>
119 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
120 template<typename StatusT = Aws::String>
121 DatasetImportJob& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
129 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
130 template<typename CreationDateTimeT = Aws::Utils::DateTime>
131 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
132 template<typename CreationDateTimeT = Aws::Utils::DateTime>
133 DatasetImportJob& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
141 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
142 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
143 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
144 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
145 DatasetImportJob& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
147
149
152 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
153 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
154 template<typename FailureReasonT = Aws::String>
155 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
156 template<typename FailureReasonT = Aws::String>
157 DatasetImportJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
159
161
164 inline ImportMode GetImportMode() const { return m_importMode; }
165 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
166 inline void SetImportMode(ImportMode value) { m_importModeHasBeenSet = true; m_importMode = value; }
167 inline DatasetImportJob& WithImportMode(ImportMode value) { SetImportMode(value); return *this;}
169
171
174 inline bool GetPublishAttributionMetricsToS3() const { return m_publishAttributionMetricsToS3; }
175 inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; }
176 inline void SetPublishAttributionMetricsToS3(bool value) { m_publishAttributionMetricsToS3HasBeenSet = true; m_publishAttributionMetricsToS3 = value; }
179 private:
180
181 Aws::String m_jobName;
182 bool m_jobNameHasBeenSet = false;
183
184 Aws::String m_datasetImportJobArn;
185 bool m_datasetImportJobArnHasBeenSet = false;
186
187 Aws::String m_datasetArn;
188 bool m_datasetArnHasBeenSet = false;
189
190 DataSource m_dataSource;
191 bool m_dataSourceHasBeenSet = false;
192
193 Aws::String m_roleArn;
194 bool m_roleArnHasBeenSet = false;
195
196 Aws::String m_status;
197 bool m_statusHasBeenSet = false;
198
199 Aws::Utils::DateTime m_creationDateTime{};
200 bool m_creationDateTimeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_lastUpdatedDateTime{};
203 bool m_lastUpdatedDateTimeHasBeenSet = false;
204
205 Aws::String m_failureReason;
206 bool m_failureReasonHasBeenSet = false;
207
208 ImportMode m_importMode{ImportMode::NOT_SET};
209 bool m_importModeHasBeenSet = false;
210
211 bool m_publishAttributionMetricsToS3{false};
212 bool m_publishAttributionMetricsToS3HasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace Personalize
217} // 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