AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ItemCollectionMetrics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
34 public:
35 AWS_DYNAMODB_API ItemCollectionMetrics() = default;
38 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Map<Aws::String, AttributeValue>& GetItemCollectionKey() const { return m_itemCollectionKey; }
46 inline bool ItemCollectionKeyHasBeenSet() const { return m_itemCollectionKeyHasBeenSet; }
47 template <typename ItemCollectionKeyT = Aws::Map<Aws::String, AttributeValue>>
48 void SetItemCollectionKey(ItemCollectionKeyT&& value) {
49 m_itemCollectionKeyHasBeenSet = true;
50 m_itemCollectionKey = std::forward<ItemCollectionKeyT>(value);
51 }
52 template <typename ItemCollectionKeyT = Aws::Map<Aws::String, AttributeValue>>
53 ItemCollectionMetrics& WithItemCollectionKey(ItemCollectionKeyT&& value) {
54 SetItemCollectionKey(std::forward<ItemCollectionKeyT>(value));
55 return *this;
56 }
57 template <typename ItemCollectionKeyKeyT = Aws::String, typename ItemCollectionKeyValueT = AttributeValue>
58 ItemCollectionMetrics& AddItemCollectionKey(ItemCollectionKeyKeyT&& key, ItemCollectionKeyValueT&& value) {
59 m_itemCollectionKeyHasBeenSet = true;
60 m_itemCollectionKey.emplace(std::forward<ItemCollectionKeyKeyT>(key), std::forward<ItemCollectionKeyValueT>(value));
61 return *this;
62 }
64
66
75 inline const Aws::Vector<double>& GetSizeEstimateRangeGB() const { return m_sizeEstimateRangeGB; }
76 inline bool SizeEstimateRangeGBHasBeenSet() const { return m_sizeEstimateRangeGBHasBeenSet; }
77 template <typename SizeEstimateRangeGBT = Aws::Vector<double>>
78 void SetSizeEstimateRangeGB(SizeEstimateRangeGBT&& value) {
79 m_sizeEstimateRangeGBHasBeenSet = true;
80 m_sizeEstimateRangeGB = std::forward<SizeEstimateRangeGBT>(value);
81 }
82 template <typename SizeEstimateRangeGBT = Aws::Vector<double>>
83 ItemCollectionMetrics& WithSizeEstimateRangeGB(SizeEstimateRangeGBT&& value) {
84 SetSizeEstimateRangeGB(std::forward<SizeEstimateRangeGBT>(value));
85 return *this;
86 }
88 m_sizeEstimateRangeGBHasBeenSet = true;
89 m_sizeEstimateRangeGB.push_back(value);
90 return *this;
91 }
93 private:
94 Aws::Map<Aws::String, AttributeValue> m_itemCollectionKey;
95
96 Aws::Vector<double> m_sizeEstimateRangeGB;
97 bool m_itemCollectionKeyHasBeenSet = false;
98 bool m_sizeEstimateRangeGBHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DynamoDB
103} // 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