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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The amount of time that you used your Reserved Instances (RIs).

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

The total amount of time that you used your Reserved Instances (RIs).

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

The total amount of time that you used your Reserved Instances (RIs).

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

The total amount of time that you used your Reserved Instances (RIs).

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

The total amount of time that you used your Reserved Instances (RIs).

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

The total amount of time that you used your Reserved Instances (RIs).

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