7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AggregationFunction.h>
22namespace LookoutMetrics
36 AWS_LOOKOUTMETRICS_API
Metric() =
default;
48 template<
typename MetricNameT = Aws::String>
49 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
50 template<
typename MetricNameT = Aws::String>
70 template<
typename NamespaceT = Aws::String>
71 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet =
true; m_namespace = std::forward<NamespaceT>(value); }
72 template<
typename NamespaceT = Aws::String>
78 bool m_metricNameHasBeenSet =
false;
81 bool m_aggregationFunctionHasBeenSet =
false;
84 bool m_namespaceHasBeenSet =
false;
void SetNamespace(NamespaceT &&value)
AWS_LOOKOUTMETRICS_API Metric()=default
AggregationFunction GetAggregationFunction() const
void SetAggregationFunction(AggregationFunction value)
bool NamespaceHasBeenSet() const
bool MetricNameHasBeenSet() const
const Aws::String & GetMetricName() const
AWS_LOOKOUTMETRICS_API Metric(Aws::Utils::Json::JsonView jsonValue)
void SetMetricName(MetricNameT &&value)
const Aws::String & GetNamespace() const
Metric & WithNamespace(NamespaceT &&value)
Metric & WithMetricName(MetricNameT &&value)
Metric & WithAggregationFunction(AggregationFunction value)
bool AggregationFunctionHasBeenSet() const
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue