/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

Represents the output of a BatchWriteItem * operation.

See Also:

AWS * API Reference

*/ class BatchWriteItemResult { public: AWS_DYNAMODB_API BatchWriteItemResult(); AWS_DYNAMODB_API BatchWriteItemResult(const Aws::AmazonWebServiceResult& result); AWS_DYNAMODB_API BatchWriteItemResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline const Aws::Map>& GetUnprocessedItems() const{ return m_unprocessedItems; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline void SetUnprocessedItems(const Aws::Map>& value) { m_unprocessedItems = value; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline void SetUnprocessedItems(Aws::Map>&& value) { m_unprocessedItems = std::move(value); } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& WithUnprocessedItems(const Aws::Map>& value) { SetUnprocessedItems(value); return *this;} /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& WithUnprocessedItems(Aws::Map>&& value) { SetUnprocessedItems(std::move(value)); return *this;} /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, const Aws::Vector& value) { m_unprocessedItems.emplace(key, value); return *this; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, const Aws::Vector& value) { m_unprocessedItems.emplace(std::move(key), value); return *this; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, Aws::Vector&& value) { m_unprocessedItems.emplace(key, std::move(value)); return *this; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, Aws::Vector&& value) { m_unprocessedItems.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(const char* key, Aws::Vector&& value) { m_unprocessedItems.emplace(key, std::move(value)); return *this; } /** *

A map of tables and requests against those tables that were not processed. * The UnprocessedItems value is in the same form as * RequestItems, so you can provide this value directly to a * subsequent BatchWriteItem operation. For more information, see * RequestItems in the Request Parameters section.

Each * UnprocessedItems entry consists of a table name and, for that * table, a list of operations to perform (DeleteRequest or * PutRequest).

  • DeleteRequest - Perform * a DeleteItem operation on the specified item. The item to be * deleted is identified by a Key subelement:

    • * Key - A map of primary key attribute values that uniquely identify * the item. Each entry in this map consists of an attribute name and an attribute * value.

  • PutRequest - Perform a * PutItem operation on the specified item. The item to be put is * identified by an Item subelement:

    • * Item - A map of attributes and their values. Each entry in this map * consists of an attribute name and an attribute value. Attribute values must not * be null; string and binary type attributes must have lengths greater than zero; * and set type attributes must not be empty. Requests that contain empty values * will be rejected with a ValidationException exception.

      If * you specify any attributes that are part of an index key, then the data types * for those attributes must match those of the schema in the table's attribute * definition.

If there are no unprocessed items * remaining, the response contains an empty UnprocessedItems map.

*/ inline BatchWriteItemResult& AddUnprocessedItems(const char* key, const Aws::Vector& value) { m_unprocessedItems.emplace(key, value); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline const Aws::Map>& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline void SetItemCollectionMetrics(const Aws::Map>& value) { m_itemCollectionMetrics = value; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline void SetItemCollectionMetrics(Aws::Map>&& value) { m_itemCollectionMetrics = std::move(value); } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& WithItemCollectionMetrics(const Aws::Map>& value) { SetItemCollectionMetrics(value); return *this;} /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& WithItemCollectionMetrics(Aws::Map>&& value) { SetItemCollectionMetrics(std::move(value)); return *this;} /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(key, value); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(std::move(key), value); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; } /** *

A list of tables that were processed by BatchWriteItem and, for * each table, information about any item collections that were affected by * individual DeleteItem or PutItem operations.

*

Each entry consists of the following subelements:

  • * ItemCollectionKey - The partition key value of the item collection. * This is the same as the partition key value of the item.

  • * SizeEstimateRangeGB - An estimate of item collection size, * expressed in GB. This is a two-element array containing a lower bound and an * upper bound for the estimate. The estimate includes the size of all the items in * the table, plus the size of all attributes projected into all of the local * secondary indexes on the table. Use this estimate to measure whether a local * secondary index is approaching its size limit.

    The estimate is subject to * change over time; therefore, do not rely on the precision or accuracy of the * estimate.

*/ inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(key, value); return *this; } /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline const Aws::Vector& GetConsumedCapacity() const{ return m_consumedCapacity; } /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline void SetConsumedCapacity(const Aws::Vector& value) { m_consumedCapacity = value; } /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline void SetConsumedCapacity(Aws::Vector&& value) { m_consumedCapacity = std::move(value); } /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline BatchWriteItemResult& WithConsumedCapacity(const Aws::Vector& value) { SetConsumedCapacity(value); return *this;} /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline BatchWriteItemResult& WithConsumedCapacity(Aws::Vector&& value) { SetConsumedCapacity(std::move(value)); return *this;} /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline BatchWriteItemResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; } /** *

The capacity units consumed by the entire BatchWriteItem * operation.

Each element consists of:

  • * TableName - The table that consumed the provisioned throughput.

    *
  • CapacityUnits - The total number of capacity units * consumed.

*/ inline BatchWriteItemResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchWriteItemResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchWriteItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchWriteItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map> m_unprocessedItems; Aws::Map> m_itemCollectionMetrics; Aws::Vector m_consumedCapacity; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDB } // namespace Aws