/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace CloudWatch { namespace Model { /** */ class DescribeAlarmsForMetricRequest : public CloudWatchRequest { public: AWS_CLOUDWATCH_API DescribeAlarmsForMetricRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeAlarmsForMetric"; } AWS_CLOUDWATCH_API Aws::String SerializePayload() const override; protected: AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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 DescribeAlarmsForMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

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

The name of the metric.

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

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 DescribeAlarmsForMetricRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the metric.

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

The namespace of the metric.

*/ inline DescribeAlarmsForMetricRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline const Statistic& GetStatistic() const{ return m_statistic; } /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline DescribeAlarmsForMetricRequest& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;} /** *

The statistic for the metric, other than percentiles. For percentile * statistics, use ExtendedStatistics.

*/ inline DescribeAlarmsForMetricRequest& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;} /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline const Aws::String& GetExtendedStatistic() const{ return m_extendedStatistic; } /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; } /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline void SetExtendedStatistic(const Aws::String& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = value; } /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline void SetExtendedStatistic(Aws::String&& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = std::move(value); } /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline void SetExtendedStatistic(const char* value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic.assign(value); } /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline DescribeAlarmsForMetricRequest& WithExtendedStatistic(const Aws::String& value) { SetExtendedStatistic(value); return *this;} /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline DescribeAlarmsForMetricRequest& WithExtendedStatistic(Aws::String&& value) { SetExtendedStatistic(std::move(value)); return *this;} /** *

The percentile statistic for the metric. Specify a value between p0.0 and * p100.

*/ inline DescribeAlarmsForMetricRequest& WithExtendedStatistic(const char* value) { SetExtendedStatistic(value); return *this;} /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline DescribeAlarmsForMetricRequest& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline DescribeAlarmsForMetricRequest& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline DescribeAlarmsForMetricRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

The dimensions associated with the metric. If the metric has any associated * dimensions, you must specify them in order for the call to succeed.

*/ inline DescribeAlarmsForMetricRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *

The period, in seconds, over which the statistic is applied.

*/ inline int GetPeriod() const{ return m_period; } /** *

The period, in seconds, over which the statistic is applied.

*/ inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; } /** *

The period, in seconds, over which the statistic is applied.

*/ inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; } /** *

The period, in seconds, over which the statistic is applied.

*/ inline DescribeAlarmsForMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;} /** *

The unit for the metric.

*/ inline const StandardUnit& GetUnit() const{ return m_unit; } /** *

The unit for the metric.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit for the metric.

*/ inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit for the metric.

*/ inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit for the metric.

*/ inline DescribeAlarmsForMetricRequest& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;} /** *

The unit for the metric.

*/ inline DescribeAlarmsForMetricRequest& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Statistic m_statistic; bool m_statisticHasBeenSet = false; Aws::String m_extendedStatistic; bool m_extendedStatisticHasBeenSet = false; Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; int m_period; bool m_periodHasBeenSet = false; StandardUnit m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws