/** * 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 Lightsail { namespace Model { class GetRelationalDatabaseMetricDataResult { public: AWS_LIGHTSAIL_API GetRelationalDatabaseMetricDataResult(); AWS_LIGHTSAIL_API GetRelationalDatabaseMetricDataResult(const Aws::AmazonWebServiceResult& result); AWS_LIGHTSAIL_API GetRelationalDatabaseMetricDataResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

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

The name of the metric returned.

*/ inline GetRelationalDatabaseMetricDataResult& WithMetricName(const RelationalDatabaseMetricName& value) { SetMetricName(value); return *this;} /** *

The name of the metric returned.

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

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

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

An array of objects that describe the metric data returned.

*/ inline GetRelationalDatabaseMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.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 GetRelationalDatabaseMetricDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRelationalDatabaseMetricDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRelationalDatabaseMetricDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RelationalDatabaseMetricName m_metricName; Aws::Vector m_metricData; Aws::String m_requestId; }; } // namespace Model } // namespace Lightsail } // namespace Aws