AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetOfferingIds(const Aws::Vector<Aws::String>& value) { m_offeringIdsHasBeenSet = true; m_offeringIds = value; }
48 inline void SetOfferingIds(Aws::Vector<Aws::String>&& value) { m_offeringIdsHasBeenSet = true; m_offeringIds = std::move(value); }
51 inline DescribeSavingsPlansOfferingsRequest& AddOfferingIds(const Aws::String& value) { m_offeringIdsHasBeenSet = true; m_offeringIds.push_back(value); return *this; }
52 inline DescribeSavingsPlansOfferingsRequest& AddOfferingIds(Aws::String&& value) { m_offeringIdsHasBeenSet = true; m_offeringIds.push_back(std::move(value)); return *this; }
53 inline DescribeSavingsPlansOfferingsRequest& AddOfferingIds(const char* value) { m_offeringIdsHasBeenSet = true; m_offeringIds.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<SavingsPlanPaymentOption>& GetPaymentOptions() const{ return m_paymentOptions; }
61 inline bool PaymentOptionsHasBeenSet() const { return m_paymentOptionsHasBeenSet; }
62 inline void SetPaymentOptions(const Aws::Vector<SavingsPlanPaymentOption>& value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions = value; }
63 inline void SetPaymentOptions(Aws::Vector<SavingsPlanPaymentOption>&& value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions = std::move(value); }
66 inline DescribeSavingsPlansOfferingsRequest& AddPaymentOptions(const SavingsPlanPaymentOption& value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions.push_back(value); return *this; }
67 inline DescribeSavingsPlansOfferingsRequest& AddPaymentOptions(SavingsPlanPaymentOption&& value) { m_paymentOptionsHasBeenSet = true; m_paymentOptions.push_back(std::move(value)); return *this; }
69
71
74 inline const SavingsPlanProductType& GetProductType() const{ return m_productType; }
75 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
76 inline void SetProductType(const SavingsPlanProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
77 inline void SetProductType(SavingsPlanProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
81
83
86 inline const Aws::Vector<SavingsPlanType>& GetPlanTypes() const{ return m_planTypes; }
87 inline bool PlanTypesHasBeenSet() const { return m_planTypesHasBeenSet; }
88 inline void SetPlanTypes(const Aws::Vector<SavingsPlanType>& value) { m_planTypesHasBeenSet = true; m_planTypes = value; }
89 inline void SetPlanTypes(Aws::Vector<SavingsPlanType>&& value) { m_planTypesHasBeenSet = true; m_planTypes = std::move(value); }
92 inline DescribeSavingsPlansOfferingsRequest& AddPlanTypes(const SavingsPlanType& value) { m_planTypesHasBeenSet = true; m_planTypes.push_back(value); return *this; }
93 inline DescribeSavingsPlansOfferingsRequest& AddPlanTypes(SavingsPlanType&& value) { m_planTypesHasBeenSet = true; m_planTypes.push_back(std::move(value)); return *this; }
95
97
100 inline const Aws::Vector<long long>& GetDurations() const{ return m_durations; }
101 inline bool DurationsHasBeenSet() const { return m_durationsHasBeenSet; }
102 inline void SetDurations(const Aws::Vector<long long>& value) { m_durationsHasBeenSet = true; m_durations = value; }
103 inline void SetDurations(Aws::Vector<long long>&& value) { m_durationsHasBeenSet = true; m_durations = std::move(value); }
106 inline DescribeSavingsPlansOfferingsRequest& AddDurations(long long value) { m_durationsHasBeenSet = true; m_durations.push_back(value); return *this; }
108
110
113 inline const Aws::Vector<CurrencyCode>& GetCurrencies() const{ return m_currencies; }
114 inline bool CurrenciesHasBeenSet() const { return m_currenciesHasBeenSet; }
115 inline void SetCurrencies(const Aws::Vector<CurrencyCode>& value) { m_currenciesHasBeenSet = true; m_currencies = value; }
116 inline void SetCurrencies(Aws::Vector<CurrencyCode>&& value) { m_currenciesHasBeenSet = true; m_currencies = std::move(value); }
119 inline DescribeSavingsPlansOfferingsRequest& AddCurrencies(const CurrencyCode& value) { m_currenciesHasBeenSet = true; m_currencies.push_back(value); return *this; }
120 inline DescribeSavingsPlansOfferingsRequest& AddCurrencies(CurrencyCode&& value) { m_currenciesHasBeenSet = true; m_currencies.push_back(std::move(value)); return *this; }
122
124
127 inline const Aws::Vector<Aws::String>& GetDescriptions() const{ return m_descriptions; }
128 inline bool DescriptionsHasBeenSet() const { return m_descriptionsHasBeenSet; }
129 inline void SetDescriptions(const Aws::Vector<Aws::String>& value) { m_descriptionsHasBeenSet = true; m_descriptions = value; }
130 inline void SetDescriptions(Aws::Vector<Aws::String>&& value) { m_descriptionsHasBeenSet = true; m_descriptions = std::move(value); }
133 inline DescribeSavingsPlansOfferingsRequest& AddDescriptions(const Aws::String& value) { m_descriptionsHasBeenSet = true; m_descriptions.push_back(value); return *this; }
134 inline DescribeSavingsPlansOfferingsRequest& AddDescriptions(Aws::String&& value) { m_descriptionsHasBeenSet = true; m_descriptions.push_back(std::move(value)); return *this; }
135 inline DescribeSavingsPlansOfferingsRequest& AddDescriptions(const char* value) { m_descriptionsHasBeenSet = true; m_descriptions.push_back(value); return *this; }
137
139
142 inline const Aws::Vector<Aws::String>& GetServiceCodes() const{ return m_serviceCodes; }
143 inline bool ServiceCodesHasBeenSet() const { return m_serviceCodesHasBeenSet; }
144 inline void SetServiceCodes(const Aws::Vector<Aws::String>& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes = value; }
145 inline void SetServiceCodes(Aws::Vector<Aws::String>&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes = std::move(value); }
148 inline DescribeSavingsPlansOfferingsRequest& AddServiceCodes(const Aws::String& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.push_back(value); return *this; }
149 inline DescribeSavingsPlansOfferingsRequest& AddServiceCodes(Aws::String&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.push_back(std::move(value)); return *this; }
150 inline DescribeSavingsPlansOfferingsRequest& AddServiceCodes(const char* value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.push_back(value); return *this; }
152
154
157 inline const Aws::Vector<Aws::String>& GetUsageTypes() const{ return m_usageTypes; }
158 inline bool UsageTypesHasBeenSet() const { return m_usageTypesHasBeenSet; }
159 inline void SetUsageTypes(const Aws::Vector<Aws::String>& value) { m_usageTypesHasBeenSet = true; m_usageTypes = value; }
160 inline void SetUsageTypes(Aws::Vector<Aws::String>&& value) { m_usageTypesHasBeenSet = true; m_usageTypes = std::move(value); }
163 inline DescribeSavingsPlansOfferingsRequest& AddUsageTypes(const Aws::String& value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(value); return *this; }
164 inline DescribeSavingsPlansOfferingsRequest& AddUsageTypes(Aws::String&& value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(std::move(value)); return *this; }
165 inline DescribeSavingsPlansOfferingsRequest& AddUsageTypes(const char* value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(value); return *this; }
167
169
173 inline const Aws::Vector<Aws::String>& GetOperations() const{ return m_operations; }
174 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
175 inline void SetOperations(const Aws::Vector<Aws::String>& value) { m_operationsHasBeenSet = true; m_operations = value; }
176 inline void SetOperations(Aws::Vector<Aws::String>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
179 inline DescribeSavingsPlansOfferingsRequest& AddOperations(const Aws::String& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
180 inline DescribeSavingsPlansOfferingsRequest& AddOperations(Aws::String&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
181 inline DescribeSavingsPlansOfferingsRequest& AddOperations(const char* value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
183
185
188 inline const Aws::Vector<SavingsPlanOfferingFilterElement>& GetFilters() const{ return m_filters; }
189 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
190 inline void SetFilters(const Aws::Vector<SavingsPlanOfferingFilterElement>& value) { m_filtersHasBeenSet = true; m_filters = value; }
191 inline void SetFilters(Aws::Vector<SavingsPlanOfferingFilterElement>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
194 inline DescribeSavingsPlansOfferingsRequest& AddFilters(const SavingsPlanOfferingFilterElement& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
195 inline DescribeSavingsPlansOfferingsRequest& AddFilters(SavingsPlanOfferingFilterElement&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
197
199
202 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
203 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
204 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
205 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
206 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
207 inline DescribeSavingsPlansOfferingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
208 inline DescribeSavingsPlansOfferingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
209 inline DescribeSavingsPlansOfferingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
211
213
217 inline int GetMaxResults() const{ return m_maxResults; }
218 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
219 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
220 inline DescribeSavingsPlansOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
222 private:
223
224 Aws::Vector<Aws::String> m_offeringIds;
225 bool m_offeringIdsHasBeenSet = false;
226
228 bool m_paymentOptionsHasBeenSet = false;
229
230 SavingsPlanProductType m_productType;
231 bool m_productTypeHasBeenSet = false;
232
234 bool m_planTypesHasBeenSet = false;
235
236 Aws::Vector<long long> m_durations;
237 bool m_durationsHasBeenSet = false;
238
239 Aws::Vector<CurrencyCode> m_currencies;
240 bool m_currenciesHasBeenSet = false;
241
242 Aws::Vector<Aws::String> m_descriptions;
243 bool m_descriptionsHasBeenSet = false;
244
245 Aws::Vector<Aws::String> m_serviceCodes;
246 bool m_serviceCodesHasBeenSet = false;
247
248 Aws::Vector<Aws::String> m_usageTypes;
249 bool m_usageTypesHasBeenSet = false;
250
251 Aws::Vector<Aws::String> m_operations;
252 bool m_operationsHasBeenSet = false;
253
255 bool m_filtersHasBeenSet = false;
256
257 Aws::String m_nextToken;
258 bool m_nextTokenHasBeenSet = false;
259
260 int m_maxResults;
261 bool m_maxResultsHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace SavingsPlans
266} // namespace Aws
DescribeSavingsPlansOfferingsRequest & AddOfferingIds(const Aws::String &value)
DescribeSavingsPlansOfferingsRequest & WithPaymentOptions(const Aws::Vector< SavingsPlanPaymentOption > &value)
DescribeSavingsPlansOfferingsRequest & WithUsageTypes(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingsRequest & WithOperations(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingsRequest & AddCurrencies(const CurrencyCode &value)
DescribeSavingsPlansOfferingsRequest & WithNextToken(const Aws::String &value)
void SetPaymentOptions(Aws::Vector< SavingsPlanPaymentOption > &&value)
DescribeSavingsPlansOfferingsRequest & AddDescriptions(const Aws::String &value)
DescribeSavingsPlansOfferingsRequest & AddOperations(const char *value)
DescribeSavingsPlansOfferingsRequest & WithDescriptions(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingsRequest & AddServiceCodes(Aws::String &&value)
DescribeSavingsPlansOfferingsRequest & WithServiceCodes(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingsRequest & WithServiceCodes(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingsRequest & WithOperations(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingsRequest & WithDescriptions(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingsRequest & AddOfferingIds(Aws::String &&value)
DescribeSavingsPlansOfferingsRequest & AddCurrencies(CurrencyCode &&value)
DescribeSavingsPlansOfferingsRequest & AddPlanTypes(const SavingsPlanType &value)
DescribeSavingsPlansOfferingsRequest & AddDescriptions(Aws::String &&value)
DescribeSavingsPlansOfferingsRequest & WithUsageTypes(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingsRequest & AddFilters(SavingsPlanOfferingFilterElement &&value)
DescribeSavingsPlansOfferingsRequest & AddDescriptions(const char *value)
DescribeSavingsPlansOfferingsRequest & AddUsageTypes(const char *value)
DescribeSavingsPlansOfferingsRequest & AddFilters(const SavingsPlanOfferingFilterElement &value)
DescribeSavingsPlansOfferingsRequest & AddPlanTypes(SavingsPlanType &&value)
DescribeSavingsPlansOfferingsRequest & WithProductType(const SavingsPlanProductType &value)
DescribeSavingsPlansOfferingsRequest & WithProductType(SavingsPlanProductType &&value)
DescribeSavingsPlansOfferingsRequest & AddUsageTypes(Aws::String &&value)
void SetFilters(Aws::Vector< SavingsPlanOfferingFilterElement > &&value)
DescribeSavingsPlansOfferingsRequest & WithNextToken(Aws::String &&value)
DescribeSavingsPlansOfferingsRequest & WithOfferingIds(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingsRequest & WithDurations(const Aws::Vector< long long > &value)
DescribeSavingsPlansOfferingsRequest & WithFilters(const Aws::Vector< SavingsPlanOfferingFilterElement > &value)
DescribeSavingsPlansOfferingsRequest & WithDurations(Aws::Vector< long long > &&value)
DescribeSavingsPlansOfferingsRequest & AddDurations(long long value)
const Aws::Vector< SavingsPlanOfferingFilterElement > & GetFilters() const
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
DescribeSavingsPlansOfferingsRequest & AddOfferingIds(const char *value)
DescribeSavingsPlansOfferingsRequest & AddServiceCodes(const Aws::String &value)
DescribeSavingsPlansOfferingsRequest & WithPlanTypes(Aws::Vector< SavingsPlanType > &&value)
DescribeSavingsPlansOfferingsRequest & AddOperations(const Aws::String &value)
DescribeSavingsPlansOfferingsRequest & WithPaymentOptions(Aws::Vector< SavingsPlanPaymentOption > &&value)
DescribeSavingsPlansOfferingsRequest & AddUsageTypes(const Aws::String &value)
DescribeSavingsPlansOfferingsRequest & AddOperations(Aws::String &&value)
DescribeSavingsPlansOfferingsRequest & AddPaymentOptions(SavingsPlanPaymentOption &&value)
DescribeSavingsPlansOfferingsRequest & AddServiceCodes(const char *value)
DescribeSavingsPlansOfferingsRequest & AddPaymentOptions(const SavingsPlanPaymentOption &value)
void SetPaymentOptions(const Aws::Vector< SavingsPlanPaymentOption > &value)
DescribeSavingsPlansOfferingsRequest & WithCurrencies(Aws::Vector< CurrencyCode > &&value)
DescribeSavingsPlansOfferingsRequest & WithPlanTypes(const Aws::Vector< SavingsPlanType > &value)
DescribeSavingsPlansOfferingsRequest & WithNextToken(const char *value)
DescribeSavingsPlansOfferingsRequest & WithFilters(Aws::Vector< SavingsPlanOfferingFilterElement > &&value)
const Aws::Vector< SavingsPlanPaymentOption > & GetPaymentOptions() const
void SetFilters(const Aws::Vector< SavingsPlanOfferingFilterElement > &value)
DescribeSavingsPlansOfferingsRequest & WithOfferingIds(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingsRequest & WithCurrencies(const Aws::Vector< CurrencyCode > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector