AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetReservationPurchaseRecommendationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AccountScope.h>
10#include <aws/ce/model/Expression.h>
11#include <aws/ce/model/LookbackPeriodInDays.h>
12#include <aws/ce/model/PaymentOption.h>
13#include <aws/ce/model/ServiceSpecification.h>
14#include <aws/ce/model/TermInYears.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CostExplorer {
21namespace Model {
22
26 public:
27 AWS_COSTEXPLORER_API GetReservationPurchaseRecommendationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetReservationPurchaseRecommendation"; }
34
35 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetService() const { return m_service; }
62 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
63 template <typename ServiceT = Aws::String>
64 void SetService(ServiceT&& value) {
65 m_serviceHasBeenSet = true;
66 m_service = std::forward<ServiceT>(value);
67 }
68 template <typename ServiceT = Aws::String>
70 SetService(std::forward<ServiceT>(value));
71 return *this;
72 }
74
76
77 inline const Expression& GetFilter() const { return m_filter; }
78 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
79 template <typename FilterT = Expression>
80 void SetFilter(FilterT&& value) {
81 m_filterHasBeenSet = true;
82 m_filter = std::forward<FilterT>(value);
83 }
84 template <typename FilterT = Expression>
86 SetFilter(std::forward<FilterT>(value));
87 return *this;
88 }
90
92
98 inline AccountScope GetAccountScope() const { return m_accountScope; }
99 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
100 inline void SetAccountScope(AccountScope value) {
101 m_accountScopeHasBeenSet = true;
102 m_accountScope = value;
103 }
105 SetAccountScope(value);
106 return *this;
107 }
109
111
115 inline LookbackPeriodInDays GetLookbackPeriodInDays() const { return m_lookbackPeriodInDays; }
116 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
118 m_lookbackPeriodInDaysHasBeenSet = true;
119 m_lookbackPeriodInDays = value;
120 }
123 return *this;
124 }
126
128
131 inline TermInYears GetTermInYears() const { return m_termInYears; }
132 inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
133 inline void SetTermInYears(TermInYears value) {
134 m_termInYearsHasBeenSet = true;
135 m_termInYears = value;
136 }
138 SetTermInYears(value);
139 return *this;
140 }
142
144
147 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
148 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
149 inline void SetPaymentOption(PaymentOption value) {
150 m_paymentOptionHasBeenSet = true;
151 m_paymentOption = value;
152 }
154 SetPaymentOption(value);
155 return *this;
156 }
158
160
164 inline const ServiceSpecification& GetServiceSpecification() const { return m_serviceSpecification; }
165 inline bool ServiceSpecificationHasBeenSet() const { return m_serviceSpecificationHasBeenSet; }
166 template <typename ServiceSpecificationT = ServiceSpecification>
167 void SetServiceSpecification(ServiceSpecificationT&& value) {
168 m_serviceSpecificationHasBeenSet = true;
169 m_serviceSpecification = std::forward<ServiceSpecificationT>(value);
170 }
171 template <typename ServiceSpecificationT = ServiceSpecification>
173 SetServiceSpecification(std::forward<ServiceSpecificationT>(value));
174 return *this;
175 }
177
179
183 inline int GetPageSize() const { return m_pageSize; }
184 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
185 inline void SetPageSize(int value) {
186 m_pageSizeHasBeenSet = true;
187 m_pageSize = value;
188 }
190 SetPageSize(value);
191 return *this;
192 }
194
196
200 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
201 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
202 template <typename NextPageTokenT = Aws::String>
203 void SetNextPageToken(NextPageTokenT&& value) {
204 m_nextPageTokenHasBeenSet = true;
205 m_nextPageToken = std::forward<NextPageTokenT>(value);
206 }
207 template <typename NextPageTokenT = Aws::String>
209 SetNextPageToken(std::forward<NextPageTokenT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_accountId;
215
216 Aws::String m_service;
217
218 Expression m_filter;
219
220 AccountScope m_accountScope{AccountScope::NOT_SET};
221
223
224 TermInYears m_termInYears{TermInYears::NOT_SET};
225
226 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
227
228 ServiceSpecification m_serviceSpecification;
229
230 int m_pageSize{0};
231
232 Aws::String m_nextPageToken;
233 bool m_accountIdHasBeenSet = false;
234 bool m_serviceHasBeenSet = false;
235 bool m_filterHasBeenSet = false;
236 bool m_accountScopeHasBeenSet = false;
237 bool m_lookbackPeriodInDaysHasBeenSet = false;
238 bool m_termInYearsHasBeenSet = false;
239 bool m_paymentOptionHasBeenSet = false;
240 bool m_serviceSpecificationHasBeenSet = false;
241 bool m_pageSizeHasBeenSet = false;
242 bool m_nextPageTokenHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace CostExplorer
247} // namespace Aws
GetReservationPurchaseRecommendationRequest & WithTermInYears(TermInYears value)
GetReservationPurchaseRecommendationRequest & WithNextPageToken(NextPageTokenT &&value)
GetReservationPurchaseRecommendationRequest & WithAccountId(AccountIdT &&value)
GetReservationPurchaseRecommendationRequest & WithServiceSpecification(ServiceSpecificationT &&value)
GetReservationPurchaseRecommendationRequest & WithLookbackPeriodInDays(LookbackPeriodInDays value)
GetReservationPurchaseRecommendationRequest & WithAccountScope(AccountScope value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationPurchaseRecommendationRequest & WithPaymentOption(PaymentOption value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String