AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ItemCollectionMetrics.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_DYNAMODB_API ItemCollectionMetrics() = default;
43 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Map<Aws::String, AttributeValue>& GetItemCollectionKey() const { return m_itemCollectionKey; }
52 inline bool ItemCollectionKeyHasBeenSet() const { return m_itemCollectionKeyHasBeenSet; }
53 template<typename ItemCollectionKeyT = Aws::Map<Aws::String, AttributeValue>>
54 void SetItemCollectionKey(ItemCollectionKeyT&& value) { m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey = std::forward<ItemCollectionKeyT>(value); }
55 template<typename ItemCollectionKeyT = Aws::Map<Aws::String, AttributeValue>>
56 ItemCollectionMetrics& WithItemCollectionKey(ItemCollectionKeyT&& value) { SetItemCollectionKey(std::forward<ItemCollectionKeyT>(value)); return *this;}
57 template<typename ItemCollectionKeyKeyT = Aws::String, typename ItemCollectionKeyValueT = AttributeValue>
58 ItemCollectionMetrics& AddItemCollectionKey(ItemCollectionKeyKeyT&& key, ItemCollectionKeyValueT&& value) {
59 m_itemCollectionKeyHasBeenSet = true; m_itemCollectionKey.emplace(std::forward<ItemCollectionKeyKeyT>(key), std::forward<ItemCollectionKeyValueT>(value)); return *this;
60 }
62
64
73 inline const Aws::Vector<double>& GetSizeEstimateRangeGB() const { return m_sizeEstimateRangeGB; }
74 inline bool SizeEstimateRangeGBHasBeenSet() const { return m_sizeEstimateRangeGBHasBeenSet; }
75 template<typename SizeEstimateRangeGBT = Aws::Vector<double>>
76 void SetSizeEstimateRangeGB(SizeEstimateRangeGBT&& value) { m_sizeEstimateRangeGBHasBeenSet = true; m_sizeEstimateRangeGB = std::forward<SizeEstimateRangeGBT>(value); }
77 template<typename SizeEstimateRangeGBT = Aws::Vector<double>>
78 ItemCollectionMetrics& WithSizeEstimateRangeGB(SizeEstimateRangeGBT&& value) { SetSizeEstimateRangeGB(std::forward<SizeEstimateRangeGBT>(value)); return *this;}
79 inline ItemCollectionMetrics& AddSizeEstimateRangeGB(double value) { m_sizeEstimateRangeGBHasBeenSet = true; m_sizeEstimateRangeGB.push_back(value); return *this; }
81 private:
82
83 Aws::Map<Aws::String, AttributeValue> m_itemCollectionKey;
84 bool m_itemCollectionKeyHasBeenSet = false;
85
86 Aws::Vector<double> m_sizeEstimateRangeGB;
87 bool m_sizeEstimateRangeGBHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DynamoDB
92} // namespace Aws
ItemCollectionMetrics & AddItemCollectionKey(ItemCollectionKeyKeyT &&key, ItemCollectionKeyValueT &&value)
AWS_DYNAMODB_API ItemCollectionMetrics()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ItemCollectionMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetSizeEstimateRangeGB() const
void SetItemCollectionKey(ItemCollectionKeyT &&value)
ItemCollectionMetrics & WithSizeEstimateRangeGB(SizeEstimateRangeGBT &&value)
void SetSizeEstimateRangeGB(SizeEstimateRangeGBT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetItemCollectionKey() const
ItemCollectionMetrics & WithItemCollectionKey(ItemCollectionKeyT &&value)
ItemCollectionMetrics & AddSizeEstimateRangeGB(double value)
AWS_DYNAMODB_API ItemCollectionMetrics(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue