This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ce/include/aws/ce/model/SavingsPlansPurchaseRecommendation.h

333 lines
15 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ce/CostExplorer_EXPORTS.h>
#include <aws/ce/model/AccountScope.h>
#include <aws/ce/model/SupportedSavingsPlansType.h>
#include <aws/ce/model/TermInYears.h>
#include <aws/ce/model/PaymentOption.h>
#include <aws/ce/model/LookbackPeriodInDays.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ce/model/SavingsPlansPurchaseRecommendationSummary.h>
#include <aws/ce/model/SavingsPlansPurchaseRecommendationDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CostExplorer
{
namespace Model
{
/**
* <p>Contains your request parameters, Savings Plan Recommendations Summary, and
* Details.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/SavingsPlansPurchaseRecommendation">AWS
* API Reference</a></p>
*/
class AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendation
{
public:
SavingsPlansPurchaseRecommendation();
SavingsPlansPurchaseRecommendation(Aws::Utils::Json::JsonView jsonValue);
SavingsPlansPurchaseRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline const AccountScope& GetAccountScope() const{ return m_accountScope; }
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline void SetAccountScope(const AccountScope& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline void SetAccountScope(AccountScope&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithAccountScope(const AccountScope& value) { SetAccountScope(value); return *this;}
/**
* <p>The account scope that you want your recommendations for. Amazon Web Services
* calculates recommendations including the payer account and linked accounts if
* the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>,
* recommendations are calculated for individual linked accounts only.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithAccountScope(AccountScope&& value) { SetAccountScope(std::move(value)); return *this;}
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline const SupportedSavingsPlansType& GetSavingsPlansType() const{ return m_savingsPlansType; }
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline bool SavingsPlansTypeHasBeenSet() const { return m_savingsPlansTypeHasBeenSet; }
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline void SetSavingsPlansType(const SupportedSavingsPlansType& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = value; }
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline void SetSavingsPlansType(SupportedSavingsPlansType&& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = std::move(value); }
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansType(const SupportedSavingsPlansType& value) { SetSavingsPlansType(value); return *this;}
/**
* <p>The requested Savings Plans recommendation type.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansType(SupportedSavingsPlansType&& value) { SetSavingsPlansType(std::move(value)); return *this;}
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline const TermInYears& GetTermInYears() const{ return m_termInYears; }
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline void SetTermInYears(const TermInYears& value) { m_termInYearsHasBeenSet = true; m_termInYears = value; }
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline void SetTermInYears(TermInYears&& value) { m_termInYearsHasBeenSet = true; m_termInYears = std::move(value); }
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithTermInYears(const TermInYears& value) { SetTermInYears(value); return *this;}
/**
* <p>The Savings Plans recommendation term in years, used to generate the
* recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithTermInYears(TermInYears&& value) { SetTermInYears(std::move(value)); return *this;}
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
/**
* <p>The payment option used to generate the recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline const LookbackPeriodInDays& GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline void SetLookbackPeriodInDays(const LookbackPeriodInDays& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline void SetLookbackPeriodInDays(LookbackPeriodInDays&& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = std::move(value); }
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithLookbackPeriodInDays(const LookbackPeriodInDays& value) { SetLookbackPeriodInDays(value); return *this;}
/**
* <p>The lookback period in days, used to generate the recommendation.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithLookbackPeriodInDays(LookbackPeriodInDays&& value) { SetLookbackPeriodInDays(std::move(value)); return *this;}
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline const Aws::Vector<SavingsPlansPurchaseRecommendationDetail>& GetSavingsPlansPurchaseRecommendationDetails() const{ return m_savingsPlansPurchaseRecommendationDetails; }
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline bool SavingsPlansPurchaseRecommendationDetailsHasBeenSet() const { return m_savingsPlansPurchaseRecommendationDetailsHasBeenSet; }
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline void SetSavingsPlansPurchaseRecommendationDetails(const Aws::Vector<SavingsPlansPurchaseRecommendationDetail>& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails = value; }
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline void SetSavingsPlansPurchaseRecommendationDetails(Aws::Vector<SavingsPlansPurchaseRecommendationDetail>&& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails = std::move(value); }
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansPurchaseRecommendationDetails(const Aws::Vector<SavingsPlansPurchaseRecommendationDetail>& value) { SetSavingsPlansPurchaseRecommendationDetails(value); return *this;}
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansPurchaseRecommendationDetails(Aws::Vector<SavingsPlansPurchaseRecommendationDetail>&& value) { SetSavingsPlansPurchaseRecommendationDetails(std::move(value)); return *this;}
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline SavingsPlansPurchaseRecommendation& AddSavingsPlansPurchaseRecommendationDetails(const SavingsPlansPurchaseRecommendationDetail& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails.push_back(value); return *this; }
/**
* <p>Details for the Savings Plans we recommend that you purchase to cover
* existing Savings Plans eligible workloads.</p>
*/
inline SavingsPlansPurchaseRecommendation& AddSavingsPlansPurchaseRecommendationDetails(SavingsPlansPurchaseRecommendationDetail&& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails.push_back(std::move(value)); return *this; }
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline const SavingsPlansPurchaseRecommendationSummary& GetSavingsPlansPurchaseRecommendationSummary() const{ return m_savingsPlansPurchaseRecommendationSummary; }
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline bool SavingsPlansPurchaseRecommendationSummaryHasBeenSet() const { return m_savingsPlansPurchaseRecommendationSummaryHasBeenSet; }
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline void SetSavingsPlansPurchaseRecommendationSummary(const SavingsPlansPurchaseRecommendationSummary& value) { m_savingsPlansPurchaseRecommendationSummaryHasBeenSet = true; m_savingsPlansPurchaseRecommendationSummary = value; }
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline void SetSavingsPlansPurchaseRecommendationSummary(SavingsPlansPurchaseRecommendationSummary&& value) { m_savingsPlansPurchaseRecommendationSummaryHasBeenSet = true; m_savingsPlansPurchaseRecommendationSummary = std::move(value); }
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansPurchaseRecommendationSummary(const SavingsPlansPurchaseRecommendationSummary& value) { SetSavingsPlansPurchaseRecommendationSummary(value); return *this;}
/**
* <p>Summary metrics for your Savings Plans Recommendations. </p>
*/
inline SavingsPlansPurchaseRecommendation& WithSavingsPlansPurchaseRecommendationSummary(SavingsPlansPurchaseRecommendationSummary&& value) { SetSavingsPlansPurchaseRecommendationSummary(std::move(value)); return *this;}
private:
AccountScope m_accountScope;
bool m_accountScopeHasBeenSet;
SupportedSavingsPlansType m_savingsPlansType;
bool m_savingsPlansTypeHasBeenSet;
TermInYears m_termInYears;
bool m_termInYearsHasBeenSet;
PaymentOption m_paymentOption;
bool m_paymentOptionHasBeenSet;
LookbackPeriodInDays m_lookbackPeriodInDays;
bool m_lookbackPeriodInDaysHasBeenSet;
Aws::Vector<SavingsPlansPurchaseRecommendationDetail> m_savingsPlansPurchaseRecommendationDetails;
bool m_savingsPlansPurchaseRecommendationDetailsHasBeenSet;
SavingsPlansPurchaseRecommendationSummary m_savingsPlansPurchaseRecommendationSummary;
bool m_savingsPlansPurchaseRecommendationSummaryHasBeenSet;
};
} // namespace Model
} // namespace CostExplorer
} // namespace Aws