/** * 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 GetInstanceMetricDataResult { public: GetInstanceMetricDataResult(); GetInstanceMetricDataResult(const Aws::AmazonWebServiceResult& result); GetInstanceMetricDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

*/ inline GetInstanceMetricDataResult& WithMetricName(const InstanceMetricName& value) { SetMetricName(value); return *this;} /** *

The name of the metric returned.

*/ inline GetInstanceMetricDataResult& WithMetricName(InstanceMetricName&& 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 GetInstanceMetricDataResult& WithMetricData(const Aws::Vector& value) { SetMetricData(value); return *this;} /** *

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

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