AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSavingsPlansPurchaseRecommendationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.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/AccountScope.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/ce/model/LookbackPeriodInDays.h>
15#include <aws/ce/model/Expression.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CostExplorer
21{
22namespace 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_COSTEXPLORER_API Aws::String SerializePayload() const override;
39
40 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const SupportedSavingsPlansType& GetSavingsPlansType() const{ return m_savingsPlansType; }
48 inline bool SavingsPlansTypeHasBeenSet() const { return m_savingsPlansTypeHasBeenSet; }
49 inline void SetSavingsPlansType(const SupportedSavingsPlansType& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = value; }
50 inline void SetSavingsPlansType(SupportedSavingsPlansType&& value) { m_savingsPlansTypeHasBeenSet = true; m_savingsPlansType = std::move(value); }
54
56
60 inline const TermInYears& GetTermInYears() const{ return m_termInYears; }
61 inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
62 inline void SetTermInYears(const TermInYears& value) { m_termInYearsHasBeenSet = true; m_termInYears = value; }
63 inline void SetTermInYears(TermInYears&& value) { m_termInYearsHasBeenSet = true; m_termInYears = std::move(value); }
67
69
72 inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
73 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
74 inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
75 inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
79
81
87 inline const AccountScope& GetAccountScope() const{ return m_accountScope; }
88 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
89 inline void SetAccountScope(const AccountScope& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
90 inline void SetAccountScope(AccountScope&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
94
96
101 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
102 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
103 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
104 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
105 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
108 inline GetSavingsPlansPurchaseRecommendationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
110
112
116 inline int GetPageSize() const{ return m_pageSize; }
117 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
118 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
121
123
126 inline const LookbackPeriodInDays& GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
127 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
128 inline void SetLookbackPeriodInDays(const LookbackPeriodInDays& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
129 inline void SetLookbackPeriodInDays(LookbackPeriodInDays&& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = std::move(value); }
133
135
149 inline const Expression& GetFilter() const{ return m_filter; }
150 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
151 inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; }
152 inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
154 inline GetSavingsPlansPurchaseRecommendationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;}
156 private:
157
158 SupportedSavingsPlansType m_savingsPlansType;
159 bool m_savingsPlansTypeHasBeenSet = false;
160
161 TermInYears m_termInYears;
162 bool m_termInYearsHasBeenSet = false;
163
164 PaymentOption m_paymentOption;
165 bool m_paymentOptionHasBeenSet = false;
166
167 AccountScope m_accountScope;
168 bool m_accountScopeHasBeenSet = false;
169
170 Aws::String m_nextPageToken;
171 bool m_nextPageTokenHasBeenSet = false;
172
173 int m_pageSize;
174 bool m_pageSizeHasBeenSet = false;
175
176 LookbackPeriodInDays m_lookbackPeriodInDays;
177 bool m_lookbackPeriodInDaysHasBeenSet = false;
178
179 Expression m_filter;
180 bool m_filterHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace CostExplorer
185} // namespace Aws
GetSavingsPlansPurchaseRecommendationRequest & WithTermInYears(TermInYears &&value)
GetSavingsPlansPurchaseRecommendationRequest & WithAccountScope(AccountScope &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(const Aws::String &value)
GetSavingsPlansPurchaseRecommendationRequest & WithPaymentOption(PaymentOption &&value)
GetSavingsPlansPurchaseRecommendationRequest & WithSavingsPlansType(SupportedSavingsPlansType &&value)
GetSavingsPlansPurchaseRecommendationRequest & WithLookbackPeriodInDays(const LookbackPeriodInDays &value)
GetSavingsPlansPurchaseRecommendationRequest & WithPaymentOption(const PaymentOption &value)
GetSavingsPlansPurchaseRecommendationRequest & WithLookbackPeriodInDays(LookbackPeriodInDays &&value)
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(const char *value)
GetSavingsPlansPurchaseRecommendationRequest & WithAccountScope(const AccountScope &value)
GetSavingsPlansPurchaseRecommendationRequest & WithTermInYears(const TermInYears &value)
GetSavingsPlansPurchaseRecommendationRequest & WithNextPageToken(Aws::String &&value)
GetSavingsPlansPurchaseRecommendationRequest & WithFilter(const Expression &value)
GetSavingsPlansPurchaseRecommendationRequest & WithFilter(Expression &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetSavingsPlansPurchaseRecommendationRequest & WithSavingsPlansType(const SupportedSavingsPlansType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String