AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DimensionKeyDescription.h
1
6#pragma once
7#include <aws/pi/PI_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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PI
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
47 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const{ return m_dimensions; }
48 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
49 inline void SetDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
50 inline void SetDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
53 inline DimensionKeyDescription& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
54 inline DimensionKeyDescription& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
55 inline DimensionKeyDescription& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
56 inline DimensionKeyDescription& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
57 inline DimensionKeyDescription& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
58 inline DimensionKeyDescription& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
59 inline DimensionKeyDescription& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
61
63
67 inline double GetTotal() const{ return m_total; }
68 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
69 inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; }
70 inline DimensionKeyDescription& WithTotal(double value) { SetTotal(value); return *this;}
72
74
77 inline const Aws::Map<Aws::String, double>& GetAdditionalMetrics() const{ return m_additionalMetrics; }
78 inline bool AdditionalMetricsHasBeenSet() const { return m_additionalMetricsHasBeenSet; }
79 inline void SetAdditionalMetrics(const Aws::Map<Aws::String, double>& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = value; }
80 inline void SetAdditionalMetrics(Aws::Map<Aws::String, double>&& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = std::move(value); }
83 inline DimensionKeyDescription& AddAdditionalMetrics(const Aws::String& key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(key, value); return *this; }
84 inline DimensionKeyDescription& AddAdditionalMetrics(Aws::String&& key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(std::move(key), value); return *this; }
85 inline DimensionKeyDescription& AddAdditionalMetrics(const char* key, double value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.emplace(key, value); return *this; }
87
89
93 inline const Aws::Vector<double>& GetPartitions() const{ return m_partitions; }
94 inline bool PartitionsHasBeenSet() const { return m_partitionsHasBeenSet; }
95 inline void SetPartitions(const Aws::Vector<double>& value) { m_partitionsHasBeenSet = true; m_partitions = value; }
96 inline void SetPartitions(Aws::Vector<double>&& value) { m_partitionsHasBeenSet = true; m_partitions = std::move(value); }
97 inline DimensionKeyDescription& WithPartitions(const Aws::Vector<double>& value) { SetPartitions(value); return *this;}
98 inline DimensionKeyDescription& WithPartitions(Aws::Vector<double>&& value) { SetPartitions(std::move(value)); return *this;}
99 inline DimensionKeyDescription& AddPartitions(double value) { m_partitionsHasBeenSet = true; m_partitions.push_back(value); return *this; }
101 private:
102
104 bool m_dimensionsHasBeenSet = false;
105
106 double m_total;
107 bool m_totalHasBeenSet = false;
108
109 Aws::Map<Aws::String, double> m_additionalMetrics;
110 bool m_additionalMetricsHasBeenSet = false;
111
112 Aws::Vector<double> m_partitions;
113 bool m_partitionsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace PI
118} // namespace Aws
DimensionKeyDescription & AddDimensions(const char *key, const char *value)
DimensionKeyDescription & AddDimensions(const Aws::String &key, const Aws::String &value)
DimensionKeyDescription & WithAdditionalMetrics(Aws::Map< Aws::String, double > &&value)
DimensionKeyDescription & AddPartitions(double value)
void SetDimensions(Aws::Map< Aws::String, Aws::String > &&value)
DimensionKeyDescription & AddAdditionalMetrics(Aws::String &&key, double value)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
void SetPartitions(const Aws::Vector< double > &value)
DimensionKeyDescription & AddDimensions(const char *key, Aws::String &&value)
DimensionKeyDescription & WithDimensions(Aws::Map< Aws::String, Aws::String > &&value)
DimensionKeyDescription & WithAdditionalMetrics(const Aws::Map< Aws::String, double > &value)
DimensionKeyDescription & AddDimensions(Aws::String &&key, Aws::String &&value)
DimensionKeyDescription & AddAdditionalMetrics(const Aws::String &key, double value)
DimensionKeyDescription & WithDimensions(const Aws::Map< Aws::String, Aws::String > &value)
DimensionKeyDescription & AddAdditionalMetrics(const char *key, double value)
void SetAdditionalMetrics(Aws::Map< Aws::String, double > &&value)
const Aws::Vector< double > & GetPartitions() const
DimensionKeyDescription & WithPartitions(const Aws::Vector< double > &value)
void SetAdditionalMetrics(const Aws::Map< Aws::String, double > &value)
const Aws::Map< Aws::String, double > & GetAdditionalMetrics() const
AWS_PI_API DimensionKeyDescription(Aws::Utils::Json::JsonView jsonValue)
DimensionKeyDescription & AddDimensions(Aws::String &&key, const Aws::String &value)
DimensionKeyDescription & AddDimensions(const Aws::String &key, Aws::String &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API DimensionKeyDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDimensions(const Aws::Map< Aws::String, Aws::String > &value)
DimensionKeyDescription & WithPartitions(Aws::Vector< double > &&value)
DimensionKeyDescription & AddDimensions(Aws::String &&key, const char *value)
DimensionKeyDescription & WithTotal(double value)
void SetPartitions(Aws::Vector< double > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue