AWS SDK for C++  1.9.1
AWS SDK for C++
GetSavingsPlansPurchaseRecommendationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace CostExplorer
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "GetSavingsPlansPurchaseRecommendation"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const SupportedSavingsPlansType& GetSavingsPlansType() const{ return m_savingsPlansType; }
47 
51  inline bool SavingsPlansTypeHasBeenSet() const { return m_savingsPlansTypeHasBeenSet; }
52 
56  inline void SetSavingsPlansType(const SupportedSavingsPlansType& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = value; }
57 
61  inline void SetSavingsPlansType(SupportedSavingsPlansType&& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = std::move(value); }
62 
66  inline GetSavingsPlansPurchaseRecommendationRequest& WithSavingsPlansType(const SupportedSavingsPlansType& value) { SetSavingsPlansType(value); return *this;}
67 
71  inline GetSavingsPlansPurchaseRecommendationRequest& WithSavingsPlansType(SupportedSavingsPlansType&& value) { SetSavingsPlansType(std::move(value)); return *this;}
72 
73 
78  inline const TermInYears& GetTermInYears() const{ return m_termInYears; }
79 
84  inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
85 
90  inline void SetTermInYears(const TermInYears& value) { m_termInYearsHasBeenSet = true; m_termInYears = value; }
91 
96  inline void SetTermInYears(TermInYears&& value) { m_termInYearsHasBeenSet = true; m_termInYears = std::move(value); }
97 
102  inline GetSavingsPlansPurchaseRecommendationRequest& WithTermInYears(const TermInYears& value) { SetTermInYears(value); return *this;}
103 
108  inline GetSavingsPlansPurchaseRecommendationRequest& WithTermInYears(TermInYears&& value) { SetTermInYears(std::move(value)); return *this;}
109 
110 
114  inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
115 
119  inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
120 
124  inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
125 
129  inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
130 
134  inline GetSavingsPlansPurchaseRecommendationRequest& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
135 
139  inline GetSavingsPlansPurchaseRecommendationRequest& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
140 
141 
148  inline const AccountScope& GetAccountScope() const{ return m_accountScope; }
149 
156  inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
157 
164  inline void SetAccountScope(const AccountScope& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
165 
172  inline void SetAccountScope(AccountScope&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
173 
180  inline GetSavingsPlansPurchaseRecommendationRequest& WithAccountScope(const AccountScope& value) { SetAccountScope(value); return *this;}
181 
188  inline GetSavingsPlansPurchaseRecommendationRequest& WithAccountScope(AccountScope&& value) { SetAccountScope(std::move(value)); return *this;}
189 
190 
196  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
197 
203  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
204 
210  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
211 
217  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
218 
224  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
225 
231  inline GetSavingsPlansPurchaseRecommendationRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
232 
238  inline GetSavingsPlansPurchaseRecommendationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
239 
245  inline GetSavingsPlansPurchaseRecommendationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
246 
247 
252  inline int GetPageSize() const{ return m_pageSize; }
253 
258  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
259 
264  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
265 
270  inline GetSavingsPlansPurchaseRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
271 
272 
276  inline const LookbackPeriodInDays& GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
277 
281  inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
282 
286  inline void SetLookbackPeriodInDays(const LookbackPeriodInDays& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
287 
291  inline void SetLookbackPeriodInDays(LookbackPeriodInDays&& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = std::move(value); }
292 
296  inline GetSavingsPlansPurchaseRecommendationRequest& WithLookbackPeriodInDays(const LookbackPeriodInDays& value) { SetLookbackPeriodInDays(value); return *this;}
297 
301  inline GetSavingsPlansPurchaseRecommendationRequest& WithLookbackPeriodInDays(LookbackPeriodInDays&& value) { SetLookbackPeriodInDays(std::move(value)); return *this;}
302 
303 
318  inline const Expression& GetFilter() const{ return m_filter; }
319 
334  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
335 
350  inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
351 
366  inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
367 
382  inline GetSavingsPlansPurchaseRecommendationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;}
383 
398  inline GetSavingsPlansPurchaseRecommendationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
399 
400  private:
401 
402  SupportedSavingsPlansType m_savingsPlansType;
403  bool m_savingsPlansTypeHasBeenSet;
404 
405  TermInYears m_termInYears;
406  bool m_termInYearsHasBeenSet;
407 
408  PaymentOption m_paymentOption;
409  bool m_paymentOptionHasBeenSet;
410 
411  AccountScope m_accountScope;
412  bool m_accountScopeHasBeenSet;
413 
414  Aws::String m_nextPageToken;
415  bool m_nextPageTokenHasBeenSet;
416 
417  int m_pageSize;
418  bool m_pageSizeHasBeenSet;
419 
420  LookbackPeriodInDays m_lookbackPeriodInDays;
421  bool m_lookbackPeriodInDaysHasBeenSet;
422 
423  Expression m_filter;
424  bool m_filterHasBeenSet;
425  };
426 
427 } // namespace Model
428 } // namespace CostExplorer
429 } // namespace Aws
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetSavingsPlansType
void SetSavingsPlansType(const SupportedSavingsPlansType &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:56
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:334
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithSavingsPlansType
GetSavingsPlansPurchaseRecommendationRequest & WithSavingsPlansType(const SupportedSavingsPlansType &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:66
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithSavingsPlansType
GetSavingsPlansPurchaseRecommendationRequest & WithSavingsPlansType(SupportedSavingsPlansType &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:71
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithPaymentOption
GetSavingsPlansPurchaseRecommendationRequest & WithPaymentOption(const PaymentOption &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:134
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:210
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithNextPageToken
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(Aws::String &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:238
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithFilter
GetSavingsPlansPurchaseRecommendationRequest & WithFilter(Expression &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:398
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AccountScope.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithPaymentOption
GetSavingsPlansPurchaseRecommendationRequest & WithPaymentOption(PaymentOption &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:139
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetLookbackPeriodInDays
const LookbackPeriodInDays & GetLookbackPeriodInDays() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:276
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:224
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::AccountScopeHasBeenSet
bool AccountScopeHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:156
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetSavingsPlansPurchaseRecommendationRequest
GetSavingsPlansPurchaseRecommendationRequest()
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetPageSize
void SetPageSize(int value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:264
CostExplorerRequest.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetFilter
const Expression & GetFilter() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:318
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetAccountScope
void SetAccountScope(AccountScope &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:172
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:203
Aws::CostExplorer::Model::Expression
Definition: Expression.h:69
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithTermInYears
GetSavingsPlansPurchaseRecommendationRequest & WithTermInYears(const TermInYears &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:102
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetSavingsPlansType
const SupportedSavingsPlansType & GetSavingsPlansType() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:46
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetPageSize
int GetPageSize() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:252
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:258
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithAccountScope
GetSavingsPlansPurchaseRecommendationRequest & WithAccountScope(const AccountScope &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:180
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithNextPageToken
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(const Aws::String &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:231
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetPaymentOption
const PaymentOption & GetPaymentOption() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:114
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SavingsPlansTypeHasBeenSet
bool SavingsPlansTypeHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:51
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetLookbackPeriodInDays
void SetLookbackPeriodInDays(LookbackPeriodInDays &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:291
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithLookbackPeriodInDays
GetSavingsPlansPurchaseRecommendationRequest & WithLookbackPeriodInDays(const LookbackPeriodInDays &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:296
LookbackPeriodInDays.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithNextPageToken
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(const char *value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:245
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::LookbackPeriodInDaysHasBeenSet
bool LookbackPeriodInDaysHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:281
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetPaymentOption
void SetPaymentOption(const PaymentOption &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:124
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithAccountScope
GetSavingsPlansPurchaseRecommendationRequest & WithAccountScope(AccountScope &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:188
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetTermInYears
const TermInYears & GetTermInYears() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:78
AWSString.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetAccountScope
void SetAccountScope(const AccountScope &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:164
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetFilter
void SetFilter(Expression &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:366
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithTermInYears
GetSavingsPlansPurchaseRecommendationRequest & WithTermInYears(TermInYears &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:108
Aws::CostExplorer::Model::TermInYears
TermInYears
Definition: TermInYears.h:17
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithFilter
GetSavingsPlansPurchaseRecommendationRequest & WithFilter(const Expression &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:382
Aws::CostExplorer::Model::PaymentOption
PaymentOption
Definition: PaymentOption.h:17
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetPaymentOption
void SetPaymentOption(PaymentOption &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:129
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:28
PaymentOption.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:196
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetAccountScope
const AccountScope & GetAccountScope() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:148
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetLookbackPeriodInDays
void SetLookbackPeriodInDays(const LookbackPeriodInDays &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:286
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetTermInYears
void SetTermInYears(const TermInYears &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:90
Aws::CostExplorer::Model::SupportedSavingsPlansType
SupportedSavingsPlansType
Definition: SupportedSavingsPlansType.h:17
SupportedSavingsPlansType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:217
Aws::CostExplorer::Model::LookbackPeriodInDays
LookbackPeriodInDays
Definition: LookbackPeriodInDays.h:17
Aws::CostExplorer::Model::AccountScope
AccountScope
Definition: AccountScope.h:17
Expression.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithLookbackPeriodInDays
GetSavingsPlansPurchaseRecommendationRequest & WithLookbackPeriodInDays(LookbackPeriodInDays &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:301
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetTermInYears
void SetTermInYears(TermInYears &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:96
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:36
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetSavingsPlansType
void SetSavingsPlansType(SupportedSavingsPlansType &&value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:61
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::PaymentOptionHasBeenSet
bool PaymentOptionHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:119
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::SetFilter
void SetFilter(const Expression &value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:350
TermInYears.h
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::WithPageSize
GetSavingsPlansPurchaseRecommendationRequest & WithPageSize(int value)
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:270
Aws::CostExplorer::Model::GetSavingsPlansPurchaseRecommendationRequest::TermInYearsHasBeenSet
bool TermInYearsHasBeenSet() const
Definition: GetSavingsPlansPurchaseRecommendationRequest.h:84