AWS SDK for C++  0.12.9
AWS SDK for C++
BatchWriteItemResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 template<typename RESULT_TYPE>
27 class AmazonWebServiceResult;
28 
29 namespace Utils
30 {
31 namespace Json
32 {
33  class JsonValue;
34 } // namespace Json
35 } // namespace Utils
36 namespace DynamoDB
37 {
38 namespace Model
39 {
44  {
45  public:
49 
75  inline const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& GetUnprocessedItems() const{ return m_unprocessedItems; }
76 
102  inline void SetUnprocessedItems(const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& value) { m_unprocessedItems = value; }
103 
129  inline void SetUnprocessedItems(Aws::Map<Aws::String, Aws::Vector<WriteRequest>>&& value) { m_unprocessedItems = value; }
130 
156  inline BatchWriteItemResult& WithUnprocessedItems(const Aws::Map<Aws::String, Aws::Vector<WriteRequest>>& value) { SetUnprocessedItems(value); return *this;}
157 
183  inline BatchWriteItemResult& WithUnprocessedItems(Aws::Map<Aws::String, Aws::Vector<WriteRequest>>&& value) { SetUnprocessedItems(value); return *this;}
184 
210  inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems[key] = value; return *this; }
211 
237  inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems[key] = value; return *this; }
238 
264  inline BatchWriteItemResult& AddUnprocessedItems(const Aws::String& key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems[key] = value; return *this; }
265 
291  inline BatchWriteItemResult& AddUnprocessedItems(Aws::String&& key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems[key] = value; return *this; }
292 
318  inline BatchWriteItemResult& AddUnprocessedItems(const char* key, Aws::Vector<WriteRequest>&& value) { m_unprocessedItems[key] = value; return *this; }
319 
345  inline BatchWriteItemResult& AddUnprocessedItems(const char* key, const Aws::Vector<WriteRequest>& value) { m_unprocessedItems[key] = value; return *this; }
346 
362  inline const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
363 
379  inline void SetItemCollectionMetrics(const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& value) { m_itemCollectionMetrics = value; }
380 
396  inline void SetItemCollectionMetrics(Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>&& value) { m_itemCollectionMetrics = value; }
397 
413  inline BatchWriteItemResult& WithItemCollectionMetrics(const Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>& value) { SetItemCollectionMetrics(value); return *this;}
414 
430  inline BatchWriteItemResult& WithItemCollectionMetrics(Aws::Map<Aws::String, Aws::Vector<ItemCollectionMetrics>>&& value) { SetItemCollectionMetrics(value); return *this;}
431 
447  inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics[key] = value; return *this; }
448 
464  inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics[key] = value; return *this; }
465 
481  inline BatchWriteItemResult& AddItemCollectionMetrics(const Aws::String& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics[key] = value; return *this; }
482 
498  inline BatchWriteItemResult& AddItemCollectionMetrics(Aws::String&& key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics[key] = value; return *this; }
499 
515  inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, Aws::Vector<ItemCollectionMetrics>&& value) { m_itemCollectionMetrics[key] = value; return *this; }
516 
532  inline BatchWriteItemResult& AddItemCollectionMetrics(const char* key, const Aws::Vector<ItemCollectionMetrics>& value) { m_itemCollectionMetrics[key] = value; return *this; }
533 
540  inline const Aws::Vector<ConsumedCapacity>& GetConsumedCapacity() const{ return m_consumedCapacity; }
541 
548  inline void SetConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { m_consumedCapacity = value; }
549 
556  inline void SetConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { m_consumedCapacity = value; }
557 
564  inline BatchWriteItemResult& WithConsumedCapacity(const Aws::Vector<ConsumedCapacity>& value) { SetConsumedCapacity(value); return *this;}
565 
572  inline BatchWriteItemResult& WithConsumedCapacity(Aws::Vector<ConsumedCapacity>&& value) { SetConsumedCapacity(value); return *this;}
573 
580  inline BatchWriteItemResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; }
581 
588  inline BatchWriteItemResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(value); return *this; }
589 
590  private:
593  Aws::Vector<ConsumedCapacity> m_consumedCapacity;
594  };
595 
596 } // namespace Model
597 } // namespace DynamoDB
598 } // namespace Aws
BatchWriteItemResult & AddUnprocessedItems(Aws::String &&key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const char *key, Aws::Vector< ItemCollectionMetrics > &&value)
BatchWriteItemResult & WithUnprocessedItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest >> &&value)
BatchWriteItemResult & AddItemCollectionMetrics(Aws::String &&key, Aws::Vector< ItemCollectionMetrics > &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const Aws::String &key, Aws::Vector< ItemCollectionMetrics > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
BatchWriteItemResult & AddConsumedCapacity(const ConsumedCapacity &value)
void SetUnprocessedItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest >> &value)
BatchWriteItemResult & WithConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchWriteItemResult & AddUnprocessedItems(const Aws::String &key, Aws::Vector< WriteRequest > &&value)
#define AWS_DYNAMODB_API
BatchWriteItemResult & AddUnprocessedItems(const char *key, Aws::Vector< WriteRequest > &&value)
BatchWriteItemResult & WithUnprocessedItems(const Aws::Map< Aws::String, Aws::Vector< WriteRequest >> &value)
BatchWriteItemResult & WithItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics >> &&value)
BatchWriteItemResult & AddItemCollectionMetrics(const Aws::String &key, const Aws::Vector< ItemCollectionMetrics > &value)
void SetItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics >> &value)
const Aws::Vector< ConsumedCapacity > & GetConsumedCapacity() const
BatchWriteItemResult & AddUnprocessedItems(const Aws::String &key, const Aws::Vector< WriteRequest > &value)
void SetUnprocessedItems(Aws::Map< Aws::String, Aws::Vector< WriteRequest >> &&value)
void SetConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
BatchWriteItemResult & AddItemCollectionMetrics(const char *key, const Aws::Vector< ItemCollectionMetrics > &value)
const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics > > & GetItemCollectionMetrics() const
BatchWriteItemResult & WithConsumedCapacity(const Aws::Vector< ConsumedCapacity > &value)
BatchWriteItemResult & WithItemCollectionMetrics(const Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics >> &value)
void SetConsumedCapacity(Aws::Vector< ConsumedCapacity > &&value)
BatchWriteItemResult & AddUnprocessedItems(const char *key, const Aws::Vector< WriteRequest > &value)
void SetItemCollectionMetrics(Aws::Map< Aws::String, Aws::Vector< ItemCollectionMetrics >> &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BatchWriteItemResult & AddItemCollectionMetrics(Aws::String &&key, const Aws::Vector< ItemCollectionMetrics > &value)
const Aws::Map< Aws::String, Aws::Vector< WriteRequest > > & GetUnprocessedItems() const
BatchWriteItemResult & AddUnprocessedItems(Aws::String &&key, const Aws::Vector< WriteRequest > &value)
BatchWriteItemResult & AddConsumedCapacity(ConsumedCapacity &&value)
JSON (JavaScript Object Notation).