AWS SDK for C++  0.12.9
AWS SDK for C++
ItemCollectionMetrics.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DynamoDB
32 {
33 namespace Model
34 {
35 
43  {
44  public:
47  ItemCollectionMetrics& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
54  inline const Aws::Map<Aws::String, AttributeValue>& GetItemCollectionKey() const{ return m_itemCollectionKey; }
55 
60  inline void SetItemCollectionKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey = value; }
61 
66  inline void SetItemCollectionKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey = value; }
67 
72  inline ItemCollectionMetrics& WithItemCollectionKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetItemCollectionKey(value); return *this;}
73 
78  inline ItemCollectionMetrics& WithItemCollectionKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetItemCollectionKey(value); return *this;}
79 
84  inline ItemCollectionMetrics& AddItemCollectionKey(const Aws::String& key, const AttributeValue& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
85 
90  inline ItemCollectionMetrics& AddItemCollectionKey(Aws::String&& key, const AttributeValue& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
91 
96  inline ItemCollectionMetrics& AddItemCollectionKey(const Aws::String& key, AttributeValue&& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
97 
102  inline ItemCollectionMetrics& AddItemCollectionKey(Aws::String&& key, AttributeValue&& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
103 
108  inline ItemCollectionMetrics& AddItemCollectionKey(const char* key, AttributeValue&& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
109 
114  inline ItemCollectionMetrics& AddItemCollectionKey(const char* key, const AttributeValue& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey[key] = value; return *this; }
115 
125  inline const Aws::Vector<double>& GetSizeEstimateRangeGB() const{ return m_sizeEstimateRangeGB; }
126 
136  inline void SetSizeEstimateRangeGB(const Aws::Vector<double>& value) { m_sizeEstimateRangeGBHasBeenSet = true; m_sizeEstimateRangeGB = value; }
137 
147  inline void SetSizeEstimateRangeGB(Aws::Vector<double>&& value) { m_sizeEstimateRangeGBHasBeenSet = true; m_sizeEstimateRangeGB = value; }
148 
158  inline ItemCollectionMetrics& WithSizeEstimateRangeGB(const Aws::Vector<double>& value) { SetSizeEstimateRangeGB(value); return *this;}
159 
169  inline ItemCollectionMetrics& WithSizeEstimateRangeGB(Aws::Vector<double>&& value) { SetSizeEstimateRangeGB(value); return *this;}
170 
180  inline ItemCollectionMetrics& AddSizeEstimateRangeGB(double value) { m_sizeEstimateRangeGBHasBeenSet = true; m_sizeEstimateRangeGB.push_back(value); return *this; }
181 
182  private:
183  Aws::Map<Aws::String, AttributeValue> m_itemCollectionKey;
184  bool m_itemCollectionKeyHasBeenSet;
185  Aws::Vector<double> m_sizeEstimateRangeGB;
186  bool m_sizeEstimateRangeGBHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace DynamoDB
191 } // namespace Aws
void SetItemCollectionKey(Aws::Map< Aws::String, AttributeValue > &&value)
ItemCollectionMetrics & AddItemCollectionKey(const char *key, const AttributeValue &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ItemCollectionMetrics & AddSizeEstimateRangeGB(double value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
ItemCollectionMetrics & AddItemCollectionKey(const char *key, AttributeValue &&value)
const Aws::Vector< double > & GetSizeEstimateRangeGB() const
#define AWS_DYNAMODB_API
void SetItemCollectionKey(const Aws::Map< Aws::String, AttributeValue > &value)
void SetSizeEstimateRangeGB(Aws::Vector< double > &&value)
ItemCollectionMetrics & WithItemCollectionKey(Aws::Map< Aws::String, AttributeValue > &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItemCollectionKey() const
void SetSizeEstimateRangeGB(const Aws::Vector< double > &value)
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
ItemCollectionMetrics & WithItemCollectionKey(const Aws::Map< Aws::String, AttributeValue > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ItemCollectionMetrics & AddItemCollectionKey(Aws::String &&key, const AttributeValue &value)
ItemCollectionMetrics & WithSizeEstimateRangeGB(Aws::Vector< double > &&value)
ItemCollectionMetrics & AddItemCollectionKey(const Aws::String &key, const AttributeValue &value)
ItemCollectionMetrics & AddItemCollectionKey(const Aws::String &key, AttributeValue &&value)
JSON (JavaScript Object Notation).
ItemCollectionMetrics & WithSizeEstimateRangeGB(const Aws::Vector< double > &value)
ItemCollectionMetrics & AddItemCollectionKey(Aws::String &&key, AttributeValue &&value)