/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the metric.See Also:
AWS
* API Reference
The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline MetricV2& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline MetricV2& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the metric.
This parameter is required. The * following Required = No is incorrect.
*/ inline MetricV2& WithName(const char* value) { SetName(value); return *this;} /** *Contains information about the threshold for service level metrics.
*/ inline const Aws::VectorContains information about the threshold for service level metrics.
*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *Contains information about the threshold for service level metrics.
*/ inline void SetThreshold(const Aws::VectorContains information about the threshold for service level metrics.
*/ inline void SetThreshold(Aws::VectorContains information about the threshold for service level metrics.
*/ inline MetricV2& WithThreshold(const Aws::VectorContains information about the threshold for service level metrics.
*/ inline MetricV2& WithThreshold(Aws::VectorContains information about the threshold for service level metrics.
*/ inline MetricV2& AddThreshold(const ThresholdV2& value) { m_thresholdHasBeenSet = true; m_threshold.push_back(value); return *this; } /** *Contains information about the threshold for service level metrics.
*/ inline MetricV2& AddThreshold(ThresholdV2&& value) { m_thresholdHasBeenSet = true; m_threshold.push_back(std::move(value)); return *this; } /** *Contains the filters to be used when returning data.
*/ inline const Aws::VectorContains the filters to be used when returning data.
*/ inline bool MetricFiltersHasBeenSet() const { return m_metricFiltersHasBeenSet; } /** *Contains the filters to be used when returning data.
*/ inline void SetMetricFilters(const Aws::VectorContains the filters to be used when returning data.
*/ inline void SetMetricFilters(Aws::VectorContains the filters to be used when returning data.
*/ inline MetricV2& WithMetricFilters(const Aws::VectorContains the filters to be used when returning data.
*/ inline MetricV2& WithMetricFilters(Aws::VectorContains the filters to be used when returning data.
*/ inline MetricV2& AddMetricFilters(const MetricFilterV2& value) { m_metricFiltersHasBeenSet = true; m_metricFilters.push_back(value); return *this; } /** *Contains the filters to be used when returning data.
*/ inline MetricV2& AddMetricFilters(MetricFilterV2&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector