/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class AWS_LIGHTSAIL_API GetDistributionMetricDataResult { public: GetDistributionMetricDataResult(); GetDistributionMetricDataResult(const Aws::AmazonWebServiceResult& result); GetDistributionMetricDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the metric returned.

*/ inline const DistributionMetricName& GetMetricName() const{ return m_metricName; } /** *

The name of the metric returned.

*/ inline void SetMetricName(const DistributionMetricName& value) { m_metricName = value; } /** *

The name of the metric returned.

*/ inline void SetMetricName(DistributionMetricName&& value) { m_metricName = std::move(value); } /** *

The name of the metric returned.

*/ inline GetDistributionMetricDataResult& WithMetricName(const DistributionMetricName& value) { SetMetricName(value); return *this;} /** *

The name of the metric returned.

*/ inline GetDistributionMetricDataResult& WithMetricName(DistributionMetricName&& value) { SetMetricName(std::move(value)); return *this;} /** *

An array of objects that describe the metric data returned.

*/ inline const Aws::Vector& GetMetricData() const{ return m_metricData; } /** *

An array of objects that describe the metric data returned.

*/ inline void SetMetricData(const Aws::Vector& value) { m_metricData = value; } /** *

An array of objects that describe the metric data returned.

*/ inline void SetMetricData(Aws::Vector&& value) { m_metricData = std::move(value); } /** *

An array of objects that describe the metric data returned.

*/ inline GetDistributionMetricDataResult& WithMetricData(const Aws::Vector& value) { SetMetricData(value); return *this;} /** *

An array of objects that describe the metric data returned.

*/ inline GetDistributionMetricDataResult& WithMetricData(Aws::Vector&& value) { SetMetricData(std::move(value)); return *this;} /** *

An array of objects that describe the metric data returned.

*/ inline GetDistributionMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; } /** *

An array of objects that describe the metric data returned.

*/ inline GetDistributionMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.push_back(std::move(value)); return *this; } private: DistributionMetricName m_metricName; Aws::Vector m_metricData; }; } // namespace Model } // namespace Lightsail } // namespace Aws