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

Information about this specific recommendation call, such as the time stamp * for when Cost Explorer generated this recommendation.

*/ inline const ReservationPurchaseRecommendationMetadata& GetMetadata() const{ return m_metadata; } /** *

Information about this specific recommendation call, such as the time stamp * for when Cost Explorer generated this recommendation.

*/ inline void SetMetadata(const ReservationPurchaseRecommendationMetadata& value) { m_metadata = value; } /** *

Information about this specific recommendation call, such as the time stamp * for when Cost Explorer generated this recommendation.

*/ inline void SetMetadata(ReservationPurchaseRecommendationMetadata&& value) { m_metadata = std::move(value); } /** *

Information about this specific recommendation call, such as the time stamp * for when Cost Explorer generated this recommendation.

*/ inline GetReservationPurchaseRecommendationResult& WithMetadata(const ReservationPurchaseRecommendationMetadata& value) { SetMetadata(value); return *this;} /** *

Information about this specific recommendation call, such as the time stamp * for when Cost Explorer generated this recommendation.

*/ inline GetReservationPurchaseRecommendationResult& WithMetadata(ReservationPurchaseRecommendationMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *

Recommendations for reservations to purchase.

*/ inline const Aws::Vector& GetRecommendations() const{ return m_recommendations; } /** *

Recommendations for reservations to purchase.

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

Recommendations for reservations to purchase.

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

Recommendations for reservations to purchase.

*/ inline GetReservationPurchaseRecommendationResult& WithRecommendations(const Aws::Vector& value) { SetRecommendations(value); return *this;} /** *

Recommendations for reservations to purchase.

*/ inline GetReservationPurchaseRecommendationResult& WithRecommendations(Aws::Vector&& value) { SetRecommendations(std::move(value)); return *this;} /** *

Recommendations for reservations to purchase.

*/ inline GetReservationPurchaseRecommendationResult& AddRecommendations(const ReservationPurchaseRecommendation& value) { m_recommendations.push_back(value); return *this; } /** *

Recommendations for reservations to purchase.

*/ inline GetReservationPurchaseRecommendationResult& AddRecommendations(ReservationPurchaseRecommendation&& value) { m_recommendations.push_back(std::move(value)); return *this; } /** *

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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

The pagination token for the next set of retrievable results.

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