7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MetricFilterV2.h>
9#include <aws/connect/model/ThresholdV2.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
62 template <
typename ThresholdT = Aws::Vector<ThresholdV2>>
64 m_thresholdHasBeenSet =
true;
65 m_threshold = std::forward<ThresholdT>(value);
67 template <
typename ThresholdT = Aws::Vector<ThresholdV2>>
72 template <
typename ThresholdT = ThresholdV2>
74 m_thresholdHasBeenSet =
true;
75 m_threshold.emplace_back(std::forward<ThresholdT>(value));
87 template <
typename MetricIdT = Aws::String>
89 m_metricIdHasBeenSet =
true;
90 m_metricId = std::forward<MetricIdT>(value);
92 template <
typename MetricIdT = Aws::String>
105 template <
typename MetricFiltersT = Aws::Vector<MetricFilterV2>>
107 m_metricFiltersHasBeenSet =
true;
108 m_metricFilters = std::forward<MetricFiltersT>(value);
110 template <
typename MetricFiltersT = Aws::Vector<MetricFilterV2>>
115 template <
typename MetricFiltersT = MetricFilterV2>
117 m_metricFiltersHasBeenSet =
true;
118 m_metricFilters.emplace_back(std::forward<MetricFiltersT>(value));
130 bool m_nameHasBeenSet =
false;
131 bool m_thresholdHasBeenSet =
false;
132 bool m_metricIdHasBeenSet =
false;
133 bool m_metricFiltersHasBeenSet =
false;
MetricV2 & AddThreshold(ThresholdT &&value)
const Aws::Vector< MetricFilterV2 > & GetMetricFilters() const
void SetMetricId(MetricIdT &&value)
bool MetricFiltersHasBeenSet() const
bool ThresholdHasBeenSet() const
bool NameHasBeenSet() const
AWS_CONNECT_API MetricV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
MetricV2 & WithThreshold(ThresholdT &&value)
bool MetricIdHasBeenSet() const
void SetMetricFilters(MetricFiltersT &&value)
MetricV2 & WithMetricId(MetricIdT &&value)
MetricV2 & AddMetricFilters(MetricFiltersT &&value)
const Aws::String & GetMetricId() const
MetricV2 & WithName(NameT &&value)
AWS_CONNECT_API MetricV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const Aws::Vector< ThresholdV2 > & GetThreshold() const
AWS_CONNECT_API MetricV2()=default
MetricV2 & WithMetricFilters(MetricFiltersT &&value)
void SetThreshold(ThresholdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue