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

The start time for the returned metrics, after alignment to a granular * boundary (as specified by PeriodInSeconds). * AlignedStartTime will be less than or equal to the value of the * user-specified StartTime.

*/ inline const Aws::Utils::DateTime& GetAlignedStartTime() const{ return m_alignedStartTime; } /** *

The start time for the returned metrics, after alignment to a granular * boundary (as specified by PeriodInSeconds). * AlignedStartTime will be less than or equal to the value of the * user-specified StartTime.

*/ inline void SetAlignedStartTime(const Aws::Utils::DateTime& value) { m_alignedStartTime = value; } /** *

The start time for the returned metrics, after alignment to a granular * boundary (as specified by PeriodInSeconds). * AlignedStartTime will be less than or equal to the value of the * user-specified StartTime.

*/ inline void SetAlignedStartTime(Aws::Utils::DateTime&& value) { m_alignedStartTime = std::move(value); } /** *

The start time for the returned metrics, after alignment to a granular * boundary (as specified by PeriodInSeconds). * AlignedStartTime will be less than or equal to the value of the * user-specified StartTime.

*/ inline GetResourceMetricsResult& WithAlignedStartTime(const Aws::Utils::DateTime& value) { SetAlignedStartTime(value); return *this;} /** *

The start time for the returned metrics, after alignment to a granular * boundary (as specified by PeriodInSeconds). * AlignedStartTime will be less than or equal to the value of the * user-specified StartTime.

*/ inline GetResourceMetricsResult& WithAlignedStartTime(Aws::Utils::DateTime&& value) { SetAlignedStartTime(std::move(value)); return *this;} /** *

The end time for the returned metrics, after alignment to a granular boundary * (as specified by PeriodInSeconds). AlignedEndTime will * be greater than or equal to the value of the user-specified * Endtime.

*/ inline const Aws::Utils::DateTime& GetAlignedEndTime() const{ return m_alignedEndTime; } /** *

The end time for the returned metrics, after alignment to a granular boundary * (as specified by PeriodInSeconds). AlignedEndTime will * be greater than or equal to the value of the user-specified * Endtime.

*/ inline void SetAlignedEndTime(const Aws::Utils::DateTime& value) { m_alignedEndTime = value; } /** *

The end time for the returned metrics, after alignment to a granular boundary * (as specified by PeriodInSeconds). AlignedEndTime will * be greater than or equal to the value of the user-specified * Endtime.

*/ inline void SetAlignedEndTime(Aws::Utils::DateTime&& value) { m_alignedEndTime = std::move(value); } /** *

The end time for the returned metrics, after alignment to a granular boundary * (as specified by PeriodInSeconds). AlignedEndTime will * be greater than or equal to the value of the user-specified * Endtime.

*/ inline GetResourceMetricsResult& WithAlignedEndTime(const Aws::Utils::DateTime& value) { SetAlignedEndTime(value); return *this;} /** *

The end time for the returned metrics, after alignment to a granular boundary * (as specified by PeriodInSeconds). AlignedEndTime will * be greater than or equal to the value of the user-specified * Endtime.

*/ inline GetResourceMetricsResult& WithAlignedEndTime(Aws::Utils::DateTime&& value) { SetAlignedEndTime(std::move(value)); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

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

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

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

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

*/ inline void SetIdentifier(const char* value) { m_identifier.assign(value); } /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

*/ inline GetResourceMetricsResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

*/ inline GetResourceMetricsResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

An immutable identifier for a data source that is unique for an Amazon Web * Services Region. Performance Insights gathers metrics from this data source. In * the console, the identifier is shown as ResourceID. When you call * DescribeDBInstances, the identifier is returned as * DbiResourceId.

*/ inline GetResourceMetricsResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

An array of metric results, where each array element contains all of the data * points for a particular dimension.

*/ inline const Aws::Vector& GetMetricList() const{ return m_metricList; } /** *

An array of metric results, where each array element contains all of the data * points for a particular dimension.

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

An array of metric results, where each array element contains all of the data * points for a particular dimension.

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

An array of metric results, where each array element contains all of the data * points for a particular dimension.

*/ inline GetResourceMetricsResult& WithMetricList(const Aws::Vector& value) { SetMetricList(value); return *this;} /** *

An array of metric results, where each array element contains all of the data * points for a particular dimension.

*/ inline GetResourceMetricsResult& WithMetricList(Aws::Vector&& value) { SetMetricList(std::move(value)); return *this;} /** *

An array of metric results, where each array element contains all of the data * points for a particular dimension.

*/ inline GetResourceMetricsResult& AddMetricList(const MetricKeyDataPoints& value) { m_metricList.push_back(value); return *this; } /** *

An array of metric results, where each array element contains all of the data * points for a particular dimension.

*/ inline GetResourceMetricsResult& AddMetricList(MetricKeyDataPoints&& value) { m_metricList.push_back(std::move(value)); return *this; } /** *

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

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

An optional pagination token provided by a previous request. If this * parameter is specified, the response includes only records beyond the token, up * to the value specified by MaxRecords.

*/ inline GetResourceMetricsResult& WithNextToken(const char* value) { SetNextToken(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 GetResourceMetricsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourceMetricsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourceMetricsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_alignedStartTime; Aws::Utils::DateTime m_alignedEndTime; Aws::String m_identifier; Aws::Vector m_metricList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace PI } // namespace Aws