AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansPurchaseRecommendation.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/AccountScope.h>
9#include <aws/ce/model/SupportedSavingsPlansType.h>
10#include <aws/ce/model/TermInYears.h>
11#include <aws/ce/model/PaymentOption.h>
12#include <aws/ce/model/LookbackPeriodInDays.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ce/model/SavingsPlansPurchaseRecommendationSummary.h>
15#include <aws/ce/model/SavingsPlansPurchaseRecommendationDetail.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CostExplorer
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendation();
45 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
56 inline const AccountScope& GetAccountScope() const{ return m_accountScope; }
57 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
58 inline void SetAccountScope(const AccountScope& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
59 inline void SetAccountScope(AccountScope&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
61 inline SavingsPlansPurchaseRecommendation& WithAccountScope(AccountScope&& value) { SetAccountScope(std::move(value)); return *this;}
63
65
68 inline const SupportedSavingsPlansType& GetSavingsPlansType() const{ return m_savingsPlansType; }
69 inline bool SavingsPlansTypeHasBeenSet() const { return m_savingsPlansTypeHasBeenSet; }
70 inline void SetSavingsPlansType(const SupportedSavingsPlansType& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = value; }
71 inline void SetSavingsPlansType(SupportedSavingsPlansType&& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = std::move(value); }
75
77
81 inline const TermInYears& GetTermInYears() const{ return m_termInYears; }
82 inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
83 inline void SetTermInYears(const TermInYears& value) { m_termInYearsHasBeenSet = true; m_termInYears = value; }
84 inline void SetTermInYears(TermInYears&& value) { m_termInYearsHasBeenSet = true; m_termInYears = std::move(value); }
86 inline SavingsPlansPurchaseRecommendation& WithTermInYears(TermInYears&& value) { SetTermInYears(std::move(value)); return *this;}
88
90
93 inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
94 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
95 inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
96 inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
98 inline SavingsPlansPurchaseRecommendation& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
100
102
105 inline const LookbackPeriodInDays& GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
106 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
107 inline void SetLookbackPeriodInDays(const LookbackPeriodInDays& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
108 inline void SetLookbackPeriodInDays(LookbackPeriodInDays&& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = std::move(value); }
112
114
118 inline const Aws::Vector<SavingsPlansPurchaseRecommendationDetail>& GetSavingsPlansPurchaseRecommendationDetails() const{ return m_savingsPlansPurchaseRecommendationDetails; }
119 inline bool SavingsPlansPurchaseRecommendationDetailsHasBeenSet() const { return m_savingsPlansPurchaseRecommendationDetailsHasBeenSet; }
120 inline void SetSavingsPlansPurchaseRecommendationDetails(const Aws::Vector<SavingsPlansPurchaseRecommendationDetail>& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails = value; }
121 inline void SetSavingsPlansPurchaseRecommendationDetails(Aws::Vector<SavingsPlansPurchaseRecommendationDetail>&& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails = std::move(value); }
124 inline SavingsPlansPurchaseRecommendation& AddSavingsPlansPurchaseRecommendationDetails(const SavingsPlansPurchaseRecommendationDetail& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails.push_back(value); return *this; }
125 inline SavingsPlansPurchaseRecommendation& AddSavingsPlansPurchaseRecommendationDetails(SavingsPlansPurchaseRecommendationDetail&& value) { m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = true; m_savingsPlansPurchaseRecommendationDetails.push_back(std::move(value)); return *this; }
127
129
132 inline const SavingsPlansPurchaseRecommendationSummary& GetSavingsPlansPurchaseRecommendationSummary() const{ return m_savingsPlansPurchaseRecommendationSummary; }
133 inline bool SavingsPlansPurchaseRecommendationSummaryHasBeenSet() const { return m_savingsPlansPurchaseRecommendationSummaryHasBeenSet; }
134 inline void SetSavingsPlansPurchaseRecommendationSummary(const SavingsPlansPurchaseRecommendationSummary& value) { m_savingsPlansPurchaseRecommendationSummaryHasBeenSet = true; m_savingsPlansPurchaseRecommendationSummary = value; }
135 inline void SetSavingsPlansPurchaseRecommendationSummary(SavingsPlansPurchaseRecommendationSummary&& value) { m_savingsPlansPurchaseRecommendationSummaryHasBeenSet = true; m_savingsPlansPurchaseRecommendationSummary = std::move(value); }
139 private:
140
141 AccountScope m_accountScope;
142 bool m_accountScopeHasBeenSet = false;
143
144 SupportedSavingsPlansType m_savingsPlansType;
145 bool m_savingsPlansTypeHasBeenSet = false;
146
147 TermInYears m_termInYears;
148 bool m_termInYearsHasBeenSet = false;
149
150 PaymentOption m_paymentOption;
151 bool m_paymentOptionHasBeenSet = false;
152
153 LookbackPeriodInDays m_lookbackPeriodInDays;
154 bool m_lookbackPeriodInDaysHasBeenSet = false;
155
156 Aws::Vector<SavingsPlansPurchaseRecommendationDetail> m_savingsPlansPurchaseRecommendationDetails;
157 bool m_savingsPlansPurchaseRecommendationDetailsHasBeenSet = false;
158
159 SavingsPlansPurchaseRecommendationSummary m_savingsPlansPurchaseRecommendationSummary;
160 bool m_savingsPlansPurchaseRecommendationSummaryHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CostExplorer
165} // namespace Aws
AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendation(Aws::Utils::Json::JsonView jsonValue)
void SetSavingsPlansPurchaseRecommendationSummary(const SavingsPlansPurchaseRecommendationSummary &value)
SavingsPlansPurchaseRecommendation & WithSavingsPlansPurchaseRecommendationDetails(const Aws::Vector< SavingsPlansPurchaseRecommendationDetail > &value)
SavingsPlansPurchaseRecommendation & WithLookbackPeriodInDays(LookbackPeriodInDays &&value)
SavingsPlansPurchaseRecommendation & WithTermInYears(const TermInYears &value)
const Aws::Vector< SavingsPlansPurchaseRecommendationDetail > & GetSavingsPlansPurchaseRecommendationDetails() const
void SetSavingsPlansPurchaseRecommendationDetails(Aws::Vector< SavingsPlansPurchaseRecommendationDetail > &&value)
SavingsPlansPurchaseRecommendation & WithAccountScope(AccountScope &&value)
SavingsPlansPurchaseRecommendation & WithSavingsPlansPurchaseRecommendationSummary(SavingsPlansPurchaseRecommendationSummary &&value)
SavingsPlansPurchaseRecommendation & WithTermInYears(TermInYears &&value)
SavingsPlansPurchaseRecommendation & WithSavingsPlansPurchaseRecommendationDetails(Aws::Vector< SavingsPlansPurchaseRecommendationDetail > &&value)
SavingsPlansPurchaseRecommendation & AddSavingsPlansPurchaseRecommendationDetails(SavingsPlansPurchaseRecommendationDetail &&value)
SavingsPlansPurchaseRecommendation & WithSavingsPlansType(SupportedSavingsPlansType &&value)
SavingsPlansPurchaseRecommendation & WithPaymentOption(PaymentOption &&value)
AWS_COSTEXPLORER_API SavingsPlansPurchaseRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansPurchaseRecommendation & AddSavingsPlansPurchaseRecommendationDetails(const SavingsPlansPurchaseRecommendationDetail &value)
const SavingsPlansPurchaseRecommendationSummary & GetSavingsPlansPurchaseRecommendationSummary() const
SavingsPlansPurchaseRecommendation & WithAccountScope(const AccountScope &value)
void SetSavingsPlansPurchaseRecommendationDetails(const Aws::Vector< SavingsPlansPurchaseRecommendationDetail > &value)
SavingsPlansPurchaseRecommendation & WithSavingsPlansType(const SupportedSavingsPlansType &value)
SavingsPlansPurchaseRecommendation & WithLookbackPeriodInDays(const LookbackPeriodInDays &value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansPurchaseRecommendation & WithSavingsPlansPurchaseRecommendationSummary(const SavingsPlansPurchaseRecommendationSummary &value)
SavingsPlansPurchaseRecommendation & WithPaymentOption(const PaymentOption &value)
void SetSavingsPlansPurchaseRecommendationSummary(SavingsPlansPurchaseRecommendationSummary &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue