/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The metric you want to retain. Dimensions are optional.See
* Also:
AWS
* API Reference
What is measured by the behavior.
*/ inline const Aws::String& GetMetric() const{ return m_metric; } /** *What is measured by the behavior.
*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *What is measured by the behavior.
*/ inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; } /** *What is measured by the behavior.
*/ inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *What is measured by the behavior.
*/ inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); } /** *What is measured by the behavior.
*/ inline MetricToRetain& WithMetric(const Aws::String& value) { SetMetric(value); return *this;} /** *What is measured by the behavior.
*/ inline MetricToRetain& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;} /** *What is measured by the behavior.
*/ inline MetricToRetain& WithMetric(const char* value) { SetMetric(value); return *this;} /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; } /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; } /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; } /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); } /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline MetricToRetain& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;} /** *The dimension of a metric. This can't be used with custom metrics.
*/ inline MetricToRetain& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;} private: Aws::String m_metric; bool m_metricHasBeenSet = false; MetricDimension m_metricDimension; bool m_metricDimensionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws