/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a specific metric.See Also:
AWS
* API Reference
The namespace of the metric.
*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *The namespace of the metric.
*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *The namespace of the metric.
*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *The namespace of the metric.
*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *The namespace of the metric.
*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *The namespace of the metric.
*/ inline Metric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *The namespace of the metric.
*/ inline Metric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *The namespace of the metric.
*/ inline Metric& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *The name of the metric. This is a required field.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *The name of the metric. This is a required field.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *The name of the metric. This is a required field.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *The name of the metric. This is a required field.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *The name of the metric. This is a required field.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *The name of the metric. This is a required field.
*/ inline Metric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the metric. This is a required field.
*/ inline Metric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the metric. This is a required field.
*/ inline Metric& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *The dimensions for the metric.
*/ inline const Aws::VectorThe dimensions for the metric.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *The dimensions for the metric.
*/ inline void SetDimensions(const Aws::VectorThe dimensions for the metric.
*/ inline void SetDimensions(Aws::VectorThe dimensions for the metric.
*/ inline Metric& WithDimensions(const Aws::VectorThe dimensions for the metric.
*/ inline Metric& WithDimensions(Aws::VectorThe dimensions for the metric.
*/ inline Metric& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *The dimensions for the metric.
*/ inline Metric& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } private: Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::Vector