/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

Represents the result of processing your metric data batch * request

See Also:

AWS * API Reference

*/ class BatchGetMetricDataResult { public: AWS_SESV2_API BatchGetMetricDataResult(); AWS_SESV2_API BatchGetMetricDataResult(const Aws::AmazonWebServiceResult& result); AWS_SESV2_API BatchGetMetricDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of successfully retrieved MetricDataResult.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

A list of successfully retrieved MetricDataResult.

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

A list of successfully retrieved MetricDataResult.

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

A list of successfully retrieved MetricDataResult.

*/ inline BatchGetMetricDataResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

A list of successfully retrieved MetricDataResult.

*/ inline BatchGetMetricDataResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

A list of successfully retrieved MetricDataResult.

*/ inline BatchGetMetricDataResult& AddResults(const MetricDataResult& value) { m_results.push_back(value); return *this; } /** *

A list of successfully retrieved MetricDataResult.

*/ inline BatchGetMetricDataResult& AddResults(MetricDataResult&& value) { m_results.push_back(std::move(value)); return *this; } /** *

A list of MetricDataError encountered while processing your * metric data batch request.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

A list of MetricDataError encountered while processing your * metric data batch request.

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

A list of MetricDataError encountered while processing your * metric data batch request.

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

A list of MetricDataError encountered while processing your * metric data batch request.

*/ inline BatchGetMetricDataResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

A list of MetricDataError encountered while processing your * metric data batch request.

*/ inline BatchGetMetricDataResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

A list of MetricDataError encountered while processing your * metric data batch request.

*/ inline BatchGetMetricDataResult& AddErrors(const MetricDataError& value) { m_errors.push_back(value); return *this; } /** *

A list of MetricDataError encountered while processing your * metric data batch request.

*/ inline BatchGetMetricDataResult& AddErrors(MetricDataError&& value) { m_errors.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchGetMetricDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetMetricDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetMetricDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_results; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace SESV2 } // namespace Aws