/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

A summary about this recommendation, such as the currency code, the amount * that Amazon Web Services estimates that you could save, and the total amount of * reservation to purchase.

See Also:

AWS * API Reference

*/ class ReservationPurchaseRecommendationSummary { public: AWS_COSTEXPLORER_API ReservationPurchaseRecommendationSummary(); AWS_COSTEXPLORER_API ReservationPurchaseRecommendationSummary(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API ReservationPurchaseRecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline const Aws::String& GetTotalEstimatedMonthlySavingsAmount() const{ return m_totalEstimatedMonthlySavingsAmount; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline bool TotalEstimatedMonthlySavingsAmountHasBeenSet() const { return m_totalEstimatedMonthlySavingsAmountHasBeenSet; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline void SetTotalEstimatedMonthlySavingsAmount(const Aws::String& value) { m_totalEstimatedMonthlySavingsAmountHasBeenSet = true; m_totalEstimatedMonthlySavingsAmount = value; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline void SetTotalEstimatedMonthlySavingsAmount(Aws::String&& value) { m_totalEstimatedMonthlySavingsAmountHasBeenSet = true; m_totalEstimatedMonthlySavingsAmount = std::move(value); } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline void SetTotalEstimatedMonthlySavingsAmount(const char* value) { m_totalEstimatedMonthlySavingsAmountHasBeenSet = true; m_totalEstimatedMonthlySavingsAmount.assign(value); } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsAmount(const Aws::String& value) { SetTotalEstimatedMonthlySavingsAmount(value); return *this;} /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsAmount(Aws::String&& value) { SetTotalEstimatedMonthlySavingsAmount(std::move(value)); return *this;} /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsAmount(const char* value) { SetTotalEstimatedMonthlySavingsAmount(value); return *this;} /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline const Aws::String& GetTotalEstimatedMonthlySavingsPercentage() const{ return m_totalEstimatedMonthlySavingsPercentage; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline bool TotalEstimatedMonthlySavingsPercentageHasBeenSet() const { return m_totalEstimatedMonthlySavingsPercentageHasBeenSet; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline void SetTotalEstimatedMonthlySavingsPercentage(const Aws::String& value) { m_totalEstimatedMonthlySavingsPercentageHasBeenSet = true; m_totalEstimatedMonthlySavingsPercentage = value; } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline void SetTotalEstimatedMonthlySavingsPercentage(Aws::String&& value) { m_totalEstimatedMonthlySavingsPercentageHasBeenSet = true; m_totalEstimatedMonthlySavingsPercentage = std::move(value); } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline void SetTotalEstimatedMonthlySavingsPercentage(const char* value) { m_totalEstimatedMonthlySavingsPercentageHasBeenSet = true; m_totalEstimatedMonthlySavingsPercentage.assign(value); } /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsPercentage(const Aws::String& value) { SetTotalEstimatedMonthlySavingsPercentage(value); return *this;} /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsPercentage(Aws::String&& value) { SetTotalEstimatedMonthlySavingsPercentage(std::move(value)); return *this;} /** *

The total amount that Amazon Web Services estimates that this recommendation * could save you in a month, as a percentage of your costs.

*/ inline ReservationPurchaseRecommendationSummary& WithTotalEstimatedMonthlySavingsPercentage(const char* value) { SetTotalEstimatedMonthlySavingsPercentage(value); return *this;} /** *

The currency code used for this recommendation.

*/ inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; } /** *

The currency code used for this recommendation.

*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *

The currency code used for this recommendation.

*/ inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** *

The currency code used for this recommendation.

*/ inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** *

The currency code used for this recommendation.

*/ inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); } /** *

The currency code used for this recommendation.

*/ inline ReservationPurchaseRecommendationSummary& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;} /** *

The currency code used for this recommendation.

*/ inline ReservationPurchaseRecommendationSummary& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *

The currency code used for this recommendation.

*/ inline ReservationPurchaseRecommendationSummary& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;} private: Aws::String m_totalEstimatedMonthlySavingsAmount; bool m_totalEstimatedMonthlySavingsAmountHasBeenSet = false; Aws::String m_totalEstimatedMonthlySavingsPercentage; bool m_totalEstimatedMonthlySavingsPercentageHasBeenSet = false; Aws::String m_currencyCode; bool m_currencyCodeHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws