AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchLoadTaskDescription.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/model/DataSourceConfiguration.h>
10#include <aws/timestream-write/model/BatchLoadProgressReport.h>
11#include <aws/timestream-write/model/ReportConfiguration.h>
12#include <aws/timestream-write/model/DataModelConfiguration.h>
13#include <aws/timestream-write/model/BatchLoadStatus.h>
14#include <aws/core/utils/DateTime.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace TimestreamWrite
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription() = default;
41 AWS_TIMESTREAMWRITE_API BatchLoadTaskDescription(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetTaskId() const { return m_taskId; }
51 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
52 template<typename TaskIdT = Aws::String>
53 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
54 template<typename TaskIdT = Aws::String>
55 BatchLoadTaskDescription& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
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) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
66 template<typename ErrorMessageT = Aws::String>
67 BatchLoadTaskDescription& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
69
71
74 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
75 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
76 template<typename DataSourceConfigurationT = DataSourceConfiguration>
77 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value); }
78 template<typename DataSourceConfigurationT = DataSourceConfiguration>
79 BatchLoadTaskDescription& WithDataSourceConfiguration(DataSourceConfigurationT&& value) { SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value)); return *this;}
81
83
86 inline const BatchLoadProgressReport& GetProgressReport() const { return m_progressReport; }
87 inline bool ProgressReportHasBeenSet() const { return m_progressReportHasBeenSet; }
88 template<typename ProgressReportT = BatchLoadProgressReport>
89 void SetProgressReport(ProgressReportT&& value) { m_progressReportHasBeenSet = true; m_progressReport = std::forward<ProgressReportT>(value); }
90 template<typename ProgressReportT = BatchLoadProgressReport>
91 BatchLoadTaskDescription& WithProgressReport(ProgressReportT&& value) { SetProgressReport(std::forward<ProgressReportT>(value)); return *this;}
93
95
99 inline const ReportConfiguration& GetReportConfiguration() const { return m_reportConfiguration; }
100 inline bool ReportConfigurationHasBeenSet() const { return m_reportConfigurationHasBeenSet; }
101 template<typename ReportConfigurationT = ReportConfiguration>
102 void SetReportConfiguration(ReportConfigurationT&& value) { m_reportConfigurationHasBeenSet = true; m_reportConfiguration = std::forward<ReportConfigurationT>(value); }
103 template<typename ReportConfigurationT = ReportConfiguration>
104 BatchLoadTaskDescription& WithReportConfiguration(ReportConfigurationT&& value) { SetReportConfiguration(std::forward<ReportConfigurationT>(value)); return *this;}
106
108
112 inline const DataModelConfiguration& GetDataModelConfiguration() const { return m_dataModelConfiguration; }
113 inline bool DataModelConfigurationHasBeenSet() const { return m_dataModelConfigurationHasBeenSet; }
114 template<typename DataModelConfigurationT = DataModelConfiguration>
115 void SetDataModelConfiguration(DataModelConfigurationT&& value) { m_dataModelConfigurationHasBeenSet = true; m_dataModelConfiguration = std::forward<DataModelConfigurationT>(value); }
116 template<typename DataModelConfigurationT = DataModelConfiguration>
117 BatchLoadTaskDescription& WithDataModelConfiguration(DataModelConfigurationT&& value) { SetDataModelConfiguration(std::forward<DataModelConfigurationT>(value)); return *this;}
119
121
124 inline const Aws::String& GetTargetDatabaseName() const { return m_targetDatabaseName; }
125 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
126 template<typename TargetDatabaseNameT = Aws::String>
127 void SetTargetDatabaseName(TargetDatabaseNameT&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::forward<TargetDatabaseNameT>(value); }
128 template<typename TargetDatabaseNameT = Aws::String>
129 BatchLoadTaskDescription& WithTargetDatabaseName(TargetDatabaseNameT&& value) { SetTargetDatabaseName(std::forward<TargetDatabaseNameT>(value)); return *this;}
131
133
136 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
137 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
138 template<typename TargetTableNameT = Aws::String>
139 void SetTargetTableName(TargetTableNameT&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::forward<TargetTableNameT>(value); }
140 template<typename TargetTableNameT = Aws::String>
141 BatchLoadTaskDescription& WithTargetTableName(TargetTableNameT&& value) { SetTargetTableName(std::forward<TargetTableNameT>(value)); return *this;}
143
145
148 inline BatchLoadStatus GetTaskStatus() const { return m_taskStatus; }
149 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
150 inline void SetTaskStatus(BatchLoadStatus value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
153
155
158 inline long long GetRecordVersion() const { return m_recordVersion; }
159 inline bool RecordVersionHasBeenSet() const { return m_recordVersionHasBeenSet; }
160 inline void SetRecordVersion(long long value) { m_recordVersionHasBeenSet = true; m_recordVersion = value; }
161 inline BatchLoadTaskDescription& WithRecordVersion(long long value) { SetRecordVersion(value); return *this;}
163
165
168 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
169 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
170 template<typename CreationTimeT = Aws::Utils::DateTime>
171 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
172 template<typename CreationTimeT = Aws::Utils::DateTime>
173 BatchLoadTaskDescription& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
175
177
180 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
181 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
182 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
183 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
184 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
185 BatchLoadTaskDescription& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetResumableUntil() const { return m_resumableUntil; }
193 inline bool ResumableUntilHasBeenSet() const { return m_resumableUntilHasBeenSet; }
194 template<typename ResumableUntilT = Aws::Utils::DateTime>
195 void SetResumableUntil(ResumableUntilT&& value) { m_resumableUntilHasBeenSet = true; m_resumableUntil = std::forward<ResumableUntilT>(value); }
196 template<typename ResumableUntilT = Aws::Utils::DateTime>
197 BatchLoadTaskDescription& WithResumableUntil(ResumableUntilT&& value) { SetResumableUntil(std::forward<ResumableUntilT>(value)); return *this;}
199 private:
200
201 Aws::String m_taskId;
202 bool m_taskIdHasBeenSet = false;
203
204 Aws::String m_errorMessage;
205 bool m_errorMessageHasBeenSet = false;
206
207 DataSourceConfiguration m_dataSourceConfiguration;
208 bool m_dataSourceConfigurationHasBeenSet = false;
209
210 BatchLoadProgressReport m_progressReport;
211 bool m_progressReportHasBeenSet = false;
212
213 ReportConfiguration m_reportConfiguration;
214 bool m_reportConfigurationHasBeenSet = false;
215
216 DataModelConfiguration m_dataModelConfiguration;
217 bool m_dataModelConfigurationHasBeenSet = false;
218
219 Aws::String m_targetDatabaseName;
220 bool m_targetDatabaseNameHasBeenSet = false;
221
222 Aws::String m_targetTableName;
223 bool m_targetTableNameHasBeenSet = false;
224
226 bool m_taskStatusHasBeenSet = false;
227
228 long long m_recordVersion{0};
229 bool m_recordVersionHasBeenSet = false;
230
231 Aws::Utils::DateTime m_creationTime{};
232 bool m_creationTimeHasBeenSet = false;
233
234 Aws::Utils::DateTime m_lastUpdatedTime{};
235 bool m_lastUpdatedTimeHasBeenSet = false;
236
237 Aws::Utils::DateTime m_resumableUntil{};
238 bool m_resumableUntilHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace TimestreamWrite
243} // 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