AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricV2.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connect/model/ThresholdV2.h>
11#include <aws/connect/model/MetricFilterV2.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API MetricV2() = default;
38 AWS_CONNECT_API MetricV2(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API MetricV2& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 MetricV2& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<ThresholdV2>& GetThreshold() const { return m_threshold; }
61 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
62 template<typename ThresholdT = Aws::Vector<ThresholdV2>>
63 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
64 template<typename ThresholdT = Aws::Vector<ThresholdV2>>
65 MetricV2& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
66 template<typename ThresholdT = ThresholdV2>
67 MetricV2& AddThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold.emplace_back(std::forward<ThresholdT>(value)); return *this; }
69
71
74 inline const Aws::Vector<MetricFilterV2>& GetMetricFilters() const { return m_metricFilters; }
75 inline bool MetricFiltersHasBeenSet() const { return m_metricFiltersHasBeenSet; }
76 template<typename MetricFiltersT = Aws::Vector<MetricFilterV2>>
77 void SetMetricFilters(MetricFiltersT&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters = std::forward<MetricFiltersT>(value); }
78 template<typename MetricFiltersT = Aws::Vector<MetricFilterV2>>
79 MetricV2& WithMetricFilters(MetricFiltersT&& value) { SetMetricFilters(std::forward<MetricFiltersT>(value)); return *this;}
80 template<typename MetricFiltersT = MetricFilterV2>
81 MetricV2& AddMetricFilters(MetricFiltersT&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters.emplace_back(std::forward<MetricFiltersT>(value)); return *this; }
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::Vector<ThresholdV2> m_threshold;
89 bool m_thresholdHasBeenSet = false;
90
91 Aws::Vector<MetricFilterV2> m_metricFilters;
92 bool m_metricFiltersHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Connect
97} // namespace Aws
MetricV2 & AddThreshold(ThresholdT &&value)
Definition MetricV2.h:67
const Aws::Vector< MetricFilterV2 > & GetMetricFilters() const
Definition MetricV2.h:74
bool MetricFiltersHasBeenSet() const
Definition MetricV2.h:75
bool ThresholdHasBeenSet() const
Definition MetricV2.h:61
AWS_CONNECT_API MetricV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition MetricV2.h:51
MetricV2 & WithThreshold(ThresholdT &&value)
Definition MetricV2.h:65
void SetMetricFilters(MetricFiltersT &&value)
Definition MetricV2.h:77
MetricV2 & AddMetricFilters(MetricFiltersT &&value)
Definition MetricV2.h:81
MetricV2 & WithName(NameT &&value)
Definition MetricV2.h:53
AWS_CONNECT_API MetricV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition MetricV2.h:48
const Aws::Vector< ThresholdV2 > & GetThreshold() const
Definition MetricV2.h:60
AWS_CONNECT_API MetricV2()=default
MetricV2 & WithMetricFilters(MetricFiltersT &&value)
Definition MetricV2.h:79
void SetThreshold(ThresholdT &&value)
Definition MetricV2.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue