AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
DescribeSavingsPlansOfferingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/savingsplans/SavingsPlansRequest.h>
10#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
11#include <aws/savingsplans/model/CurrencyCode.h>
12#include <aws/savingsplans/model/SavingsPlanOfferingFilterElement.h>
13#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
14#include <aws/savingsplans/model/SavingsPlanProductType.h>
15#include <aws/savingsplans/model/SavingsPlanType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SavingsPlans {
21namespace Model {
22
26 public:
27 AWS_SAVINGSPLANS_API DescribeSavingsPlansOfferingsRequest() = 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 "DescribeSavingsPlansOfferings"; }
34
35 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::Vector<Aws::String>& GetOfferingIds() const { return m_offeringIds; }
42 inline bool OfferingIdsHasBeenSet() const { return m_offeringIdsHasBeenSet; }
43 template <typename OfferingIdsT = Aws::Vector<Aws::String>>
44 void SetOfferingIds(OfferingIdsT&& value) {
45 m_offeringIdsHasBeenSet = true;
46 m_offeringIds = std::forward<OfferingIdsT>(value);
47 }
48 template <typename OfferingIdsT = Aws::Vector<Aws::String>>
50 SetOfferingIds(std::forward<OfferingIdsT>(value));
51 return *this;
52 }
53 template <typename OfferingIdsT = Aws::String>
55 m_offeringIdsHasBeenSet = true;
56 m_offeringIds.emplace_back(std::forward<OfferingIdsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<SavingsPlanPaymentOption>& GetPaymentOptions() const { return m_paymentOptions; }
66 inline bool PaymentOptionsHasBeenSet() const { return m_paymentOptionsHasBeenSet; }
67 template <typename PaymentOptionsT = Aws::Vector<SavingsPlanPaymentOption>>
68 void SetPaymentOptions(PaymentOptionsT&& value) {
69 m_paymentOptionsHasBeenSet = true;
70 m_paymentOptions = std::forward<PaymentOptionsT>(value);
71 }
72 template <typename PaymentOptionsT = Aws::Vector<SavingsPlanPaymentOption>>
74 SetPaymentOptions(std::forward<PaymentOptionsT>(value));
75 return *this;
76 }
78 m_paymentOptionsHasBeenSet = true;
79 m_paymentOptions.push_back(value);
80 return *this;
81 }
83
85
88 inline SavingsPlanProductType GetProductType() const { return m_productType; }
89 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
91 m_productTypeHasBeenSet = true;
92 m_productType = value;
93 }
95 SetProductType(value);
96 return *this;
97 }
99
101
104 inline const Aws::Vector<SavingsPlanType>& GetPlanTypes() const { return m_planTypes; }
105 inline bool PlanTypesHasBeenSet() const { return m_planTypesHasBeenSet; }
106 template <typename PlanTypesT = Aws::Vector<SavingsPlanType>>
107 void SetPlanTypes(PlanTypesT&& value) {
108 m_planTypesHasBeenSet = true;
109 m_planTypes = std::forward<PlanTypesT>(value);
110 }
111 template <typename PlanTypesT = Aws::Vector<SavingsPlanType>>
113 SetPlanTypes(std::forward<PlanTypesT>(value));
114 return *this;
115 }
117 m_planTypesHasBeenSet = true;
118 m_planTypes.push_back(value);
119 return *this;
120 }
122
124
127 inline const Aws::Vector<long long>& GetDurations() const { return m_durations; }
128 inline bool DurationsHasBeenSet() const { return m_durationsHasBeenSet; }
129 template <typename DurationsT = Aws::Vector<long long>>
130 void SetDurations(DurationsT&& value) {
131 m_durationsHasBeenSet = true;
132 m_durations = std::forward<DurationsT>(value);
133 }
134 template <typename DurationsT = Aws::Vector<long long>>
136 SetDurations(std::forward<DurationsT>(value));
137 return *this;
138 }
140 m_durationsHasBeenSet = true;
141 m_durations.push_back(value);
142 return *this;
143 }
145
147
150 inline const Aws::Vector<CurrencyCode>& GetCurrencies() const { return m_currencies; }
151 inline bool CurrenciesHasBeenSet() const { return m_currenciesHasBeenSet; }
152 template <typename CurrenciesT = Aws::Vector<CurrencyCode>>
153 void SetCurrencies(CurrenciesT&& value) {
154 m_currenciesHasBeenSet = true;
155 m_currencies = std::forward<CurrenciesT>(value);
156 }
157 template <typename CurrenciesT = Aws::Vector<CurrencyCode>>
159 SetCurrencies(std::forward<CurrenciesT>(value));
160 return *this;
161 }
163 m_currenciesHasBeenSet = true;
164 m_currencies.push_back(value);
165 return *this;
166 }
168
170
173 inline const Aws::Vector<Aws::String>& GetDescriptions() const { return m_descriptions; }
174 inline bool DescriptionsHasBeenSet() const { return m_descriptionsHasBeenSet; }
175 template <typename DescriptionsT = Aws::Vector<Aws::String>>
176 void SetDescriptions(DescriptionsT&& value) {
177 m_descriptionsHasBeenSet = true;
178 m_descriptions = std::forward<DescriptionsT>(value);
179 }
180 template <typename DescriptionsT = Aws::Vector<Aws::String>>
182 SetDescriptions(std::forward<DescriptionsT>(value));
183 return *this;
184 }
185 template <typename DescriptionsT = Aws::String>
187 m_descriptionsHasBeenSet = true;
188 m_descriptions.emplace_back(std::forward<DescriptionsT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Vector<Aws::String>& GetServiceCodes() const { return m_serviceCodes; }
198 inline bool ServiceCodesHasBeenSet() const { return m_serviceCodesHasBeenSet; }
199 template <typename ServiceCodesT = Aws::Vector<Aws::String>>
200 void SetServiceCodes(ServiceCodesT&& value) {
201 m_serviceCodesHasBeenSet = true;
202 m_serviceCodes = std::forward<ServiceCodesT>(value);
203 }
204 template <typename ServiceCodesT = Aws::Vector<Aws::String>>
206 SetServiceCodes(std::forward<ServiceCodesT>(value));
207 return *this;
208 }
209 template <typename ServiceCodesT = Aws::String>
211 m_serviceCodesHasBeenSet = true;
212 m_serviceCodes.emplace_back(std::forward<ServiceCodesT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<Aws::String>& GetUsageTypes() const { return m_usageTypes; }
222 inline bool UsageTypesHasBeenSet() const { return m_usageTypesHasBeenSet; }
223 template <typename UsageTypesT = Aws::Vector<Aws::String>>
224 void SetUsageTypes(UsageTypesT&& value) {
225 m_usageTypesHasBeenSet = true;
226 m_usageTypes = std::forward<UsageTypesT>(value);
227 }
228 template <typename UsageTypesT = Aws::Vector<Aws::String>>
230 SetUsageTypes(std::forward<UsageTypesT>(value));
231 return *this;
232 }
233 template <typename UsageTypesT = Aws::String>
235 m_usageTypesHasBeenSet = true;
236 m_usageTypes.emplace_back(std::forward<UsageTypesT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::Vector<Aws::String>& GetOperations() const { return m_operations; }
247 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
248 template <typename OperationsT = Aws::Vector<Aws::String>>
249 void SetOperations(OperationsT&& value) {
250 m_operationsHasBeenSet = true;
251 m_operations = std::forward<OperationsT>(value);
252 }
253 template <typename OperationsT = Aws::Vector<Aws::String>>
255 SetOperations(std::forward<OperationsT>(value));
256 return *this;
257 }
258 template <typename OperationsT = Aws::String>
260 m_operationsHasBeenSet = true;
261 m_operations.emplace_back(std::forward<OperationsT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Vector<SavingsPlanOfferingFilterElement>& GetFilters() const { return m_filters; }
271 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
272 template <typename FiltersT = Aws::Vector<SavingsPlanOfferingFilterElement>>
273 void SetFilters(FiltersT&& value) {
274 m_filtersHasBeenSet = true;
275 m_filters = std::forward<FiltersT>(value);
276 }
277 template <typename FiltersT = Aws::Vector<SavingsPlanOfferingFilterElement>>
279 SetFilters(std::forward<FiltersT>(value));
280 return *this;
281 }
282 template <typename FiltersT = SavingsPlanOfferingFilterElement>
284 m_filtersHasBeenSet = true;
285 m_filters.emplace_back(std::forward<FiltersT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::String& GetNextToken() const { return m_nextToken; }
295 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
296 template <typename NextTokenT = Aws::String>
297 void SetNextToken(NextTokenT&& value) {
298 m_nextTokenHasBeenSet = true;
299 m_nextToken = std::forward<NextTokenT>(value);
300 }
301 template <typename NextTokenT = Aws::String>
303 SetNextToken(std::forward<NextTokenT>(value));
304 return *this;
305 }
307
309
313 inline int GetMaxResults() const { return m_maxResults; }
314 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
315 inline void SetMaxResults(int value) {
316 m_maxResultsHasBeenSet = true;
317 m_maxResults = value;
318 }
320 SetMaxResults(value);
321 return *this;
322 }
324 private:
325 Aws::Vector<Aws::String> m_offeringIds;
326 bool m_offeringIdsHasBeenSet = false;
327
329 bool m_paymentOptionsHasBeenSet = false;
330
332 bool m_productTypeHasBeenSet = false;
333
335 bool m_planTypesHasBeenSet = false;
336
337 Aws::Vector<long long> m_durations;
338 bool m_durationsHasBeenSet = false;
339
340 Aws::Vector<CurrencyCode> m_currencies;
341 bool m_currenciesHasBeenSet = false;
342
343 Aws::Vector<Aws::String> m_descriptions;
344 bool m_descriptionsHasBeenSet = false;
345
346 Aws::Vector<Aws::String> m_serviceCodes;
347 bool m_serviceCodesHasBeenSet = false;
348
349 Aws::Vector<Aws::String> m_usageTypes;
350 bool m_usageTypesHasBeenSet = false;
351
352 Aws::Vector<Aws::String> m_operations;
353 bool m_operationsHasBeenSet = false;
354
356 bool m_filtersHasBeenSet = false;
357
358 Aws::String m_nextToken;
359 bool m_nextTokenHasBeenSet = false;
360
361 int m_maxResults{0};
362 bool m_maxResultsHasBeenSet = false;
363};
364
365} // namespace Model
366} // namespace SavingsPlans
367} // namespace Aws
DescribeSavingsPlansOfferingsRequest & WithOfferingIds(OfferingIdsT &&value)
DescribeSavingsPlansOfferingsRequest & WithServiceCodes(ServiceCodesT &&value)
DescribeSavingsPlansOfferingsRequest & WithNextToken(NextTokenT &&value)
DescribeSavingsPlansOfferingsRequest & WithDurations(DurationsT &&value)
DescribeSavingsPlansOfferingsRequest & WithProductType(SavingsPlanProductType value)
AWS_SAVINGSPLANS_API DescribeSavingsPlansOfferingsRequest()=default
DescribeSavingsPlansOfferingsRequest & AddDescriptions(DescriptionsT &&value)
DescribeSavingsPlansOfferingsRequest & AddPlanTypes(SavingsPlanType value)
DescribeSavingsPlansOfferingsRequest & AddUsageTypes(UsageTypesT &&value)
DescribeSavingsPlansOfferingsRequest & WithOperations(OperationsT &&value)
DescribeSavingsPlansOfferingsRequest & AddOfferingIds(OfferingIdsT &&value)
DescribeSavingsPlansOfferingsRequest & WithFilters(FiltersT &&value)
DescribeSavingsPlansOfferingsRequest & WithCurrencies(CurrenciesT &&value)
DescribeSavingsPlansOfferingsRequest & AddPaymentOptions(SavingsPlanPaymentOption value)
DescribeSavingsPlansOfferingsRequest & AddCurrencies(CurrencyCode value)
DescribeSavingsPlansOfferingsRequest & AddServiceCodes(ServiceCodesT &&value)
DescribeSavingsPlansOfferingsRequest & AddOperations(OperationsT &&value)
DescribeSavingsPlansOfferingsRequest & WithPaymentOptions(PaymentOptionsT &&value)
DescribeSavingsPlansOfferingsRequest & WithDescriptions(DescriptionsT &&value)
DescribeSavingsPlansOfferingsRequest & WithUsageTypes(UsageTypesT &&value)
DescribeSavingsPlansOfferingsRequest & AddDurations(long long value)
const Aws::Vector< SavingsPlanOfferingFilterElement > & GetFilters() const
DescribeSavingsPlansOfferingsRequest & AddFilters(FiltersT &&value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
const Aws::Vector< SavingsPlanPaymentOption > & GetPaymentOptions() const
DescribeSavingsPlansOfferingsRequest & WithPlanTypes(PlanTypesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector