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

The amount of time that your reservations covered.

*/ inline const Aws::Vector& GetCoveragesByTime() const{ return m_coveragesByTime; } /** *

The amount of time that your reservations covered.

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

The amount of time that your reservations covered.

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

The amount of time that your reservations covered.

*/ inline GetReservationCoverageResult& WithCoveragesByTime(const Aws::Vector& value) { SetCoveragesByTime(value); return *this;} /** *

The amount of time that your reservations covered.

*/ inline GetReservationCoverageResult& WithCoveragesByTime(Aws::Vector&& value) { SetCoveragesByTime(std::move(value)); return *this;} /** *

The amount of time that your reservations covered.

*/ inline GetReservationCoverageResult& AddCoveragesByTime(const CoverageByTime& value) { m_coveragesByTime.push_back(value); return *this; } /** *

The amount of time that your reservations covered.

*/ inline GetReservationCoverageResult& AddCoveragesByTime(CoverageByTime&& value) { m_coveragesByTime.push_back(std::move(value)); return *this; } /** *

The total amount of instance usage that a reservation covered.

*/ inline const Coverage& GetTotal() const{ return m_total; } /** *

The total amount of instance usage that a reservation covered.

*/ inline void SetTotal(const Coverage& value) { m_total = value; } /** *

The total amount of instance usage that a reservation covered.

*/ inline void SetTotal(Coverage&& value) { m_total = std::move(value); } /** *

The total amount of instance usage that a reservation covered.

*/ inline GetReservationCoverageResult& WithTotal(const Coverage& value) { SetTotal(value); return *this;} /** *

The total amount of instance usage that a reservation covered.

*/ inline GetReservationCoverageResult& WithTotal(Coverage&& value) { SetTotal(std::move(value)); return *this;} /** *

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

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

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

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

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

*/ inline GetReservationCoverageResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

*/ inline GetReservationCoverageResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

The token for the next set of retrievable results. Amazon Web Services * provides the token when the response from a previous call has more results than * the maximum page size.

*/ inline GetReservationCoverageResult& WithNextPageToken(const char* value) { SetNextPageToken(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 GetReservationCoverageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetReservationCoverageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetReservationCoverageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_coveragesByTime; Coverage m_total; Aws::String m_nextPageToken; Aws::String m_requestId; }; } // namespace Model } // namespace CostExplorer } // namespace Aws