7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/AggregationFunction.h>
9#include <aws/appmonetization/model/MetricFilter.h>
10#include <aws/appmonetization/model/PeriodType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace AppMonetization {
47 template <
typename FiltersT = Aws::Vector<MetricFilter>>
49 m_filtersHasBeenSet =
true;
50 m_filters = std::forward<FiltersT>(value);
52 template <
typename FiltersT = Aws::Vector<MetricFilter>>
57 template <
typename FiltersT = MetricFilter>
59 m_filtersHasBeenSet =
true;
60 m_filters.emplace_back(std::forward<FiltersT>(value));
72 m_functionHasBeenSet =
true;
88 template <
typename FunctionFieldT = Aws::String>
90 m_functionFieldHasBeenSet =
true;
91 m_functionField = std::forward<FunctionFieldT>(value);
93 template <
typename FunctionFieldT = Aws::String>
106 template <
typename GroupByT = Aws::Vector<Aws::String>>
108 m_groupByHasBeenSet =
true;
109 m_groupBy = std::forward<GroupByT>(value);
111 template <
typename GroupByT = Aws::Vector<Aws::String>>
116 template <
typename GroupByT = Aws::String>
118 m_groupByHasBeenSet =
true;
119 m_groupBy.emplace_back(std::forward<GroupByT>(value));
131 m_periodHasBeenSet =
true;
149 bool m_filtersHasBeenSet =
false;
150 bool m_functionHasBeenSet =
false;
151 bool m_functionFieldHasBeenSet =
false;
152 bool m_groupByHasBeenSet =
false;
153 bool m_periodHasBeenSet =
false;
const Aws::Vector< Aws::String > & GetGroupBy() const
bool FunctionHasBeenSet() const
void SetFunctionField(FunctionFieldT &&value)
MetricDefinition & WithFunction(AggregationFunction value)
const Aws::Vector< MetricFilter > & GetFilters() const
AggregationFunction GetFunction() const
bool GroupByHasBeenSet() const
MetricDefinition & AddFilters(FiltersT &&value)
void SetFilters(FiltersT &&value)
MetricDefinition & WithPeriod(PeriodType value)
MetricDefinition & AddGroupBy(GroupByT &&value)
MetricDefinition & WithFunctionField(FunctionFieldT &&value)
bool PeriodHasBeenSet() const
void SetFunction(AggregationFunction value)
AWS_APPMONETIZATION_API MetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FunctionFieldHasBeenSet() const
PeriodType GetPeriod() const
bool FiltersHasBeenSet() const
AWS_APPMONETIZATION_API MetricDefinition()=default
MetricDefinition & WithGroupBy(GroupByT &&value)
AWS_APPMONETIZATION_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDefinition & WithFilters(FiltersT &&value)
const Aws::String & GetFunctionField() const
void SetPeriod(PeriodType value)
void SetGroupBy(GroupByT &&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