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

Represents a specific metric.

Metric is a property of the * TargetTrackingMetricStat object.

See Also:

AWS * API Reference

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

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::Vector& GetDimensions() const{ return m_dimensions; } /** *

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 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::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

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(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

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& WithDimensions(const Aws::Vector& value) { SetDimensions(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& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(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(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 m_dimensions; bool m_dimensionsHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace ApplicationAutoScaling } // namespace Aws