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>
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>
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>>
66 template<
typename ThresholdT = ThresholdV2>
67 MetricV2&
AddThreshold(ThresholdT&& value) { m_thresholdHasBeenSet =
true; m_threshold.emplace_back(std::forward<ThresholdT>(value));
return *
this; }
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>>
80 template<
typename MetricFiltersT = MetricFilterV2>
81 MetricV2&
AddMetricFilters(MetricFiltersT&& value) { m_metricFiltersHasBeenSet =
true; m_metricFilters.emplace_back(std::forward<MetricFiltersT>(value));
return *
this; }
86 bool m_nameHasBeenSet =
false;
89 bool m_thresholdHasBeenSet =
false;
92 bool m_metricFiltersHasBeenSet =
false;
MetricV2 & AddThreshold(ThresholdT &&value)
const Aws::Vector< MetricFilterV2 > & GetMetricFilters() const
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)
void SetMetricFilters(MetricFiltersT &&value)
MetricV2 & AddMetricFilters(MetricFiltersT &&value)
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