AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricResultV2.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/connect/model/MetricInterval.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/connect/model/MetricDataV2.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API MetricResultV2() = default;
39 AWS_CONNECT_API MetricResultV2(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const { return m_dimensions; }
49 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
50 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
51 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
52 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
53 MetricResultV2& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
54 template<typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
55 MetricResultV2& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
56 m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value)); return *this;
57 }
59
61
64 inline const MetricInterval& GetMetricInterval() const { return m_metricInterval; }
65 inline bool MetricIntervalHasBeenSet() const { return m_metricIntervalHasBeenSet; }
66 template<typename MetricIntervalT = MetricInterval>
67 void SetMetricInterval(MetricIntervalT&& value) { m_metricIntervalHasBeenSet = true; m_metricInterval = std::forward<MetricIntervalT>(value); }
68 template<typename MetricIntervalT = MetricInterval>
69 MetricResultV2& WithMetricInterval(MetricIntervalT&& value) { SetMetricInterval(std::forward<MetricIntervalT>(value)); return *this;}
71
73
76 inline const Aws::Vector<MetricDataV2>& GetCollections() const { return m_collections; }
77 inline bool CollectionsHasBeenSet() const { return m_collectionsHasBeenSet; }
78 template<typename CollectionsT = Aws::Vector<MetricDataV2>>
79 void SetCollections(CollectionsT&& value) { m_collectionsHasBeenSet = true; m_collections = std::forward<CollectionsT>(value); }
80 template<typename CollectionsT = Aws::Vector<MetricDataV2>>
81 MetricResultV2& WithCollections(CollectionsT&& value) { SetCollections(std::forward<CollectionsT>(value)); return *this;}
82 template<typename CollectionsT = MetricDataV2>
83 MetricResultV2& AddCollections(CollectionsT&& value) { m_collectionsHasBeenSet = true; m_collections.emplace_back(std::forward<CollectionsT>(value)); return *this; }
85 private:
86
88 bool m_dimensionsHasBeenSet = false;
89
90 MetricInterval m_metricInterval;
91 bool m_metricIntervalHasBeenSet = false;
92
93 Aws::Vector<MetricDataV2> m_collections;
94 bool m_collectionsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Connect
99} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_CONNECT_API MetricResultV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API MetricResultV2(Aws::Utils::Json::JsonView jsonValue)
const MetricInterval & GetMetricInterval() const
MetricResultV2 & WithMetricInterval(MetricIntervalT &&value)
void SetMetricInterval(MetricIntervalT &&value)
void SetDimensions(DimensionsT &&value)
MetricResultV2 & AddDimensions(DimensionsKeyT &&key, DimensionsValueT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< MetricDataV2 > & GetCollections() const
MetricResultV2 & WithCollections(CollectionsT &&value)
MetricResultV2 & WithDimensions(DimensionsT &&value)
AWS_CONNECT_API MetricResultV2()=default
void SetCollections(CollectionsT &&value)
MetricResultV2 & AddCollections(CollectionsT &&value)
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