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

An object that contains the full name, description, and unit of a metric. *

See Also:

AWS * API Reference

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

The full name of the metric.

*/ inline const Aws::String& GetMetric() const{ return m_metric; } /** *

The full name of the metric.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

The full name of the metric.

*/ inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

The full name of the metric.

*/ inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

The full name of the metric.

*/ inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); } /** *

The full name of the metric.

*/ inline ResponseResourceMetric& WithMetric(const Aws::String& value) { SetMetric(value); return *this;} /** *

The full name of the metric.

*/ inline ResponseResourceMetric& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;} /** *

The full name of the metric.

*/ inline ResponseResourceMetric& WithMetric(const char* value) { SetMetric(value); return *this;} /** *

The description of the metric.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the metric.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the metric.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the metric.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the metric.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the metric.

*/ inline ResponseResourceMetric& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the metric.

*/ inline ResponseResourceMetric& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the metric.

*/ inline ResponseResourceMetric& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The unit of the metric.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The unit of the metric.

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

The unit of the metric.

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

The unit of the metric.

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

The unit of the metric.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The unit of the metric.

*/ inline ResponseResourceMetric& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *

The unit of the metric.

*/ inline ResponseResourceMetric& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *

The unit of the metric.

*/ inline ResponseResourceMetric& WithUnit(const char* value) { SetUnit(value); return *this;} private: Aws::String m_metric; bool m_metricHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws