AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
51 inline void SetDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
53 inline MetricResultV2& WithDimensions(Aws::Map<Aws::String, Aws::String>&& value) { SetDimensions(std::move(value)); return *this;}
54 inline MetricResultV2& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
55 inline MetricResultV2& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
56 inline MetricResultV2& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
57 inline MetricResultV2& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
58 inline MetricResultV2& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
59 inline MetricResultV2& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
60 inline MetricResultV2& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
62
64
67 inline const MetricInterval& GetMetricInterval() const{ return m_metricInterval; }
68 inline bool MetricIntervalHasBeenSet() const { return m_metricIntervalHasBeenSet; }
69 inline void SetMetricInterval(const MetricInterval& value) { m_metricIntervalHasBeenSet = true; m_metricInterval = value; }
70 inline void SetMetricInterval(MetricInterval&& value) { m_metricIntervalHasBeenSet = true; m_metricInterval = std::move(value); }
71 inline MetricResultV2& WithMetricInterval(const MetricInterval& value) { SetMetricInterval(value); return *this;}
72 inline MetricResultV2& WithMetricInterval(MetricInterval&& value) { SetMetricInterval(std::move(value)); return *this;}
74
76
79 inline const Aws::Vector<MetricDataV2>& GetCollections() const{ return m_collections; }
80 inline bool CollectionsHasBeenSet() const { return m_collectionsHasBeenSet; }
81 inline void SetCollections(const Aws::Vector<MetricDataV2>& value) { m_collectionsHasBeenSet = true; m_collections = value; }
82 inline void SetCollections(Aws::Vector<MetricDataV2>&& value) { m_collectionsHasBeenSet = true; m_collections = std::move(value); }
83 inline MetricResultV2& WithCollections(const Aws::Vector<MetricDataV2>& value) { SetCollections(value); return *this;}
84 inline MetricResultV2& WithCollections(Aws::Vector<MetricDataV2>&& value) { SetCollections(std::move(value)); return *this;}
85 inline MetricResultV2& AddCollections(const MetricDataV2& value) { m_collectionsHasBeenSet = true; m_collections.push_back(value); return *this; }
86 inline MetricResultV2& AddCollections(MetricDataV2&& value) { m_collectionsHasBeenSet = true; m_collections.push_back(std::move(value)); return *this; }
88 private:
89
91 bool m_dimensionsHasBeenSet = false;
92
93 MetricInterval m_metricInterval;
94 bool m_metricIntervalHasBeenSet = false;
95
96 Aws::Vector<MetricDataV2> m_collections;
97 bool m_collectionsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Connect
102} // namespace Aws
MetricResultV2 & AddDimensions(Aws::String &&key, const char *value)
void SetDimensions(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
void SetCollections(const Aws::Vector< MetricDataV2 > &value)
MetricResultV2 & WithCollections(Aws::Vector< MetricDataV2 > &&value)
AWS_CONNECT_API MetricResultV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricResultV2 & WithDimensions(const Aws::Map< Aws::String, Aws::String > &value)
void SetMetricInterval(MetricInterval &&value)
void SetCollections(Aws::Vector< MetricDataV2 > &&value)
AWS_CONNECT_API MetricResultV2(Aws::Utils::Json::JsonView jsonValue)
MetricResultV2 & AddCollections(MetricDataV2 &&value)
const MetricInterval & GetMetricInterval() const
void SetMetricInterval(const MetricInterval &value)
MetricResultV2 & AddDimensions(const char *key, Aws::String &&value)
MetricResultV2 & WithDimensions(Aws::Map< Aws::String, Aws::String > &&value)
MetricResultV2 & AddDimensions(Aws::String &&key, const Aws::String &value)
MetricResultV2 & AddDimensions(const Aws::String &key, Aws::String &&value)
MetricResultV2 & AddDimensions(const char *key, const char *value)
MetricResultV2 & WithMetricInterval(const MetricInterval &value)
MetricResultV2 & WithCollections(const Aws::Vector< MetricDataV2 > &value)
void SetDimensions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricResultV2 & AddDimensions(const Aws::String &key, const Aws::String &value)
MetricResultV2 & AddDimensions(Aws::String &&key, Aws::String &&value)
const Aws::Vector< MetricDataV2 > & GetCollections() const
MetricResultV2 & WithMetricInterval(MetricInterval &&value)
MetricResultV2 & AddCollections(const MetricDataV2 &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