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

Contains information about the metric.

See Also:

AWS * API Reference

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

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

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

Contains information about the threshold for service level metrics.

*/ inline void SetThreshold(Aws::Vector&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); } /** *

Contains information about the threshold for service level metrics.

*/ inline MetricV2& WithThreshold(const Aws::Vector& value) { SetThreshold(value); return *this;} /** *

Contains information about the threshold for service level metrics.

*/ inline MetricV2& WithThreshold(Aws::Vector&& value) { SetThreshold(std::move(value)); return *this;} /** *

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

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

Contains the filters to be used when returning data.

*/ inline void SetMetricFilters(Aws::Vector&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters = std::move(value); } /** *

Contains the filters to be used when returning data.

*/ inline MetricV2& WithMetricFilters(const Aws::Vector& value) { SetMetricFilters(value); return *this;} /** *

Contains the filters to be used when returning data.

*/ inline MetricV2& WithMetricFilters(Aws::Vector&& value) { SetMetricFilters(std::move(value)); return *this;} /** *

Contains 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 m_threshold; bool m_thresholdHasBeenSet = false; Aws::Vector m_metricFilters; bool m_metricFiltersHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws