AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeReservedInstancesOfferingsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceType.h>
11#include <aws/ec2/model/OfferingClassType.h>
12#include <aws/ec2/model/RIProductDescription.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tenancy.h>
15#include <aws/ec2/model/OfferingTypeValues.h>
16#include <aws/ec2/model/Filter.h>
17#include <utility>
18
19namespace Aws
20{
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedInstancesOfferings"; }
42
43 AWS_EC2_API Aws::String SerializePayload() const override;
44
45 protected:
46 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
47
48 public:
49
51
54 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
55 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
56 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
57 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
58 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
63
65
68 inline bool GetIncludeMarketplace() const{ return m_includeMarketplace; }
69 inline bool IncludeMarketplaceHasBeenSet() const { return m_includeMarketplaceHasBeenSet; }
70 inline void SetIncludeMarketplace(bool value) { m_includeMarketplaceHasBeenSet = true; m_includeMarketplace = value; }
73
75
81 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
82 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
83 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
84 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
88
90
94 inline long long GetMaxDuration() const{ return m_maxDuration; }
95 inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; }
96 inline void SetMaxDuration(long long value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; }
97 inline DescribeReservedInstancesOfferingsRequest& WithMaxDuration(long long value) { SetMaxDuration(value); return *this;}
99
101
105 inline int GetMaxInstanceCount() const{ return m_maxInstanceCount; }
106 inline bool MaxInstanceCountHasBeenSet() const { return m_maxInstanceCountHasBeenSet; }
107 inline void SetMaxInstanceCount(int value) { m_maxInstanceCountHasBeenSet = true; m_maxInstanceCount = value; }
110
112
116 inline long long GetMinDuration() const{ return m_minDuration; }
117 inline bool MinDurationHasBeenSet() const { return m_minDurationHasBeenSet; }
118 inline void SetMinDuration(long long value) { m_minDurationHasBeenSet = true; m_minDuration = value; }
119 inline DescribeReservedInstancesOfferingsRequest& WithMinDuration(long long value) { SetMinDuration(value); return *this;}
121
123
127 inline const OfferingClassType& GetOfferingClass() const{ return m_offeringClass; }
128 inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
129 inline void SetOfferingClass(const OfferingClassType& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
130 inline void SetOfferingClass(OfferingClassType&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
134
136
140 inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; }
141 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
142 inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
143 inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
147
149
152 inline const Aws::Vector<Aws::String>& GetReservedInstancesOfferingIds() const{ return m_reservedInstancesOfferingIds; }
153 inline bool ReservedInstancesOfferingIdsHasBeenSet() const { return m_reservedInstancesOfferingIdsHasBeenSet; }
154 inline void SetReservedInstancesOfferingIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds = value; }
155 inline void SetReservedInstancesOfferingIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds = std::move(value); }
158 inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(const Aws::String& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(value); return *this; }
159 inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(Aws::String&& value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(std::move(value)); return *this; }
160 inline DescribeReservedInstancesOfferingsRequest& AddReservedInstancesOfferingIds(const char* value) { m_reservedInstancesOfferingIdsHasBeenSet = true; m_reservedInstancesOfferingIds.push_back(value); return *this; }
162
164
170 inline bool GetDryRun() const{ return m_dryRun; }
171 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
172 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
173 inline DescribeReservedInstancesOfferingsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
175
177
203 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
204 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
205 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
206 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
208 inline DescribeReservedInstancesOfferingsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
209 inline DescribeReservedInstancesOfferingsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
210 inline DescribeReservedInstancesOfferingsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
212
214
222 inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
223 inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; }
224 inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
225 inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); }
229
231
236 inline const OfferingTypeValues& GetOfferingType() const{ return m_offeringType; }
237 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
238 inline void SetOfferingType(const OfferingTypeValues& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
239 inline void SetOfferingType(OfferingTypeValues&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
243
245
248 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
249 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
250 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
251 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
252 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
254 inline DescribeReservedInstancesOfferingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
255 inline DescribeReservedInstancesOfferingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
257
259
265 inline int GetMaxResults() const{ return m_maxResults; }
266 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
267 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
270 private:
271
272 Aws::String m_availabilityZone;
273 bool m_availabilityZoneHasBeenSet = false;
274
275 bool m_includeMarketplace;
276 bool m_includeMarketplaceHasBeenSet = false;
277
278 InstanceType m_instanceType;
279 bool m_instanceTypeHasBeenSet = false;
280
281 long long m_maxDuration;
282 bool m_maxDurationHasBeenSet = false;
283
284 int m_maxInstanceCount;
285 bool m_maxInstanceCountHasBeenSet = false;
286
287 long long m_minDuration;
288 bool m_minDurationHasBeenSet = false;
289
290 OfferingClassType m_offeringClass;
291 bool m_offeringClassHasBeenSet = false;
292
293 RIProductDescription m_productDescription;
294 bool m_productDescriptionHasBeenSet = false;
295
296 Aws::Vector<Aws::String> m_reservedInstancesOfferingIds;
297 bool m_reservedInstancesOfferingIdsHasBeenSet = false;
298
299 bool m_dryRun;
300 bool m_dryRunHasBeenSet = false;
301
302 Aws::Vector<Filter> m_filters;
303 bool m_filtersHasBeenSet = false;
304
305 Tenancy m_instanceTenancy;
306 bool m_instanceTenancyHasBeenSet = false;
307
308 OfferingTypeValues m_offeringType;
309 bool m_offeringTypeHasBeenSet = false;
310
311 Aws::String m_nextToken;
312 bool m_nextTokenHasBeenSet = false;
313
314 int m_maxResults;
315 bool m_maxResultsHasBeenSet = false;
316 };
317
318} // namespace Model
319} // namespace EC2
320} // namespace Aws
DescribeReservedInstancesOfferingsRequest & WithMinDuration(long long value)
DescribeReservedInstancesOfferingsRequest & WithNextToken(Aws::String &&value)
DescribeReservedInstancesOfferingsRequest & WithNextToken(const Aws::String &value)
DescribeReservedInstancesOfferingsRequest & WithInstanceTenancy(Tenancy &&value)
DescribeReservedInstancesOfferingsRequest & WithInstanceTenancy(const Tenancy &value)
DescribeReservedInstancesOfferingsRequest & WithInstanceType(InstanceType &&value)
DescribeReservedInstancesOfferingsRequest & AddFilters(Filter &&value)
DescribeReservedInstancesOfferingsRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeReservedInstancesOfferingsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeReservedInstancesOfferingsRequest & WithIncludeMarketplace(bool value)
DescribeReservedInstancesOfferingsRequest & WithNextToken(const char *value)
DescribeReservedInstancesOfferingsRequest & WithOfferingClass(const OfferingClassType &value)
DescribeReservedInstancesOfferingsRequest & WithInstanceType(const InstanceType &value)
DescribeReservedInstancesOfferingsRequest & AddReservedInstancesOfferingIds(const char *value)
DescribeReservedInstancesOfferingsRequest & WithOfferingType(OfferingTypeValues &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeReservedInstancesOfferingsRequest & WithAvailabilityZone(Aws::String &&value)
DescribeReservedInstancesOfferingsRequest & WithMaxDuration(long long value)
DescribeReservedInstancesOfferingsRequest & WithReservedInstancesOfferingIds(const Aws::Vector< Aws::String > &value)
DescribeReservedInstancesOfferingsRequest & WithMaxInstanceCount(int value)
DescribeReservedInstancesOfferingsRequest & WithProductDescription(RIProductDescription &&value)
DescribeReservedInstancesOfferingsRequest & WithOfferingClass(OfferingClassType &&value)
DescribeReservedInstancesOfferingsRequest & AddReservedInstancesOfferingIds(const Aws::String &value)
DescribeReservedInstancesOfferingsRequest & WithOfferingType(const OfferingTypeValues &value)
DescribeReservedInstancesOfferingsRequest & AddFilters(const Filter &value)
DescribeReservedInstancesOfferingsRequest & WithProductDescription(const RIProductDescription &value)
DescribeReservedInstancesOfferingsRequest & AddReservedInstancesOfferingIds(Aws::String &&value)
DescribeReservedInstancesOfferingsRequest & WithAvailabilityZone(const Aws::String &value)
DescribeReservedInstancesOfferingsRequest & WithReservedInstancesOfferingIds(Aws::Vector< Aws::String > &&value)
DescribeReservedInstancesOfferingsRequest & WithAvailabilityZone(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector