7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/model/DimensionGroup.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
74 template<
typename MetricT = Aws::String>
75 void SetMetric(MetricT&& value) { m_metricHasBeenSet =
true; m_metric = std::forward<MetricT>(value); }
76 template<
typename MetricT = Aws::String>
90 template<
typename GroupByT = DimensionGroup>
91 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet =
true; m_groupBy = std::forward<GroupByT>(value); }
92 template<
typename GroupByT = DimensionGroup>
107 template<
typename FilterT = Aws::Map<Aws::String, Aws::String>>
108 void SetFilter(FilterT&& value) { m_filterHasBeenSet =
true; m_filter = std::forward<FilterT>(value); }
109 template<
typename FilterT = Aws::Map<Aws::String, Aws::String>>
111 template<
typename FilterKeyT = Aws::String,
typename FilterValueT = Aws::String>
113 m_filterHasBeenSet =
true; m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
return *
this;
119 bool m_metricHasBeenSet =
false;
122 bool m_groupByHasBeenSet =
false;
125 bool m_filterHasBeenSet =
false;
MetricQuery & WithFilter(FilterT &&value)
bool FilterHasBeenSet() const
void SetGroupBy(GroupByT &&value)
void SetFilter(FilterT &&value)
void SetMetric(MetricT &&value)
MetricQuery & WithGroupBy(GroupByT &&value)
AWS_PI_API MetricQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_PI_API MetricQuery()=default
bool GroupByHasBeenSet() const
const Aws::String & GetMetric() const
AWS_PI_API MetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
const DimensionGroup & GetGroupBy() const
bool MetricHasBeenSet() const
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
MetricQuery & AddFilter(FilterKeyT &&key, FilterValueT &&value)
MetricQuery & WithMetric(MetricT &&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
Aws::Utils::Json::JsonValue JsonValue