AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeSavingsPlansOfferingsRequest.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/SavingsPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/savingsplans/model/SavingsPlanProductType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
13#include <aws/savingsplans/model/SavingsPlanType.h>
14#include <aws/savingsplans/model/CurrencyCode.h>
15#include <aws/savingsplans/model/SavingsPlanOfferingFilterElement.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SavingsPlans
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAVINGSPLANS_API DescribeSavingsPlansOfferingsRequest() = default;
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 "DescribeSavingsPlansOfferings"; }
37
38 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::Vector<Aws::String>& GetOfferingIds() const { return m_offeringIds; }
46 inline bool OfferingIdsHasBeenSet() const { return m_offeringIdsHasBeenSet; }
47 template<typename OfferingIdsT = Aws::Vector<Aws::String>>
48 void SetOfferingIds(OfferingIdsT&& value) { m_offeringIdsHasBeenSet = true; m_offeringIds = std::forward<OfferingIdsT>(value); }
49 template<typename OfferingIdsT = Aws::Vector<Aws::String>>
50 DescribeSavingsPlansOfferingsRequest& WithOfferingIds(OfferingIdsT&& value) { SetOfferingIds(std::forward<OfferingIdsT>(value)); return *this;}
51 template<typename OfferingIdsT = Aws::String>
52 DescribeSavingsPlansOfferingsRequest& AddOfferingIds(OfferingIdsT&& value) { m_offeringIdsHasBeenSet = true; m_offeringIds.emplace_back(std::forward<OfferingIdsT>(value)); return *this; }
54
56
59 inline const Aws::Vector<SavingsPlanPaymentOption>& GetPaymentOptions() const { return m_paymentOptions; }
60 inline bool PaymentOptionsHasBeenSet() const { return m_paymentOptionsHasBeenSet; }
61 template<typename PaymentOptionsT = Aws::Vector<SavingsPlanPaymentOption>>
62 void SetPaymentOptions(PaymentOptionsT&& value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions = std::forward<PaymentOptionsT>(value); }
63 template<typename PaymentOptionsT = Aws::Vector<SavingsPlanPaymentOption>>
64 DescribeSavingsPlansOfferingsRequest& WithPaymentOptions(PaymentOptionsT&& value) { SetPaymentOptions(std::forward<PaymentOptionsT>(value)); return *this;}
65 inline DescribeSavingsPlansOfferingsRequest& AddPaymentOptions(SavingsPlanPaymentOption value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions.push_back(value); return *this; }
67
69
72 inline SavingsPlanProductType GetProductType() const { return m_productType; }
73 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
74 inline void SetProductType(SavingsPlanProductType value) { m_productTypeHasBeenSet = true; m_productType = value; }
77
79
82 inline const Aws::Vector<SavingsPlanType>& GetPlanTypes() const { return m_planTypes; }
83 inline bool PlanTypesHasBeenSet() const { return m_planTypesHasBeenSet; }
84 template<typename PlanTypesT = Aws::Vector<SavingsPlanType>>
85 void SetPlanTypes(PlanTypesT&& value) { m_planTypesHasBeenSet = true; m_planTypes = std::forward<PlanTypesT>(value); }
86 template<typename PlanTypesT = Aws::Vector<SavingsPlanType>>
87 DescribeSavingsPlansOfferingsRequest& WithPlanTypes(PlanTypesT&& value) { SetPlanTypes(std::forward<PlanTypesT>(value)); return *this;}
88 inline DescribeSavingsPlansOfferingsRequest& AddPlanTypes(SavingsPlanType value) { m_planTypesHasBeenSet = true; m_planTypes.push_back(value); return *this; }
90
92
95 inline const Aws::Vector<long long>& GetDurations() const { return m_durations; }
96 inline bool DurationsHasBeenSet() const { return m_durationsHasBeenSet; }
97 template<typename DurationsT = Aws::Vector<long long>>
98 void SetDurations(DurationsT&& value) { m_durationsHasBeenSet = true; m_durations = std::forward<DurationsT>(value); }
99 template<typename DurationsT = Aws::Vector<long long>>
100 DescribeSavingsPlansOfferingsRequest& WithDurations(DurationsT&& value) { SetDurations(std::forward<DurationsT>(value)); return *this;}
101 inline DescribeSavingsPlansOfferingsRequest& AddDurations(long long value) { m_durationsHasBeenSet = true; m_durations.push_back(value); return *this; }
103
105
108 inline const Aws::Vector<CurrencyCode>& GetCurrencies() const { return m_currencies; }
109 inline bool CurrenciesHasBeenSet() const { return m_currenciesHasBeenSet; }
110 template<typename CurrenciesT = Aws::Vector<CurrencyCode>>
111 void SetCurrencies(CurrenciesT&& value) { m_currenciesHasBeenSet = true; m_currencies = std::forward<CurrenciesT>(value); }
112 template<typename CurrenciesT = Aws::Vector<CurrencyCode>>
113 DescribeSavingsPlansOfferingsRequest& WithCurrencies(CurrenciesT&& value) { SetCurrencies(std::forward<CurrenciesT>(value)); return *this;}
114 inline DescribeSavingsPlansOfferingsRequest& AddCurrencies(CurrencyCode value) { m_currenciesHasBeenSet = true; m_currencies.push_back(value); return *this; }
116
118
121 inline const Aws::Vector<Aws::String>& GetDescriptions() const { return m_descriptions; }
122 inline bool DescriptionsHasBeenSet() const { return m_descriptionsHasBeenSet; }
123 template<typename DescriptionsT = Aws::Vector<Aws::String>>
124 void SetDescriptions(DescriptionsT&& value) { m_descriptionsHasBeenSet = true; m_descriptions = std::forward<DescriptionsT>(value); }
125 template<typename DescriptionsT = Aws::Vector<Aws::String>>
126 DescribeSavingsPlansOfferingsRequest& WithDescriptions(DescriptionsT&& value) { SetDescriptions(std::forward<DescriptionsT>(value)); return *this;}
127 template<typename DescriptionsT = Aws::String>
128 DescribeSavingsPlansOfferingsRequest& AddDescriptions(DescriptionsT&& value) { m_descriptionsHasBeenSet = true; m_descriptions.emplace_back(std::forward<DescriptionsT>(value)); return *this; }
130
132
135 inline const Aws::Vector<Aws::String>& GetServiceCodes() const { return m_serviceCodes; }
136 inline bool ServiceCodesHasBeenSet() const { return m_serviceCodesHasBeenSet; }
137 template<typename ServiceCodesT = Aws::Vector<Aws::String>>
138 void SetServiceCodes(ServiceCodesT&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes = std::forward<ServiceCodesT>(value); }
139 template<typename ServiceCodesT = Aws::Vector<Aws::String>>
140 DescribeSavingsPlansOfferingsRequest& WithServiceCodes(ServiceCodesT&& value) { SetServiceCodes(std::forward<ServiceCodesT>(value)); return *this;}
141 template<typename ServiceCodesT = Aws::String>
142 DescribeSavingsPlansOfferingsRequest& AddServiceCodes(ServiceCodesT&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.emplace_back(std::forward<ServiceCodesT>(value)); return *this; }
144
146
149 inline const Aws::Vector<Aws::String>& GetUsageTypes() const { return m_usageTypes; }
150 inline bool UsageTypesHasBeenSet() const { return m_usageTypesHasBeenSet; }
151 template<typename UsageTypesT = Aws::Vector<Aws::String>>
152 void SetUsageTypes(UsageTypesT&& value) { m_usageTypesHasBeenSet = true; m_usageTypes = std::forward<UsageTypesT>(value); }
153 template<typename UsageTypesT = Aws::Vector<Aws::String>>
154 DescribeSavingsPlansOfferingsRequest& WithUsageTypes(UsageTypesT&& value) { SetUsageTypes(std::forward<UsageTypesT>(value)); return *this;}
155 template<typename UsageTypesT = Aws::String>
156 DescribeSavingsPlansOfferingsRequest& AddUsageTypes(UsageTypesT&& value) { m_usageTypesHasBeenSet = true; m_usageTypes.emplace_back(std::forward<UsageTypesT>(value)); return *this; }
158
160
164 inline const Aws::Vector<Aws::String>& GetOperations() const { return m_operations; }
165 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
166 template<typename OperationsT = Aws::Vector<Aws::String>>
167 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
168 template<typename OperationsT = Aws::Vector<Aws::String>>
169 DescribeSavingsPlansOfferingsRequest& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
170 template<typename OperationsT = Aws::String>
171 DescribeSavingsPlansOfferingsRequest& AddOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations.emplace_back(std::forward<OperationsT>(value)); return *this; }
173
175
178 inline const Aws::Vector<SavingsPlanOfferingFilterElement>& GetFilters() const { return m_filters; }
179 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
180 template<typename FiltersT = Aws::Vector<SavingsPlanOfferingFilterElement>>
181 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
182 template<typename FiltersT = Aws::Vector<SavingsPlanOfferingFilterElement>>
183 DescribeSavingsPlansOfferingsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
184 template<typename FiltersT = SavingsPlanOfferingFilterElement>
185 DescribeSavingsPlansOfferingsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
187
189
192 inline const Aws::String& GetNextToken() const { return m_nextToken; }
193 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
194 template<typename NextTokenT = Aws::String>
195 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
196 template<typename NextTokenT = Aws::String>
197 DescribeSavingsPlansOfferingsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
199
201
205 inline int GetMaxResults() const { return m_maxResults; }
206 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
207 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
208 inline DescribeSavingsPlansOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
210 private:
211
212 Aws::Vector<Aws::String> m_offeringIds;
213 bool m_offeringIdsHasBeenSet = false;
214
216 bool m_paymentOptionsHasBeenSet = false;
217
219 bool m_productTypeHasBeenSet = false;
220
222 bool m_planTypesHasBeenSet = false;
223
224 Aws::Vector<long long> m_durations;
225 bool m_durationsHasBeenSet = false;
226
227 Aws::Vector<CurrencyCode> m_currencies;
228 bool m_currenciesHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_descriptions;
231 bool m_descriptionsHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_serviceCodes;
234 bool m_serviceCodesHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_usageTypes;
237 bool m_usageTypesHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_operations;
240 bool m_operationsHasBeenSet = false;
241
243 bool m_filtersHasBeenSet = false;
244
245 Aws::String m_nextToken;
246 bool m_nextTokenHasBeenSet = false;
247
248 int m_maxResults{0};
249 bool m_maxResultsHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace SavingsPlans
254} // 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