/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetMetricDataResult { public: AWS_CLOUDWATCH_API GetMetricDataResult(); AWS_CLOUDWATCH_API GetMetricDataResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCH_API GetMetricDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The metrics that are returned, including the metric name, namespace, and * dimensions.

*/ inline const Aws::Vector& GetMetricDataResults() const{ return m_metricDataResults; } /** *

The metrics that are returned, including the metric name, namespace, and * dimensions.

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

The metrics that are returned, including the metric name, namespace, and * dimensions.

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

The metrics that are returned, including the metric name, namespace, and * dimensions.

*/ inline GetMetricDataResult& WithMetricDataResults(const Aws::Vector& value) { SetMetricDataResults(value); return *this;} /** *

The metrics that are returned, including the metric name, namespace, and * dimensions.

*/ inline GetMetricDataResult& WithMetricDataResults(Aws::Vector&& value) { SetMetricDataResults(std::move(value)); return *this;} /** *

The metrics that are returned, including the metric name, namespace, and * dimensions.

*/ inline GetMetricDataResult& AddMetricDataResults(const MetricDataResult& value) { m_metricDataResults.push_back(value); return *this; } /** *

The metrics that are returned, including the metric name, namespace, and * dimensions.

*/ inline GetMetricDataResult& AddMetricDataResults(MetricDataResult&& value) { m_metricDataResults.push_back(std::move(value)); return *this; } /** *

A token that marks the next batch of returned results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token that marks the next batch of returned results.

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

A token that marks the next batch of returned results.

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

A token that marks the next batch of returned results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A token that marks the next batch of returned results.

*/ inline GetMetricDataResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token that marks the next batch of returned results.

*/ inline GetMetricDataResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token that marks the next batch of returned results.

*/ inline GetMetricDataResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

*/ inline const Aws::Vector& GetMessages() const{ return m_messages; } /** *

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

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

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

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

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

*/ inline GetMetricDataResult& WithMessages(const Aws::Vector& value) { SetMessages(value); return *this;} /** *

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

*/ inline GetMetricDataResult& WithMessages(Aws::Vector&& value) { SetMessages(std::move(value)); return *this;} /** *

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

*/ inline GetMetricDataResult& AddMessages(const MessageData& value) { m_messages.push_back(value); return *this; } /** *

Contains a message about this GetMetricData operation, if the * operation results in such a message. An example of a message that might be * returned is Maximum number of allowed metrics exceeded. If there is * a message, as much of the operation as possible is still executed.

A * message appears here only if it is related to the global * GetMetricData operation. Any message about a specific metric * returned by the operation appears in the MetricDataResult object * returned for that metric.

*/ inline GetMetricDataResult& AddMessages(MessageData&& value) { m_messages.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 GetMetricDataResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetMetricDataResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_metricDataResults; Aws::String m_nextToken; Aws::Vector m_messages; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudWatch } // namespace Aws