/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { class GetMetricStatisticsResult { public: AWS_CLOUDWATCH_API GetMetricStatisticsResult(); AWS_CLOUDWATCH_API GetMetricStatisticsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCH_API GetMetricStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A label for the specified metric.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

A label for the specified metric.

*/ inline void SetLabel(const Aws::String& value) { m_label = value; } /** *

A label for the specified metric.

*/ inline void SetLabel(Aws::String&& value) { m_label = std::move(value); } /** *

A label for the specified metric.

*/ inline void SetLabel(const char* value) { m_label.assign(value); } /** *

A label for the specified metric.

*/ inline GetMetricStatisticsResult& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

A label for the specified metric.

*/ inline GetMetricStatisticsResult& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

A label for the specified metric.

*/ inline GetMetricStatisticsResult& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The data points for the specified metric.

*/ inline const Aws::Vector& GetDatapoints() const{ return m_datapoints; } /** *

The data points for the specified metric.

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

The data points for the specified metric.

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

The data points for the specified metric.

*/ inline GetMetricStatisticsResult& WithDatapoints(const Aws::Vector& value) { SetDatapoints(value); return *this;} /** *

The data points for the specified metric.

*/ inline GetMetricStatisticsResult& WithDatapoints(Aws::Vector&& value) { SetDatapoints(std::move(value)); return *this;} /** *

The data points for the specified metric.

*/ inline GetMetricStatisticsResult& AddDatapoints(const Datapoint& value) { m_datapoints.push_back(value); return *this; } /** *

The data points for the specified metric.

*/ inline GetMetricStatisticsResult& AddDatapoints(Datapoint&& value) { m_datapoints.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetMetricStatisticsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetMetricStatisticsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_label; Aws::Vector m_datapoints; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudWatch } // namespace Aws