AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportTableDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/model/ImportStatus.h>
10#include <aws/dynamodb/model/S3BucketSource.h>
11#include <aws/dynamodb/model/InputFormat.h>
12#include <aws/dynamodb/model/InputFormatOptions.h>
13#include <aws/dynamodb/model/InputCompressionType.h>
14#include <aws/dynamodb/model/TableCreationParameters.h>
15#include <aws/core/utils/DateTime.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DynamoDB
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_DYNAMODB_API ImportTableDescription() = default;
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetImportArn() const { return m_importArn; }
53 inline bool ImportArnHasBeenSet() const { return m_importArnHasBeenSet; }
54 template<typename ImportArnT = Aws::String>
55 void SetImportArn(ImportArnT&& value) { m_importArnHasBeenSet = true; m_importArn = std::forward<ImportArnT>(value); }
56 template<typename ImportArnT = Aws::String>
57 ImportTableDescription& WithImportArn(ImportArnT&& value) { SetImportArn(std::forward<ImportArnT>(value)); return *this;}
59
61
64 inline ImportStatus GetImportStatus() const { return m_importStatus; }
65 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
66 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
69
71
74 inline const Aws::String& GetTableArn() const { return m_tableArn; }
75 inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; }
76 template<typename TableArnT = Aws::String>
77 void SetTableArn(TableArnT&& value) { m_tableArnHasBeenSet = true; m_tableArn = std::forward<TableArnT>(value); }
78 template<typename TableArnT = Aws::String>
79 ImportTableDescription& WithTableArn(TableArnT&& value) { SetTableArn(std::forward<TableArnT>(value)); return *this;}
81
83
87 inline const Aws::String& GetTableId() const { return m_tableId; }
88 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
89 template<typename TableIdT = Aws::String>
90 void SetTableId(TableIdT&& value) { m_tableIdHasBeenSet = true; m_tableId = std::forward<TableIdT>(value); }
91 template<typename TableIdT = Aws::String>
92 ImportTableDescription& WithTableId(TableIdT&& value) { SetTableId(std::forward<TableIdT>(value)); return *this;}
94
96
100 inline const Aws::String& GetClientToken() const { return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 template<typename ClientTokenT = Aws::String>
103 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
104 template<typename ClientTokenT = Aws::String>
105 ImportTableDescription& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
107
109
114 inline const S3BucketSource& GetS3BucketSource() const { return m_s3BucketSource; }
115 inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; }
116 template<typename S3BucketSourceT = S3BucketSource>
117 void SetS3BucketSource(S3BucketSourceT&& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = std::forward<S3BucketSourceT>(value); }
118 template<typename S3BucketSourceT = S3BucketSource>
119 ImportTableDescription& WithS3BucketSource(S3BucketSourceT&& value) { SetS3BucketSource(std::forward<S3BucketSourceT>(value)); return *this;}
121
123
127 inline long long GetErrorCount() const { return m_errorCount; }
128 inline bool ErrorCountHasBeenSet() const { return m_errorCountHasBeenSet; }
129 inline void SetErrorCount(long long value) { m_errorCountHasBeenSet = true; m_errorCount = value; }
130 inline ImportTableDescription& WithErrorCount(long long value) { SetErrorCount(value); return *this;}
132
134
138 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
139 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
140 template<typename CloudWatchLogGroupArnT = Aws::String>
141 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value); }
142 template<typename CloudWatchLogGroupArnT = Aws::String>
143 ImportTableDescription& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value)); return *this;}
145
147
150 inline InputFormat GetInputFormat() const { return m_inputFormat; }
151 inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
152 inline void SetInputFormat(InputFormat value) { m_inputFormatHasBeenSet = true; m_inputFormat = value; }
153 inline ImportTableDescription& WithInputFormat(InputFormat value) { SetInputFormat(value); return *this;}
155
157
161 inline const InputFormatOptions& GetInputFormatOptions() const { return m_inputFormatOptions; }
162 inline bool InputFormatOptionsHasBeenSet() const { return m_inputFormatOptionsHasBeenSet; }
163 template<typename InputFormatOptionsT = InputFormatOptions>
164 void SetInputFormatOptions(InputFormatOptionsT&& value) { m_inputFormatOptionsHasBeenSet = true; m_inputFormatOptions = std::forward<InputFormatOptionsT>(value); }
165 template<typename InputFormatOptionsT = InputFormatOptions>
166 ImportTableDescription& WithInputFormatOptions(InputFormatOptionsT&& value) { SetInputFormatOptions(std::forward<InputFormatOptionsT>(value)); return *this;}
168
170
174 inline InputCompressionType GetInputCompressionType() const { return m_inputCompressionType; }
175 inline bool InputCompressionTypeHasBeenSet() const { return m_inputCompressionTypeHasBeenSet; }
176 inline void SetInputCompressionType(InputCompressionType value) { m_inputCompressionTypeHasBeenSet = true; m_inputCompressionType = value; }
179
181
184 inline const TableCreationParameters& GetTableCreationParameters() const { return m_tableCreationParameters; }
185 inline bool TableCreationParametersHasBeenSet() const { return m_tableCreationParametersHasBeenSet; }
186 template<typename TableCreationParametersT = TableCreationParameters>
187 void SetTableCreationParameters(TableCreationParametersT&& value) { m_tableCreationParametersHasBeenSet = true; m_tableCreationParameters = std::forward<TableCreationParametersT>(value); }
188 template<typename TableCreationParametersT = TableCreationParameters>
189 ImportTableDescription& WithTableCreationParameters(TableCreationParametersT&& value) { SetTableCreationParameters(std::forward<TableCreationParametersT>(value)); return *this;}
191
193
196 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
197 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
198 template<typename StartTimeT = Aws::Utils::DateTime>
199 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
200 template<typename StartTimeT = Aws::Utils::DateTime>
201 ImportTableDescription& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
203
205
209 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
210 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
211 template<typename EndTimeT = Aws::Utils::DateTime>
212 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
213 template<typename EndTimeT = Aws::Utils::DateTime>
214 ImportTableDescription& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
216
218
221 inline long long GetProcessedSizeBytes() const { return m_processedSizeBytes; }
222 inline bool ProcessedSizeBytesHasBeenSet() const { return m_processedSizeBytesHasBeenSet; }
223 inline void SetProcessedSizeBytes(long long value) { m_processedSizeBytesHasBeenSet = true; m_processedSizeBytes = value; }
224 inline ImportTableDescription& WithProcessedSizeBytes(long long value) { SetProcessedSizeBytes(value); return *this;}
226
228
231 inline long long GetProcessedItemCount() const { return m_processedItemCount; }
232 inline bool ProcessedItemCountHasBeenSet() const { return m_processedItemCountHasBeenSet; }
233 inline void SetProcessedItemCount(long long value) { m_processedItemCountHasBeenSet = true; m_processedItemCount = value; }
234 inline ImportTableDescription& WithProcessedItemCount(long long value) { SetProcessedItemCount(value); return *this;}
236
238
241 inline long long GetImportedItemCount() const { return m_importedItemCount; }
242 inline bool ImportedItemCountHasBeenSet() const { return m_importedItemCountHasBeenSet; }
243 inline void SetImportedItemCount(long long value) { m_importedItemCountHasBeenSet = true; m_importedItemCount = value; }
244 inline ImportTableDescription& WithImportedItemCount(long long value) { SetImportedItemCount(value); return *this;}
246
248
252 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
253 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
254 template<typename FailureCodeT = Aws::String>
255 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
256 template<typename FailureCodeT = Aws::String>
257 ImportTableDescription& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
259
261
265 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
266 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
267 template<typename FailureMessageT = Aws::String>
268 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
269 template<typename FailureMessageT = Aws::String>
270 ImportTableDescription& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
272 private:
273
274 Aws::String m_importArn;
275 bool m_importArnHasBeenSet = false;
276
277 ImportStatus m_importStatus{ImportStatus::NOT_SET};
278 bool m_importStatusHasBeenSet = false;
279
280 Aws::String m_tableArn;
281 bool m_tableArnHasBeenSet = false;
282
283 Aws::String m_tableId;
284 bool m_tableIdHasBeenSet = false;
285
286 Aws::String m_clientToken;
287 bool m_clientTokenHasBeenSet = false;
288
289 S3BucketSource m_s3BucketSource;
290 bool m_s3BucketSourceHasBeenSet = false;
291
292 long long m_errorCount{0};
293 bool m_errorCountHasBeenSet = false;
294
295 Aws::String m_cloudWatchLogGroupArn;
296 bool m_cloudWatchLogGroupArnHasBeenSet = false;
297
298 InputFormat m_inputFormat{InputFormat::NOT_SET};
299 bool m_inputFormatHasBeenSet = false;
300
301 InputFormatOptions m_inputFormatOptions;
302 bool m_inputFormatOptionsHasBeenSet = false;
303
305 bool m_inputCompressionTypeHasBeenSet = false;
306
307 TableCreationParameters m_tableCreationParameters;
308 bool m_tableCreationParametersHasBeenSet = false;
309
310 Aws::Utils::DateTime m_startTime{};
311 bool m_startTimeHasBeenSet = false;
312
313 Aws::Utils::DateTime m_endTime{};
314 bool m_endTimeHasBeenSet = false;
315
316 long long m_processedSizeBytes{0};
317 bool m_processedSizeBytesHasBeenSet = false;
318
319 long long m_processedItemCount{0};
320 bool m_processedItemCountHasBeenSet = false;
321
322 long long m_importedItemCount{0};
323 bool m_importedItemCountHasBeenSet = false;
324
325 Aws::String m_failureCode;
326 bool m_failureCodeHasBeenSet = false;
327
328 Aws::String m_failureMessage;
329 bool m_failureMessageHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace DynamoDB
334} // 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