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

The amount of time that you used your RIs.

*/ inline const Aws::Vector& GetUtilizationsByTime() const{ return m_utilizationsByTime; } /** *

The amount of time that you used your RIs.

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

The amount of time that you used your RIs.

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

The amount of time that you used your RIs.

*/ inline GetReservationUtilizationResult& WithUtilizationsByTime(const Aws::Vector& value) { SetUtilizationsByTime(value); return *this;} /** *

The amount of time that you used your RIs.

*/ inline GetReservationUtilizationResult& WithUtilizationsByTime(Aws::Vector&& value) { SetUtilizationsByTime(std::move(value)); return *this;} /** *

The amount of time that you used your RIs.

*/ inline GetReservationUtilizationResult& AddUtilizationsByTime(const UtilizationByTime& value) { m_utilizationsByTime.push_back(value); return *this; } /** *

The amount of time that you used your RIs.

*/ inline GetReservationUtilizationResult& AddUtilizationsByTime(UtilizationByTime&& value) { m_utilizationsByTime.push_back(std::move(value)); return *this; } /** *

The total amount of time that you used your RIs.

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

The total amount of time that you used your RIs.

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

The total amount of time that you used your RIs.

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

The total amount of time that you used your RIs.

*/ inline GetReservationUtilizationResult& WithTotal(const ReservationAggregates& value) { SetTotal(value); return *this;} /** *

The total amount of time that you used your RIs.

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

The token for the next set of retrievable results. AWS 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. AWS 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. AWS 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. AWS 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. AWS provides the token * when the response from a previous call has more results than the maximum page * size.

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

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

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

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

*/ inline GetReservationUtilizationResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} private: Aws::Vector m_utilizationsByTime; ReservationAggregates m_total; Aws::String m_nextPageToken; }; } // namespace Model } // namespace CostExplorer } // namespace Aws