AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImportTableDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/ImportStatus.h>
11#include <aws/dynamodb/model/InputCompressionType.h>
12#include <aws/dynamodb/model/InputFormat.h>
13#include <aws/dynamodb/model/InputFormatOptions.h>
14#include <aws/dynamodb/model/S3BucketSource.h>
15#include <aws/dynamodb/model/TableCreationParameters.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DynamoDB {
27namespace Model {
28
36 public:
37 AWS_DYNAMODB_API ImportTableDescription() = default;
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetImportArn() const { return m_importArn; }
47 inline bool ImportArnHasBeenSet() const { return m_importArnHasBeenSet; }
48 template <typename ImportArnT = Aws::String>
49 void SetImportArn(ImportArnT&& value) {
50 m_importArnHasBeenSet = true;
51 m_importArn = std::forward<ImportArnT>(value);
52 }
53 template <typename ImportArnT = Aws::String>
55 SetImportArn(std::forward<ImportArnT>(value));
56 return *this;
57 }
59
61
64 inline ImportStatus GetImportStatus() const { return m_importStatus; }
65 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
66 inline void SetImportStatus(ImportStatus value) {
67 m_importStatusHasBeenSet = true;
68 m_importStatus = value;
69 }
71 SetImportStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTableArn() const { return m_tableArn; }
81 inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; }
82 template <typename TableArnT = Aws::String>
83 void SetTableArn(TableArnT&& value) {
84 m_tableArnHasBeenSet = true;
85 m_tableArn = std::forward<TableArnT>(value);
86 }
87 template <typename TableArnT = Aws::String>
89 SetTableArn(std::forward<TableArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetTableId() const { return m_tableId; }
100 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
101 template <typename TableIdT = Aws::String>
102 void SetTableId(TableIdT&& value) {
103 m_tableIdHasBeenSet = true;
104 m_tableId = std::forward<TableIdT>(value);
105 }
106 template <typename TableIdT = Aws::String>
108 SetTableId(std::forward<TableIdT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template <typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) {
122 m_clientTokenHasBeenSet = true;
123 m_clientToken = std::forward<ClientTokenT>(value);
124 }
125 template <typename ClientTokenT = Aws::String>
127 SetClientToken(std::forward<ClientTokenT>(value));
128 return *this;
129 }
131
133
138 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
139 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
140 template <typename S3BucketSourceT = S3BucketSource>
141 void SetS3BucketSource(S3BucketSourceT&& value) {
142 m_s3BucketSourceHasBeenSet = true;
143 m_s3BucketSource = std::forward<S3BucketSourceT>(value);
144 }
145 template <typename S3BucketSourceT = S3BucketSource>
146 ImportTableDescription& WithS3BucketSource(S3BucketSourceT&& value) {
147 SetS3BucketSource(std::forward<S3BucketSourceT>(value));
148 return *this;
149 }
151
153
157 inline long long GetErrorCount() const { return m_errorCount; }
158 inline bool ErrorCountHasBeenSet() const { return m_errorCountHasBeenSet; }
159 inline void SetErrorCount(long long value) {
160 m_errorCountHasBeenSet = true;
161 m_errorCount = value;
162 }
163 inline ImportTableDescription& WithErrorCount(long long value) {
164 SetErrorCount(value);
165 return *this;
166 }
168
170
174 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
175 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
176 template <typename CloudWatchLogGroupArnT = Aws::String>
177 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
178 m_cloudWatchLogGroupArnHasBeenSet = true;
179 m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value);
180 }
181 template <typename CloudWatchLogGroupArnT = Aws::String>
182 ImportTableDescription& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
183 SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value));
184 return *this;
185 }
187
189
192 inline InputFormat GetInputFormat() const { return m_inputFormat; }
193 inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
194 inline void SetInputFormat(InputFormat value) {
195 m_inputFormatHasBeenSet = true;
196 m_inputFormat = value;
197 }
199 SetInputFormat(value);
200 return *this;
201 }
203
205
209 inline const InputFormatOptions& GetInputFormatOptions() const { return m_inputFormatOptions; }
210 inline bool InputFormatOptionsHasBeenSet() const { return m_inputFormatOptionsHasBeenSet; }
211 template <typename InputFormatOptionsT = InputFormatOptions>
212 void SetInputFormatOptions(InputFormatOptionsT&& value) {
213 m_inputFormatOptionsHasBeenSet = true;
214 m_inputFormatOptions = std::forward<InputFormatOptionsT>(value);
215 }
216 template <typename InputFormatOptionsT = InputFormatOptions>
217 ImportTableDescription& WithInputFormatOptions(InputFormatOptionsT&& value) {
218 SetInputFormatOptions(std::forward<InputFormatOptionsT>(value));
219 return *this;
220 }
222
224
228 inline InputCompressionType GetInputCompressionType() const { return m_inputCompressionType; }
229 inline bool InputCompressionTypeHasBeenSet() const { return m_inputCompressionTypeHasBeenSet; }
231 m_inputCompressionTypeHasBeenSet = true;
232 m_inputCompressionType = value;
233 }
236 return *this;
237 }
239
241
244 inline const TableCreationParameters& GetTableCreationParameters() const { return m_tableCreationParameters; }
245 inline bool TableCreationParametersHasBeenSet() const { return m_tableCreationParametersHasBeenSet; }
246 template <typename TableCreationParametersT = TableCreationParameters>
247 void SetTableCreationParameters(TableCreationParametersT&& value) {
248 m_tableCreationParametersHasBeenSet = true;
249 m_tableCreationParameters = std::forward<TableCreationParametersT>(value);
250 }
251 template <typename TableCreationParametersT = TableCreationParameters>
252 ImportTableDescription& WithTableCreationParameters(TableCreationParametersT&& value) {
253 SetTableCreationParameters(std::forward<TableCreationParametersT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
263 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
264 template <typename StartTimeT = Aws::Utils::DateTime>
265 void SetStartTime(StartTimeT&& value) {
266 m_startTimeHasBeenSet = true;
267 m_startTime = std::forward<StartTimeT>(value);
268 }
269 template <typename StartTimeT = Aws::Utils::DateTime>
271 SetStartTime(std::forward<StartTimeT>(value));
272 return *this;
273 }
275
277
281 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
282 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
283 template <typename EndTimeT = Aws::Utils::DateTime>
284 void SetEndTime(EndTimeT&& value) {
285 m_endTimeHasBeenSet = true;
286 m_endTime = std::forward<EndTimeT>(value);
287 }
288 template <typename EndTimeT = Aws::Utils::DateTime>
290 SetEndTime(std::forward<EndTimeT>(value));
291 return *this;
292 }
294
296
299 inline long long GetProcessedSizeBytes() const { return m_processedSizeBytes; }
300 inline bool ProcessedSizeBytesHasBeenSet() const { return m_processedSizeBytesHasBeenSet; }
301 inline void SetProcessedSizeBytes(long long value) {
302 m_processedSizeBytesHasBeenSet = true;
303 m_processedSizeBytes = value;
304 }
307 return *this;
308 }
310
312
315 inline long long GetProcessedItemCount() const { return m_processedItemCount; }
316 inline bool ProcessedItemCountHasBeenSet() const { return m_processedItemCountHasBeenSet; }
317 inline void SetProcessedItemCount(long long value) {
318 m_processedItemCountHasBeenSet = true;
319 m_processedItemCount = value;
320 }
323 return *this;
324 }
326
328
331 inline long long GetImportedItemCount() const { return m_importedItemCount; }
332 inline bool ImportedItemCountHasBeenSet() const { return m_importedItemCountHasBeenSet; }
333 inline void SetImportedItemCount(long long value) {
334 m_importedItemCountHasBeenSet = true;
335 m_importedItemCount = value;
336 }
339 return *this;
340 }
342
344
348 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
349 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
350 template <typename FailureCodeT = Aws::String>
351 void SetFailureCode(FailureCodeT&& value) {
352 m_failureCodeHasBeenSet = true;
353 m_failureCode = std::forward<FailureCodeT>(value);
354 }
355 template <typename FailureCodeT = Aws::String>
357 SetFailureCode(std::forward<FailureCodeT>(value));
358 return *this;
359 }
361
363
367 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
368 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
369 template <typename FailureMessageT = Aws::String>
370 void SetFailureMessage(FailureMessageT&& value) {
371 m_failureMessageHasBeenSet = true;
372 m_failureMessage = std::forward<FailureMessageT>(value);
373 }
374 template <typename FailureMessageT = Aws::String>
375 ImportTableDescription& WithFailureMessage(FailureMessageT&& value) {
376 SetFailureMessage(std::forward<FailureMessageT>(value));
377 return *this;
378 }
380 private:
381 Aws::String m_importArn;
382
383 ImportStatus m_importStatus{ImportStatus::NOT_SET};
384
385 Aws::String m_tableArn;
386
387 Aws::String m_tableId;
388
389 Aws::String m_clientToken;
390
391 S3BucketSource m_s3BucketSource;
392
393 long long m_errorCount{0};
394
395 Aws::String m_cloudWatchLogGroupArn;
396
397 InputFormat m_inputFormat{InputFormat::NOT_SET};
398
399 InputFormatOptions m_inputFormatOptions;
400
402
403 TableCreationParameters m_tableCreationParameters;
404
405 Aws::Utils::DateTime m_startTime{};
406
407 Aws::Utils::DateTime m_endTime{};
408
409 long long m_processedSizeBytes{0};
410
411 long long m_processedItemCount{0};
412
413 long long m_importedItemCount{0};
414
415 Aws::String m_failureCode;
416
417 Aws::String m_failureMessage;
418 bool m_importArnHasBeenSet = false;
419 bool m_importStatusHasBeenSet = false;
420 bool m_tableArnHasBeenSet = false;
421 bool m_tableIdHasBeenSet = false;
422 bool m_clientTokenHasBeenSet = false;
423 bool m_s3BucketSourceHasBeenSet = false;
424 bool m_errorCountHasBeenSet = false;
425 bool m_cloudWatchLogGroupArnHasBeenSet = false;
426 bool m_inputFormatHasBeenSet = false;
427 bool m_inputFormatOptionsHasBeenSet = false;
428 bool m_inputCompressionTypeHasBeenSet = false;
429 bool m_tableCreationParametersHasBeenSet = false;
430 bool m_startTimeHasBeenSet = false;
431 bool m_endTimeHasBeenSet = false;
432 bool m_processedSizeBytesHasBeenSet = false;
433 bool m_processedItemCountHasBeenSet = false;
434 bool m_importedItemCountHasBeenSet = false;
435 bool m_failureCodeHasBeenSet = false;
436 bool m_failureMessageHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace DynamoDB
441} // namespace Aws
ImportTableDescription & WithInputFormatOptions(InputFormatOptionsT &&value)
AWS_DYNAMODB_API ImportTableDescription(Aws::Utils::Json::JsonView jsonValue)
ImportTableDescription & WithProcessedItemCount(long long value)
const Aws::Utils::DateTime & GetStartTime() const
const InputFormatOptions & GetInputFormatOptions() const
ImportTableDescription & WithImportedItemCount(long long value)
ImportTableDescription & WithTableId(TableIdT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ImportTableDescription & WithStartTime(StartTimeT &&value)
ImportTableDescription & WithTableArn(TableArnT &&value)
ImportTableDescription & WithInputCompressionType(InputCompressionType value)
ImportTableDescription & WithS3BucketSource(S3BucketSourceT &&value)
void SetInputCompressionType(InputCompressionType value)
AWS_DYNAMODB_API ImportTableDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportTableDescription & WithClientToken(ClientTokenT &&value)
ImportTableDescription & WithTableCreationParameters(TableCreationParametersT &&value)
AWS_DYNAMODB_API ImportTableDescription()=default
ImportTableDescription & WithEndTime(EndTimeT &&value)
void SetInputFormatOptions(InputFormatOptionsT &&value)
ImportTableDescription & WithImportArn(ImportArnT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const TableCreationParameters & GetTableCreationParameters() const
ImportTableDescription & WithInputFormat(InputFormat value)
ImportTableDescription & WithFailureCode(FailureCodeT &&value)
ImportTableDescription & WithImportStatus(ImportStatus value)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
ImportTableDescription & WithProcessedSizeBytes(long long value)
ImportTableDescription & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
ImportTableDescription & WithErrorCount(long long value)
void SetTableCreationParameters(TableCreationParametersT &&value)
ImportTableDescription & WithFailureMessage(FailureMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue