/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a specific metric. Metric is a property of the
* TargetTrackingMetricStat object.See Also:
AWS
* API Reference
The dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline const Aws::VectorThe dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *The dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline void SetDimensions(const Aws::VectorThe dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline void SetDimensions(Aws::VectorThe dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline TargetTrackingMetric& WithDimensions(const Aws::VectorThe dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline TargetTrackingMetric& WithDimensions(Aws::VectorThe dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline TargetTrackingMetric& AddDimensions(const TargetTrackingMetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *The dimensions for the metric. For the list of available dimensions, see the * Amazon Web Services documentation available from the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
Conditional: If you published your metric * with dimensions, you must specify the same dimensions in your scaling * policy.
*/ inline TargetTrackingMetric& AddDimensions(TargetTrackingMetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *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 TargetTrackingMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the metric.
*/ inline TargetTrackingMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the metric.
*/ inline TargetTrackingMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline TargetTrackingMetric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline TargetTrackingMetric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *The namespace of the metric. For more information, see the table in Amazon * Web Services services that publish CloudWatch metrics in the Amazon * CloudWatch User Guide.
*/ inline TargetTrackingMetric& WithNamespace(const char* value) { SetNamespace(value); return *this;} private: Aws::Vector