AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
BatchLoadTaskDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
10#include <aws/timestream-write/model/BatchLoadProgressReport.h>
11#include <aws/timestream-write/model/BatchLoadStatus.h>
12#include <aws/timestream-write/model/DataModelConfiguration.h>
13#include <aws/timestream-write/model/DataSourceConfiguration.h>
14#include <aws/timestream-write/model/ReportConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace TimestreamWrite {
26namespace Model {
27
34 public:
35 AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription() = default;
36 AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetTaskId() const { return m_taskId; }
45 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
46 template <typename TaskIdT = Aws::String>
47 void SetTaskId(TaskIdT&& value) {
48 m_taskIdHasBeenSet = true;
49 m_taskId = std::forward<TaskIdT>(value);
50 }
51 template <typename TaskIdT = Aws::String>
53 SetTaskId(std::forward<TaskIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
63 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
64 template <typename ErrorMessageT = Aws::String>
65 void SetErrorMessage(ErrorMessageT&& value) {
66 m_errorMessageHasBeenSet = true;
67 m_errorMessage = std::forward<ErrorMessageT>(value);
68 }
69 template <typename ErrorMessageT = Aws::String>
71 SetErrorMessage(std::forward<ErrorMessageT>(value));
72 return *this;
73 }
75
77
80 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
81 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
82 template <typename DataSourceConfigurationT = DataSourceConfiguration>
83 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) {
84 m_dataSourceConfigurationHasBeenSet = true;
85 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
86 }
87 template <typename DataSourceConfigurationT = DataSourceConfiguration>
88 BatchLoadTaskDescription& WithDataSourceConfiguration(DataSourceConfigurationT&& value) {
89 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
90 return *this;
91 }
93
95
98 inline const BatchLoadProgressReport& GetProgressReport() const { return m_progressReport; }
99 inline bool ProgressReportHasBeenSet() const { return m_progressReportHasBeenSet; }
100 template <typename ProgressReportT = BatchLoadProgressReport>
101 void SetProgressReport(ProgressReportT&& value) {
102 m_progressReportHasBeenSet = true;
103 m_progressReport = std::forward<ProgressReportT>(value);
104 }
105 template <typename ProgressReportT = BatchLoadProgressReport>
107 SetProgressReport(std::forward<ProgressReportT>(value));
108 return *this;
109 }
111
113
117 inline const ReportConfiguration& GetReportConfiguration() const { return m_reportConfiguration; }
118 inline bool ReportConfigurationHasBeenSet() const { return m_reportConfigurationHasBeenSet; }
119 template <typename ReportConfigurationT = ReportConfiguration>
120 void SetReportConfiguration(ReportConfigurationT&& value) {
121 m_reportConfigurationHasBeenSet = true;
122 m_reportConfiguration = std::forward<ReportConfigurationT>(value);
123 }
124 template <typename ReportConfigurationT = ReportConfiguration>
125 BatchLoadTaskDescription& WithReportConfiguration(ReportConfigurationT&& value) {
126 SetReportConfiguration(std::forward<ReportConfigurationT>(value));
127 return *this;
128 }
130
132
136 inline const DataModelConfiguration& GetDataModelConfiguration() const { return m_dataModelConfiguration; }
137 inline bool DataModelConfigurationHasBeenSet() const { return m_dataModelConfigurationHasBeenSet; }
138 template <typename DataModelConfigurationT = DataModelConfiguration>
139 void SetDataModelConfiguration(DataModelConfigurationT&& value) {
140 m_dataModelConfigurationHasBeenSet = true;
141 m_dataModelConfiguration = std::forward<DataModelConfigurationT>(value);
142 }
143 template <typename DataModelConfigurationT = DataModelConfiguration>
144 BatchLoadTaskDescription& WithDataModelConfiguration(DataModelConfigurationT&& value) {
145 SetDataModelConfiguration(std::forward<DataModelConfigurationT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetTargetDatabaseName() const { return m_targetDatabaseName; }
155 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
156 template <typename TargetDatabaseNameT = Aws::String>
157 void SetTargetDatabaseName(TargetDatabaseNameT&& value) {
158 m_targetDatabaseNameHasBeenSet = true;
159 m_targetDatabaseName = std::forward<TargetDatabaseNameT>(value);
160 }
161 template <typename TargetDatabaseNameT = Aws::String>
162 BatchLoadTaskDescription& WithTargetDatabaseName(TargetDatabaseNameT&& value) {
163 SetTargetDatabaseName(std::forward<TargetDatabaseNameT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
173 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
174 template <typename TargetTableNameT = Aws::String>
175 void SetTargetTableName(TargetTableNameT&& value) {
176 m_targetTableNameHasBeenSet = true;
177 m_targetTableName = std::forward<TargetTableNameT>(value);
178 }
179 template <typename TargetTableNameT = Aws::String>
181 SetTargetTableName(std::forward<TargetTableNameT>(value));
182 return *this;
183 }
185
187
190 inline BatchLoadStatus GetTaskStatus() const { return m_taskStatus; }
191 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
192 inline void SetTaskStatus(BatchLoadStatus value) {
193 m_taskStatusHasBeenSet = true;
194 m_taskStatus = value;
195 }
197 SetTaskStatus(value);
198 return *this;
199 }
201
203
206 inline long long GetRecordVersion() const { return m_recordVersion; }
207 inline bool RecordVersionHasBeenSet() const { return m_recordVersionHasBeenSet; }
208 inline void SetRecordVersion(long long value) {
209 m_recordVersionHasBeenSet = true;
210 m_recordVersion = value;
211 }
213 SetRecordVersion(value);
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
223 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
224 template <typename CreationTimeT = Aws::Utils::DateTime>
225 void SetCreationTime(CreationTimeT&& value) {
226 m_creationTimeHasBeenSet = true;
227 m_creationTime = std::forward<CreationTimeT>(value);
228 }
229 template <typename CreationTimeT = Aws::Utils::DateTime>
231 SetCreationTime(std::forward<CreationTimeT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
241 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
242 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
243 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
244 m_lastUpdatedTimeHasBeenSet = true;
245 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
246 }
247 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
249 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::Utils::DateTime& GetResumableUntil() const { return m_resumableUntil; }
259 inline bool ResumableUntilHasBeenSet() const { return m_resumableUntilHasBeenSet; }
260 template <typename ResumableUntilT = Aws::Utils::DateTime>
261 void SetResumableUntil(ResumableUntilT&& value) {
262 m_resumableUntilHasBeenSet = true;
263 m_resumableUntil = std::forward<ResumableUntilT>(value);
264 }
265 template <typename ResumableUntilT = Aws::Utils::DateTime>
267 SetResumableUntil(std::forward<ResumableUntilT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_taskId;
273
274 Aws::String m_errorMessage;
275
276 DataSourceConfiguration m_dataSourceConfiguration;
277
278 BatchLoadProgressReport m_progressReport;
279
280 ReportConfiguration m_reportConfiguration;
281
282 DataModelConfiguration m_dataModelConfiguration;
283
284 Aws::String m_targetDatabaseName;
285
286 Aws::String m_targetTableName;
287
289
290 long long m_recordVersion{0};
291
292 Aws::Utils::DateTime m_creationTime{};
293
294 Aws::Utils::DateTime m_lastUpdatedTime{};
295
296 Aws::Utils::DateTime m_resumableUntil{};
297 bool m_taskIdHasBeenSet = false;
298 bool m_errorMessageHasBeenSet = false;
299 bool m_dataSourceConfigurationHasBeenSet = false;
300 bool m_progressReportHasBeenSet = false;
301 bool m_reportConfigurationHasBeenSet = false;
302 bool m_dataModelConfigurationHasBeenSet = false;
303 bool m_targetDatabaseNameHasBeenSet = false;
304 bool m_targetTableNameHasBeenSet = false;
305 bool m_taskStatusHasBeenSet = false;
306 bool m_recordVersionHasBeenSet = false;
307 bool m_creationTimeHasBeenSet = false;
308 bool m_lastUpdatedTimeHasBeenSet = false;
309 bool m_resumableUntilHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace TimestreamWrite
314} // namespace Aws
void SetDataModelConfiguration(DataModelConfigurationT &&value)
const DataSourceConfiguration & GetDataSourceConfiguration() const
BatchLoadTaskDescription & WithTargetDatabaseName(TargetDatabaseNameT &&value)
AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchLoadTaskDescription & WithRecordVersion(long long value)
BatchLoadTaskDescription & WithErrorMessage(ErrorMessageT &&value)
BatchLoadTaskDescription & WithCreationTime(CreationTimeT &&value)
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
BatchLoadTaskDescription & WithDataModelConfiguration(DataModelConfigurationT &&value)
BatchLoadTaskDescription & WithReportConfiguration(ReportConfigurationT &&value)
BatchLoadTaskDescription & WithLastUpdatedTime(LastUpdatedTimeT &&value)
BatchLoadTaskDescription & WithTaskStatus(BatchLoadStatus value)
AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription(Aws::Utils::Json::JsonView jsonValue)
BatchLoadTaskDescription & WithTaskId(TaskIdT &&value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchLoadTaskDescription & WithResumableUntil(ResumableUntilT &&value)
BatchLoadTaskDescription & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
const DataModelConfiguration & GetDataModelConfiguration() const
BatchLoadTaskDescription & WithTargetTableName(TargetTableNameT &&value)
const BatchLoadProgressReport & GetProgressReport() const
BatchLoadTaskDescription & WithProgressReport(ProgressReportT &&value)
AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue