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

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

*/ inline GetLoadBalancerMetricDataResult& WithMetricName(const LoadBalancerMetricName& value) { SetMetricName(value); return *this;} /** *

The name of the metric returned.

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

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

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