AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSavingsPlansOfferingRatesRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
12#include <aws/savingsplans/model/SavingsPlanType.h>
13#include <aws/savingsplans/model/SavingsPlanProductType.h>
14#include <aws/savingsplans/model/SavingsPlanRateServiceCode.h>
15#include <aws/savingsplans/model/SavingsPlanOfferingRateFilterElement.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 "DescribeSavingsPlansOfferingRates"; }
37
38 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::Vector<Aws::String>& GetSavingsPlanOfferingIds() const{ return m_savingsPlanOfferingIds; }
46 inline bool SavingsPlanOfferingIdsHasBeenSet() const { return m_savingsPlanOfferingIdsHasBeenSet; }
47 inline void SetSavingsPlanOfferingIds(const Aws::Vector<Aws::String>& value) { m_savingsPlanOfferingIdsHasBeenSet = true; m_savingsPlanOfferingIds = value; }
48 inline void SetSavingsPlanOfferingIds(Aws::Vector<Aws::String>&& value) { m_savingsPlanOfferingIdsHasBeenSet = true; m_savingsPlanOfferingIds = std::move(value); }
51 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanOfferingIds(const Aws::String& value) { m_savingsPlanOfferingIdsHasBeenSet = true; m_savingsPlanOfferingIds.push_back(value); return *this; }
52 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanOfferingIds(Aws::String&& value) { m_savingsPlanOfferingIdsHasBeenSet = true; m_savingsPlanOfferingIds.push_back(std::move(value)); return *this; }
53 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanOfferingIds(const char* value) { m_savingsPlanOfferingIdsHasBeenSet = true; m_savingsPlanOfferingIds.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<SavingsPlanPaymentOption>& GetSavingsPlanPaymentOptions() const{ return m_savingsPlanPaymentOptions; }
61 inline bool SavingsPlanPaymentOptionsHasBeenSet() const { return m_savingsPlanPaymentOptionsHasBeenSet; }
62 inline void SetSavingsPlanPaymentOptions(const Aws::Vector<SavingsPlanPaymentOption>& value) { m_savingsPlanPaymentOptionsHasBeenSet = true; m_savingsPlanPaymentOptions = value; }
63 inline void SetSavingsPlanPaymentOptions(Aws::Vector<SavingsPlanPaymentOption>&& value) { m_savingsPlanPaymentOptionsHasBeenSet = true; m_savingsPlanPaymentOptions = std::move(value); }
66 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanPaymentOptions(const SavingsPlanPaymentOption& value) { m_savingsPlanPaymentOptionsHasBeenSet = true; m_savingsPlanPaymentOptions.push_back(value); return *this; }
67 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanPaymentOptions(SavingsPlanPaymentOption&& value) { m_savingsPlanPaymentOptionsHasBeenSet = true; m_savingsPlanPaymentOptions.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::Vector<SavingsPlanType>& GetSavingsPlanTypes() const{ return m_savingsPlanTypes; }
75 inline bool SavingsPlanTypesHasBeenSet() const { return m_savingsPlanTypesHasBeenSet; }
76 inline void SetSavingsPlanTypes(const Aws::Vector<SavingsPlanType>& value) { m_savingsPlanTypesHasBeenSet = true; m_savingsPlanTypes = value; }
77 inline void SetSavingsPlanTypes(Aws::Vector<SavingsPlanType>&& value) { m_savingsPlanTypesHasBeenSet = true; m_savingsPlanTypes = std::move(value); }
80 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanTypes(const SavingsPlanType& value) { m_savingsPlanTypesHasBeenSet = true; m_savingsPlanTypes.push_back(value); return *this; }
81 inline DescribeSavingsPlansOfferingRatesRequest& AddSavingsPlanTypes(SavingsPlanType&& value) { m_savingsPlanTypesHasBeenSet = true; m_savingsPlanTypes.push_back(std::move(value)); return *this; }
83
85
88 inline const Aws::Vector<SavingsPlanProductType>& GetProducts() const{ return m_products; }
89 inline bool ProductsHasBeenSet() const { return m_productsHasBeenSet; }
90 inline void SetProducts(const Aws::Vector<SavingsPlanProductType>& value) { m_productsHasBeenSet = true; m_products = value; }
91 inline void SetProducts(Aws::Vector<SavingsPlanProductType>&& value) { m_productsHasBeenSet = true; m_products = std::move(value); }
94 inline DescribeSavingsPlansOfferingRatesRequest& AddProducts(const SavingsPlanProductType& value) { m_productsHasBeenSet = true; m_products.push_back(value); return *this; }
95 inline DescribeSavingsPlansOfferingRatesRequest& AddProducts(SavingsPlanProductType&& value) { m_productsHasBeenSet = true; m_products.push_back(std::move(value)); return *this; }
97
99
102 inline const Aws::Vector<SavingsPlanRateServiceCode>& GetServiceCodes() const{ return m_serviceCodes; }
103 inline bool ServiceCodesHasBeenSet() const { return m_serviceCodesHasBeenSet; }
104 inline void SetServiceCodes(const Aws::Vector<SavingsPlanRateServiceCode>& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes = value; }
105 inline void SetServiceCodes(Aws::Vector<SavingsPlanRateServiceCode>&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes = std::move(value); }
108 inline DescribeSavingsPlansOfferingRatesRequest& AddServiceCodes(const SavingsPlanRateServiceCode& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.push_back(value); return *this; }
109 inline DescribeSavingsPlansOfferingRatesRequest& AddServiceCodes(SavingsPlanRateServiceCode&& value) { m_serviceCodesHasBeenSet = true; m_serviceCodes.push_back(std::move(value)); return *this; }
111
113
116 inline const Aws::Vector<Aws::String>& GetUsageTypes() const{ return m_usageTypes; }
117 inline bool UsageTypesHasBeenSet() const { return m_usageTypesHasBeenSet; }
118 inline void SetUsageTypes(const Aws::Vector<Aws::String>& value) { m_usageTypesHasBeenSet = true; m_usageTypes = value; }
119 inline void SetUsageTypes(Aws::Vector<Aws::String>&& value) { m_usageTypesHasBeenSet = true; m_usageTypes = std::move(value); }
122 inline DescribeSavingsPlansOfferingRatesRequest& AddUsageTypes(const Aws::String& value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(value); return *this; }
123 inline DescribeSavingsPlansOfferingRatesRequest& AddUsageTypes(Aws::String&& value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(std::move(value)); return *this; }
124 inline DescribeSavingsPlansOfferingRatesRequest& AddUsageTypes(const char* value) { m_usageTypesHasBeenSet = true; m_usageTypes.push_back(value); return *this; }
126
128
132 inline const Aws::Vector<Aws::String>& GetOperations() const{ return m_operations; }
133 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
134 inline void SetOperations(const Aws::Vector<Aws::String>& value) { m_operationsHasBeenSet = true; m_operations = value; }
135 inline void SetOperations(Aws::Vector<Aws::String>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
138 inline DescribeSavingsPlansOfferingRatesRequest& AddOperations(const Aws::String& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
139 inline DescribeSavingsPlansOfferingRatesRequest& AddOperations(Aws::String&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
140 inline DescribeSavingsPlansOfferingRatesRequest& AddOperations(const char* value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
142
144
147 inline const Aws::Vector<SavingsPlanOfferingRateFilterElement>& GetFilters() const{ return m_filters; }
148 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
149 inline void SetFilters(const Aws::Vector<SavingsPlanOfferingRateFilterElement>& value) { m_filtersHasBeenSet = true; m_filters = value; }
150 inline void SetFilters(Aws::Vector<SavingsPlanOfferingRateFilterElement>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
153 inline DescribeSavingsPlansOfferingRatesRequest& AddFilters(const SavingsPlanOfferingRateFilterElement& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
154 inline DescribeSavingsPlansOfferingRatesRequest& AddFilters(SavingsPlanOfferingRateFilterElement&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
162 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
163 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
164 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
165 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
167 inline DescribeSavingsPlansOfferingRatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
168 inline DescribeSavingsPlansOfferingRatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
170
172
176 inline int GetMaxResults() const{ return m_maxResults; }
177 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
178 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
181 private:
182
183 Aws::Vector<Aws::String> m_savingsPlanOfferingIds;
184 bool m_savingsPlanOfferingIdsHasBeenSet = false;
185
186 Aws::Vector<SavingsPlanPaymentOption> m_savingsPlanPaymentOptions;
187 bool m_savingsPlanPaymentOptionsHasBeenSet = false;
188
189 Aws::Vector<SavingsPlanType> m_savingsPlanTypes;
190 bool m_savingsPlanTypesHasBeenSet = false;
191
193 bool m_productsHasBeenSet = false;
194
196 bool m_serviceCodesHasBeenSet = false;
197
198 Aws::Vector<Aws::String> m_usageTypes;
199 bool m_usageTypesHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_operations;
202 bool m_operationsHasBeenSet = false;
203
205 bool m_filtersHasBeenSet = false;
206
207 Aws::String m_nextToken;
208 bool m_nextTokenHasBeenSet = false;
209
210 int m_maxResults;
211 bool m_maxResultsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace SavingsPlans
216} // namespace Aws
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanOfferingIds(const char *value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanTypes(SavingsPlanType &&value)
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanOfferingIds(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingRatesRequest & AddUsageTypes(const Aws::String &value)
DescribeSavingsPlansOfferingRatesRequest & WithNextToken(const Aws::String &value)
DescribeSavingsPlansOfferingRatesRequest & AddOperations(Aws::String &&value)
DescribeSavingsPlansOfferingRatesRequest & AddProducts(const SavingsPlanProductType &value)
DescribeSavingsPlansOfferingRatesRequest & AddFilters(const SavingsPlanOfferingRateFilterElement &value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanPaymentOptions(const SavingsPlanPaymentOption &value)
DescribeSavingsPlansOfferingRatesRequest & WithFilters(Aws::Vector< SavingsPlanOfferingRateFilterElement > &&value)
void SetFilters(const Aws::Vector< SavingsPlanOfferingRateFilterElement > &value)
DescribeSavingsPlansOfferingRatesRequest & WithServiceCodes(Aws::Vector< SavingsPlanRateServiceCode > &&value)
void SetServiceCodes(const Aws::Vector< SavingsPlanRateServiceCode > &value)
DescribeSavingsPlansOfferingRatesRequest & WithFilters(const Aws::Vector< SavingsPlanOfferingRateFilterElement > &value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanOfferingIds(Aws::String &&value)
const Aws::Vector< SavingsPlanPaymentOption > & GetSavingsPlanPaymentOptions() const
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanTypes(Aws::Vector< SavingsPlanType > &&value)
void SetFilters(Aws::Vector< SavingsPlanOfferingRateFilterElement > &&value)
DescribeSavingsPlansOfferingRatesRequest & WithNextToken(const char *value)
DescribeSavingsPlansOfferingRatesRequest & WithOperations(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingRatesRequest & WithNextToken(Aws::String &&value)
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanPaymentOptions(Aws::Vector< SavingsPlanPaymentOption > &&value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanOfferingIds(const Aws::String &value)
DescribeSavingsPlansOfferingRatesRequest & AddOperations(const Aws::String &value)
DescribeSavingsPlansOfferingRatesRequest & AddServiceCodes(const SavingsPlanRateServiceCode &value)
const Aws::Vector< SavingsPlanOfferingRateFilterElement > & GetFilters() const
DescribeSavingsPlansOfferingRatesRequest & WithUsageTypes(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanPaymentOptions(SavingsPlanPaymentOption &&value)
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanTypes(const Aws::Vector< SavingsPlanType > &value)
DescribeSavingsPlansOfferingRatesRequest & WithProducts(Aws::Vector< SavingsPlanProductType > &&value)
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanPaymentOptions(const Aws::Vector< SavingsPlanPaymentOption > &value)
DescribeSavingsPlansOfferingRatesRequest & AddUsageTypes(Aws::String &&value)
DescribeSavingsPlansOfferingRatesRequest & AddProducts(SavingsPlanProductType &&value)
DescribeSavingsPlansOfferingRatesRequest & WithSavingsPlanOfferingIds(const Aws::Vector< Aws::String > &value)
DescribeSavingsPlansOfferingRatesRequest & AddSavingsPlanTypes(const SavingsPlanType &value)
void SetSavingsPlanPaymentOptions(const Aws::Vector< SavingsPlanPaymentOption > &value)
DescribeSavingsPlansOfferingRatesRequest & WithOperations(Aws::Vector< Aws::String > &&value)
DescribeSavingsPlansOfferingRatesRequest & AddOperations(const char *value)
DescribeSavingsPlansOfferingRatesRequest & AddFilters(SavingsPlanOfferingRateFilterElement &&value)
DescribeSavingsPlansOfferingRatesRequest & WithProducts(const Aws::Vector< SavingsPlanProductType > &value)
DescribeSavingsPlansOfferingRatesRequest & AddServiceCodes(SavingsPlanRateServiceCode &&value)
DescribeSavingsPlansOfferingRatesRequest & AddUsageTypes(const char *value)
DescribeSavingsPlansOfferingRatesRequest & WithServiceCodes(const Aws::Vector< SavingsPlanRateServiceCode > &value)
DescribeSavingsPlansOfferingRatesRequest & WithUsageTypes(Aws::Vector< Aws::String > &&value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector