AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
BulkOperationDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/BulkOperationPerformanceTier.h>
12#include <aws/dynamodb/model/BulkOperationStatus.h>
13#include <aws/dynamodb/model/BulkOperationTableDetail.h>
14#include <aws/dynamodb/model/BulkOperationUsage.h>
15#include <aws/dynamodb/model/InputS3Configuration.h>
16#include <aws/dynamodb/model/OutputS3Configuration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDB {
28namespace Model {
29
37 public:
38 AWS_DYNAMODB_API BulkOperationDescription() = default;
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetBulkOperationArn() const { return m_bulkOperationArn; }
48 inline bool BulkOperationArnHasBeenSet() const { return m_bulkOperationArnHasBeenSet; }
49 template <typename BulkOperationArnT = Aws::String>
50 void SetBulkOperationArn(BulkOperationArnT&& value) {
51 m_bulkOperationArnHasBeenSet = true;
52 m_bulkOperationArn = std::forward<BulkOperationArnT>(value);
53 }
54 template <typename BulkOperationArnT = Aws::String>
55 BulkOperationDescription& WithBulkOperationArn(BulkOperationArnT&& value) {
56 SetBulkOperationArn(std::forward<BulkOperationArnT>(value));
57 return *this;
58 }
60
62
81 inline BulkOperationStatus GetBulkOperationStatus() const { return m_bulkOperationStatus; }
82 inline bool BulkOperationStatusHasBeenSet() const { return m_bulkOperationStatusHasBeenSet; }
84 m_bulkOperationStatusHasBeenSet = true;
85 m_bulkOperationStatus = value;
86 }
92
94
98 inline const Aws::Vector<BulkOperationTableDetail>& GetTableDetails() const { return m_tableDetails; }
99 inline bool TableDetailsHasBeenSet() const { return m_tableDetailsHasBeenSet; }
100 template <typename TableDetailsT = Aws::Vector<BulkOperationTableDetail>>
101 void SetTableDetails(TableDetailsT&& value) {
102 m_tableDetailsHasBeenSet = true;
103 m_tableDetails = std::forward<TableDetailsT>(value);
104 }
105 template <typename TableDetailsT = Aws::Vector<BulkOperationTableDetail>>
107 SetTableDetails(std::forward<TableDetailsT>(value));
108 return *this;
109 }
110 template <typename TableDetailsT = BulkOperationTableDetail>
112 m_tableDetailsHasBeenSet = true;
113 m_tableDetails.emplace_back(std::forward<TableDetailsT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetClientToken() const { return m_clientToken; }
123 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
124 template <typename ClientTokenT = Aws::String>
125 void SetClientToken(ClientTokenT&& value) {
126 m_clientTokenHasBeenSet = true;
127 m_clientToken = std::forward<ClientTokenT>(value);
128 }
129 template <typename ClientTokenT = Aws::String>
131 SetClientToken(std::forward<ClientTokenT>(value));
132 return *this;
133 }
135
137
140 inline const InputS3Configuration& GetInputS3Configuration() const { return m_inputS3Configuration; }
141 inline bool InputS3ConfigurationHasBeenSet() const { return m_inputS3ConfigurationHasBeenSet; }
142 template <typename InputS3ConfigurationT = InputS3Configuration>
143 void SetInputS3Configuration(InputS3ConfigurationT&& value) {
144 m_inputS3ConfigurationHasBeenSet = true;
145 m_inputS3Configuration = std::forward<InputS3ConfigurationT>(value);
146 }
147 template <typename InputS3ConfigurationT = InputS3Configuration>
148 BulkOperationDescription& WithInputS3Configuration(InputS3ConfigurationT&& value) {
149 SetInputS3Configuration(std::forward<InputS3ConfigurationT>(value));
150 return *this;
151 }
153
155
158 inline const OutputS3Configuration& GetOutputS3Configuration() const { return m_outputS3Configuration; }
159 inline bool OutputS3ConfigurationHasBeenSet() const { return m_outputS3ConfigurationHasBeenSet; }
160 template <typename OutputS3ConfigurationT = OutputS3Configuration>
161 void SetOutputS3Configuration(OutputS3ConfigurationT&& value) {
162 m_outputS3ConfigurationHasBeenSet = true;
163 m_outputS3Configuration = std::forward<OutputS3ConfigurationT>(value);
164 }
165 template <typename OutputS3ConfigurationT = OutputS3Configuration>
166 BulkOperationDescription& WithOutputS3Configuration(OutputS3ConfigurationT&& value) {
167 SetOutputS3Configuration(std::forward<OutputS3ConfigurationT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
177 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
178 template <typename StartTimeT = Aws::Utils::DateTime>
179 void SetStartTime(StartTimeT&& value) {
180 m_startTimeHasBeenSet = true;
181 m_startTime = std::forward<StartTimeT>(value);
182 }
183 template <typename StartTimeT = Aws::Utils::DateTime>
185 SetStartTime(std::forward<StartTimeT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
196 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
197 template <typename EndTimeT = Aws::Utils::DateTime>
198 void SetEndTime(EndTimeT&& value) {
199 m_endTimeHasBeenSet = true;
200 m_endTime = std::forward<EndTimeT>(value);
201 }
202 template <typename EndTimeT = Aws::Utils::DateTime>
204 SetEndTime(std::forward<EndTimeT>(value));
205 return *this;
206 }
208
210
215 inline long long GetProcessedItemCount() const { return m_processedItemCount; }
216 inline bool ProcessedItemCountHasBeenSet() const { return m_processedItemCountHasBeenSet; }
217 inline void SetProcessedItemCount(long long value) {
218 m_processedItemCountHasBeenSet = true;
219 m_processedItemCount = value;
220 }
223 return *this;
224 }
226
228
232 inline long long GetProcessedInputBytes() const { return m_processedInputBytes; }
233 inline bool ProcessedInputBytesHasBeenSet() const { return m_processedInputBytesHasBeenSet; }
234 inline void SetProcessedInputBytes(long long value) {
235 m_processedInputBytesHasBeenSet = true;
236 m_processedInputBytes = value;
237 }
240 return *this;
241 }
243
245
249 inline long long GetTotalInputBytes() const { return m_totalInputBytes; }
250 inline bool TotalInputBytesHasBeenSet() const { return m_totalInputBytesHasBeenSet; }
251 inline void SetTotalInputBytes(long long value) {
252 m_totalInputBytesHasBeenSet = true;
253 m_totalInputBytes = value;
254 }
256 SetTotalInputBytes(value);
257 return *this;
258 }
260
262
265 inline const Aws::Vector<BulkOperationUsage>& GetBulkOperationUsage() const { return m_bulkOperationUsage; }
266 inline bool BulkOperationUsageHasBeenSet() const { return m_bulkOperationUsageHasBeenSet; }
267 template <typename BulkOperationUsageT = Aws::Vector<BulkOperationUsage>>
268 void SetBulkOperationUsage(BulkOperationUsageT&& value) {
269 m_bulkOperationUsageHasBeenSet = true;
270 m_bulkOperationUsage = std::forward<BulkOperationUsageT>(value);
271 }
272 template <typename BulkOperationUsageT = Aws::Vector<BulkOperationUsage>>
273 BulkOperationDescription& WithBulkOperationUsage(BulkOperationUsageT&& value) {
274 SetBulkOperationUsage(std::forward<BulkOperationUsageT>(value));
275 return *this;
276 }
277 template <typename BulkOperationUsageT = BulkOperationUsage>
278 BulkOperationDescription& AddBulkOperationUsage(BulkOperationUsageT&& value) {
279 m_bulkOperationUsageHasBeenSet = true;
280 m_bulkOperationUsage.emplace_back(std::forward<BulkOperationUsageT>(value));
281 return *this;
282 }
284
286
291 inline long long GetFailedItemCount() const { return m_failedItemCount; }
292 inline bool FailedItemCountHasBeenSet() const { return m_failedItemCountHasBeenSet; }
293 inline void SetFailedItemCount(long long value) {
294 m_failedItemCountHasBeenSet = true;
295 m_failedItemCount = value;
296 }
298 SetFailedItemCount(value);
299 return *this;
300 }
302
304
309 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
310 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
311 template <typename FailureCodeT = Aws::String>
312 void SetFailureCode(FailureCodeT&& value) {
313 m_failureCodeHasBeenSet = true;
314 m_failureCode = std::forward<FailureCodeT>(value);
315 }
316 template <typename FailureCodeT = Aws::String>
318 SetFailureCode(std::forward<FailureCodeT>(value));
319 return *this;
320 }
322
324
329 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
330 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
331 template <typename FailureMessageT = Aws::String>
332 void SetFailureMessage(FailureMessageT&& value) {
333 m_failureMessageHasBeenSet = true;
334 m_failureMessage = std::forward<FailureMessageT>(value);
335 }
336 template <typename FailureMessageT = Aws::String>
338 SetFailureMessage(std::forward<FailureMessageT>(value));
339 return *this;
340 }
342
344
347 inline long long GetMaxWriteRequestUnits() const { return m_maxWriteRequestUnits; }
348 inline bool MaxWriteRequestUnitsHasBeenSet() const { return m_maxWriteRequestUnitsHasBeenSet; }
349 inline void SetMaxWriteRequestUnits(long long value) {
350 m_maxWriteRequestUnitsHasBeenSet = true;
351 m_maxWriteRequestUnits = value;
352 }
355 return *this;
356 }
358
360
365 inline BulkOperationPerformanceTier GetPerformanceTier() const { return m_performanceTier; }
366 inline bool PerformanceTierHasBeenSet() const { return m_performanceTierHasBeenSet; }
368 m_performanceTierHasBeenSet = true;
369 m_performanceTier = value;
370 }
376 private:
377 Aws::String m_bulkOperationArn;
378
380
382
383 Aws::String m_clientToken;
384
385 InputS3Configuration m_inputS3Configuration;
386
387 OutputS3Configuration m_outputS3Configuration;
388
389 Aws::Utils::DateTime m_startTime{};
390
391 Aws::Utils::DateTime m_endTime{};
392
393 long long m_processedItemCount{0};
394
395 long long m_processedInputBytes{0};
396
397 long long m_totalInputBytes{0};
398
399 Aws::Vector<BulkOperationUsage> m_bulkOperationUsage;
400
401 long long m_failedItemCount{0};
402
403 Aws::String m_failureCode;
404
405 Aws::String m_failureMessage;
406
407 long long m_maxWriteRequestUnits{0};
408
410 bool m_bulkOperationArnHasBeenSet = false;
411 bool m_bulkOperationStatusHasBeenSet = false;
412 bool m_tableDetailsHasBeenSet = false;
413 bool m_clientTokenHasBeenSet = false;
414 bool m_inputS3ConfigurationHasBeenSet = false;
415 bool m_outputS3ConfigurationHasBeenSet = false;
416 bool m_startTimeHasBeenSet = false;
417 bool m_endTimeHasBeenSet = false;
418 bool m_processedItemCountHasBeenSet = false;
419 bool m_processedInputBytesHasBeenSet = false;
420 bool m_totalInputBytesHasBeenSet = false;
421 bool m_bulkOperationUsageHasBeenSet = false;
422 bool m_failedItemCountHasBeenSet = false;
423 bool m_failureCodeHasBeenSet = false;
424 bool m_failureMessageHasBeenSet = false;
425 bool m_maxWriteRequestUnitsHasBeenSet = false;
426 bool m_performanceTierHasBeenSet = false;
427};
428
429} // namespace Model
430} // namespace DynamoDB
431} // namespace Aws
void SetPerformanceTier(BulkOperationPerformanceTier value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_DYNAMODB_API BulkOperationDescription(Aws::Utils::Json::JsonView jsonValue)
BulkOperationDescription & WithClientToken(ClientTokenT &&value)
BulkOperationDescription & WithFailureCode(FailureCodeT &&value)
BulkOperationDescription & WithBulkOperationUsage(BulkOperationUsageT &&value)
BulkOperationDescription & WithProcessedItemCount(long long value)
void SetBulkOperationUsage(BulkOperationUsageT &&value)
BulkOperationDescription & AddTableDetails(TableDetailsT &&value)
BulkOperationDescription & WithProcessedInputBytes(long long value)
BulkOperationDescription & AddBulkOperationUsage(BulkOperationUsageT &&value)
const InputS3Configuration & GetInputS3Configuration() const
BulkOperationDescription & WithEndTime(EndTimeT &&value)
const OutputS3Configuration & GetOutputS3Configuration() const
BulkOperationDescription & WithFailureMessage(FailureMessageT &&value)
BulkOperationDescription & WithTableDetails(TableDetailsT &&value)
BulkOperationPerformanceTier GetPerformanceTier() const
AWS_DYNAMODB_API BulkOperationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BulkOperationTableDetail > & GetTableDetails() const
BulkOperationDescription & WithMaxWriteRequestUnits(long long value)
void SetInputS3Configuration(InputS3ConfigurationT &&value)
BulkOperationDescription & WithTotalInputBytes(long long value)
BulkOperationDescription & WithBulkOperationStatus(BulkOperationStatus value)
BulkOperationDescription & WithInputS3Configuration(InputS3ConfigurationT &&value)
BulkOperationDescription & WithPerformanceTier(BulkOperationPerformanceTier value)
BulkOperationDescription & WithOutputS3Configuration(OutputS3ConfigurationT &&value)
void SetOutputS3Configuration(OutputS3ConfigurationT &&value)
BulkOperationDescription & WithBulkOperationArn(BulkOperationArnT &&value)
const Aws::Vector< BulkOperationUsage > & GetBulkOperationUsage() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BulkOperationDescription & WithFailedItemCount(long long value)
BulkOperationDescription & WithStartTime(StartTimeT &&value)
AWS_DYNAMODB_API BulkOperationDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue