AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteItemResult.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
22 
23 namespace Aws
24 {
25 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Json
31 {
32  class JsonValue;
33 } // namespace Json
34 } // namespace Utils
35 namespace DynamoDB
36 {
37 namespace Model
38 {
43  {
44  public:
48 
55  inline const Aws::Map<Aws::String, AttributeValue>& GetAttributes() const{ return m_attributes; }
56 
63  inline void SetAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_attributes = value; }
64 
71  inline void SetAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_attributes = value; }
72 
79  inline DeleteItemResult& WithAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { SetAttributes(value); return *this;}
80 
87  inline DeleteItemResult& WithAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetAttributes(value); return *this;}
88 
95  inline DeleteItemResult& AddAttributes(const Aws::String& key, const AttributeValue& value) { m_attributes[key] = value; return *this; }
96 
103  inline DeleteItemResult& AddAttributes(Aws::String&& key, const AttributeValue& value) { m_attributes[key] = value; return *this; }
104 
111  inline DeleteItemResult& AddAttributes(const Aws::String& key, AttributeValue&& value) { m_attributes[key] = value; return *this; }
112 
119  inline DeleteItemResult& AddAttributes(Aws::String&& key, AttributeValue&& value) { m_attributes[key] = value; return *this; }
120 
127  inline DeleteItemResult& AddAttributes(const char* key, AttributeValue&& value) { m_attributes[key] = value; return *this; }
128 
135  inline DeleteItemResult& AddAttributes(const char* key, const AttributeValue& value) { m_attributes[key] = value; return *this; }
136 
137 
138  inline const ConsumedCapacity& GetConsumedCapacity() const{ return m_consumedCapacity; }
139 
140 
141  inline void SetConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity = value; }
142 
143 
144  inline void SetConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity = value; }
145 
146 
147  inline DeleteItemResult& WithConsumedCapacity(const ConsumedCapacity& value) { SetConsumedCapacity(value); return *this;}
148 
149 
150  inline DeleteItemResult& WithConsumedCapacity(ConsumedCapacity&& value) { SetConsumedCapacity(value); return *this;}
151 
168  inline const ItemCollectionMetrics& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; }
169 
186  inline void SetItemCollectionMetrics(const ItemCollectionMetrics& value) { m_itemCollectionMetrics = value; }
187 
204  inline void SetItemCollectionMetrics(ItemCollectionMetrics&& value) { m_itemCollectionMetrics = value; }
205 
222  inline DeleteItemResult& WithItemCollectionMetrics(const ItemCollectionMetrics& value) { SetItemCollectionMetrics(value); return *this;}
223 
240  inline DeleteItemResult& WithItemCollectionMetrics(ItemCollectionMetrics&& value) { SetItemCollectionMetrics(value); return *this;}
241 
242  private:
244  ConsumedCapacity m_consumedCapacity;
245  ItemCollectionMetrics m_itemCollectionMetrics;
246  };
247 
248 } // namespace Model
249 } // namespace DynamoDB
250 } // namespace Aws
void SetConsumedCapacity(ConsumedCapacity &&value)
void SetAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
DeleteItemResult & WithAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
DeleteItemResult & WithItemCollectionMetrics(ItemCollectionMetrics &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetItemCollectionMetrics(ItemCollectionMetrics &&value)
const Aws::Map< Aws::String, AttributeValue > & GetAttributes() const
#define AWS_DYNAMODB_API
const ItemCollectionMetrics & GetItemCollectionMetrics() const
void SetConsumedCapacity(const ConsumedCapacity &value)
DeleteItemResult & WithConsumedCapacity(ConsumedCapacity &&value)
DeleteItemResult & WithAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
DeleteItemResult & AddAttributes(const char *key, const AttributeValue &value)
DeleteItemResult & AddAttributes(Aws::String &&key, AttributeValue &&value)
DeleteItemResult & AddAttributes(const Aws::String &key, AttributeValue &&value)
void SetAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
DeleteItemResult & AddAttributes(const char *key, AttributeValue &&value)
void SetItemCollectionMetrics(const ItemCollectionMetrics &value)
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
DeleteItemResult & AddAttributes(Aws::String &&key, const AttributeValue &value)
DeleteItemResult & WithConsumedCapacity(const ConsumedCapacity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteItemResult & WithItemCollectionMetrics(const ItemCollectionMetrics &value)
DeleteItemResult & AddAttributes(const Aws::String &key, const AttributeValue &value)
const ConsumedCapacity & GetConsumedCapacity() const
JSON (JavaScript Object Notation).