AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DataDeletionJob.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
34 public:
35 AWS_PERSONALIZE_API DataDeletionJob() = default;
36 AWS_PERSONALIZE_API DataDeletionJob(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API DataDeletionJob& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobName() const { return m_jobName; }
45 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
46 template <typename JobNameT = Aws::String>
47 void SetJobName(JobNameT&& value) {
48 m_jobNameHasBeenSet = true;
49 m_jobName = std::forward<JobNameT>(value);
50 }
51 template <typename JobNameT = Aws::String>
52 DataDeletionJob& WithJobName(JobNameT&& value) {
53 SetJobName(std::forward<JobNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDataDeletionJobArn() const { return m_dataDeletionJobArn; }
63 inline bool DataDeletionJobArnHasBeenSet() const { return m_dataDeletionJobArnHasBeenSet; }
64 template <typename DataDeletionJobArnT = Aws::String>
65 void SetDataDeletionJobArn(DataDeletionJobArnT&& value) {
66 m_dataDeletionJobArnHasBeenSet = true;
67 m_dataDeletionJobArn = std::forward<DataDeletionJobArnT>(value);
68 }
69 template <typename DataDeletionJobArnT = Aws::String>
70 DataDeletionJob& WithDataDeletionJobArn(DataDeletionJobArnT&& value) {
71 SetDataDeletionJobArn(std::forward<DataDeletionJobArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
82 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
83 template <typename DatasetGroupArnT = Aws::String>
84 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
85 m_datasetGroupArnHasBeenSet = true;
86 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
87 }
88 template <typename DatasetGroupArnT = Aws::String>
89 DataDeletionJob& WithDatasetGroupArn(DatasetGroupArnT&& value) {
90 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
91 return *this;
92 }
94
96
97 inline const DataSource& GetDataSource() const { return m_dataSource; }
98 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
99 template <typename DataSourceT = DataSource>
100 void SetDataSource(DataSourceT&& value) {
101 m_dataSourceHasBeenSet = true;
102 m_dataSource = std::forward<DataSourceT>(value);
103 }
104 template <typename DataSourceT = DataSource>
105 DataDeletionJob& WithDataSource(DataSourceT&& value) {
106 SetDataSource(std::forward<DataSourceT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 template <typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) {
120 m_roleArnHasBeenSet = true;
121 m_roleArn = std::forward<RoleArnT>(value);
122 }
123 template <typename RoleArnT = Aws::String>
124 DataDeletionJob& WithRoleArn(RoleArnT&& value) {
125 SetRoleArn(std::forward<RoleArnT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 template <typename StatusT = Aws::String>
139 void SetStatus(StatusT&& value) {
140 m_statusHasBeenSet = true;
141 m_status = std::forward<StatusT>(value);
142 }
143 template <typename StatusT = Aws::String>
144 DataDeletionJob& WithStatus(StatusT&& value) {
145 SetStatus(std::forward<StatusT>(value));
146 return *this;
147 }
149
151
154 inline int GetNumDeleted() const { return m_numDeleted; }
155 inline bool NumDeletedHasBeenSet() const { return m_numDeletedHasBeenSet; }
156 inline void SetNumDeleted(int value) {
157 m_numDeletedHasBeenSet = true;
158 m_numDeleted = value;
159 }
160 inline DataDeletionJob& WithNumDeleted(int value) {
161 SetNumDeleted(value);
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
171 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
172 template <typename CreationDateTimeT = Aws::Utils::DateTime>
173 void SetCreationDateTime(CreationDateTimeT&& value) {
174 m_creationDateTimeHasBeenSet = true;
175 m_creationDateTime = std::forward<CreationDateTimeT>(value);
176 }
177 template <typename CreationDateTimeT = Aws::Utils::DateTime>
178 DataDeletionJob& WithCreationDateTime(CreationDateTimeT&& value) {
179 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
189 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
190 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
191 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
192 m_lastUpdatedDateTimeHasBeenSet = true;
193 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
194 }
195 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
196 DataDeletionJob& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
197 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
207 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
208 template <typename FailureReasonT = Aws::String>
209 void SetFailureReason(FailureReasonT&& value) {
210 m_failureReasonHasBeenSet = true;
211 m_failureReason = std::forward<FailureReasonT>(value);
212 }
213 template <typename FailureReasonT = Aws::String>
214 DataDeletionJob& WithFailureReason(FailureReasonT&& value) {
215 SetFailureReason(std::forward<FailureReasonT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_jobName;
221
222 Aws::String m_dataDeletionJobArn;
223
224 Aws::String m_datasetGroupArn;
225
226 DataSource m_dataSource;
227
228 Aws::String m_roleArn;
229
230 Aws::String m_status;
231
232 int m_numDeleted{0};
233
234 Aws::Utils::DateTime m_creationDateTime{};
235
236 Aws::Utils::DateTime m_lastUpdatedDateTime{};
237
238 Aws::String m_failureReason;
239 bool m_jobNameHasBeenSet = false;
240 bool m_dataDeletionJobArnHasBeenSet = false;
241 bool m_datasetGroupArnHasBeenSet = false;
242 bool m_dataSourceHasBeenSet = false;
243 bool m_roleArnHasBeenSet = false;
244 bool m_statusHasBeenSet = false;
245 bool m_numDeletedHasBeenSet = false;
246 bool m_creationDateTimeHasBeenSet = false;
247 bool m_lastUpdatedDateTimeHasBeenSet = false;
248 bool m_failureReasonHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace Personalize
253} // namespace Aws
const Aws::String & GetFailureReason() const
const Aws::String & GetDataDeletionJobArn() const
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::String & GetDatasetGroupArn() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
DataDeletionJob & WithStatus(StatusT &&value)
DataDeletionJob & WithDataDeletionJobArn(DataDeletionJobArnT &&value)
AWS_PERSONALIZE_API DataDeletionJob & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::String & GetJobName() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetDataDeletionJobArn(DataDeletionJobArnT &&value)
void SetDatasetGroupArn(DatasetGroupArnT &&value)
DataDeletionJob & WithJobName(JobNameT &&value)
DataDeletionJob & WithDataSource(DataSourceT &&value)
DataDeletionJob & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DataDeletionJob & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetStatus() const
const Aws::String & GetRoleArn() const
void SetFailureReason(FailureReasonT &&value)
DataDeletionJob & WithRoleArn(RoleArnT &&value)
const DataSource & GetDataSource() const
DataDeletionJob & WithDatasetGroupArn(DatasetGroupArnT &&value)
DataDeletionJob & WithNumDeleted(int value)
DataDeletionJob & WithCreationDateTime(CreationDateTimeT &&value)
AWS_PERSONALIZE_API DataDeletionJob(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API DataDeletionJob()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue