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>
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>>
54 template<
typename DimensionsKeyT = Aws::String,
typename DimensionsValueT = Aws::String>
56 m_dimensionsHasBeenSet =
true; m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value));
return *
this;
66 template<
typename MetricIntervalT = MetricInterval>
67 void SetMetricInterval(MetricIntervalT&& value) { m_metricIntervalHasBeenSet =
true; m_metricInterval = std::forward<MetricIntervalT>(value); }
68 template<
typename MetricIntervalT = MetricInterval>
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>>
82 template<
typename CollectionsT = MetricDataV2>
83 MetricResultV2&
AddCollections(CollectionsT&& value) { m_collectionsHasBeenSet =
true; m_collections.emplace_back(std::forward<CollectionsT>(value));
return *
this; }
88 bool m_dimensionsHasBeenSet =
false;
91 bool m_metricIntervalHasBeenSet =
false;
94 bool m_collectionsHasBeenSet =
false;
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
bool MetricIntervalHasBeenSet() const
AWS_CONNECT_API MetricResultV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API MetricResultV2(Aws::Utils::Json::JsonView jsonValue)
const MetricInterval & GetMetricInterval() const
bool CollectionsHasBeenSet() 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)
bool DimensionsHasBeenSet() const
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