/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutMetrics { namespace Model { /** *

A calculation made by contrasting a measure and a dimension from your source * data.

See Also:

AWS * API Reference

*/ class Metric { public: AWS_LOOKOUTMETRICS_API Metric(); AWS_LOOKOUTMETRICS_API Metric(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the metric.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the metric.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the metric.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the metric.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the metric.

*/ inline Metric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

*/ inline Metric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the metric.

*/ inline Metric& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The function with which the metric is calculated.

*/ inline const AggregationFunction& GetAggregationFunction() const{ return m_aggregationFunction; } /** *

The function with which the metric is calculated.

*/ inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; } /** *

The function with which the metric is calculated.

*/ inline void SetAggregationFunction(const AggregationFunction& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; } /** *

The function with which the metric is calculated.

*/ inline void SetAggregationFunction(AggregationFunction&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::move(value); } /** *

The function with which the metric is calculated.

*/ inline Metric& WithAggregationFunction(const AggregationFunction& value) { SetAggregationFunction(value); return *this;} /** *

The function with which the metric is calculated.

*/ inline Metric& WithAggregationFunction(AggregationFunction&& value) { SetAggregationFunction(std::move(value)); return *this;} /** *

The namespace for the metric.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace for the metric.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace for the metric.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace for the metric.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace for the metric.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace for the metric.

*/ inline Metric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace for the metric.

*/ inline Metric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace for the metric.

*/ inline Metric& WithNamespace(const char* value) { SetNamespace(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; AggregationFunction m_aggregationFunction; bool m_aggregationFunctionHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws