AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2ReservedInstancesConfiguration.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API Ec2ReservedInstancesConfiguration();
36 AWS_COSTOPTIMIZATIONHUB_API Ec2ReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountScope() const{ return m_accountScope; }
46 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
47 inline void SetAccountScope(const Aws::String& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
48 inline void SetAccountScope(Aws::String&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
49 inline void SetAccountScope(const char* value) { m_accountScopeHasBeenSet = true; m_accountScope.assign(value); }
51 inline Ec2ReservedInstancesConfiguration& WithAccountScope(Aws::String&& value) { SetAccountScope(std::move(value)); return *this;}
52 inline Ec2ReservedInstancesConfiguration& WithAccountScope(const char* value) { SetAccountScope(value); return *this;}
54
56
59 inline const Aws::String& GetService() const{ return m_service; }
60 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
61 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
62 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
63 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
64 inline Ec2ReservedInstancesConfiguration& WithService(const Aws::String& value) { SetService(value); return *this;}
65 inline Ec2ReservedInstancesConfiguration& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
66 inline Ec2ReservedInstancesConfiguration& WithService(const char* value) { SetService(value); return *this;}
68
70
74 inline const Aws::String& GetNormalizedUnitsToPurchase() const{ return m_normalizedUnitsToPurchase; }
75 inline bool NormalizedUnitsToPurchaseHasBeenSet() const { return m_normalizedUnitsToPurchaseHasBeenSet; }
76 inline void SetNormalizedUnitsToPurchase(const Aws::String& value) { m_normalizedUnitsToPurchaseHasBeenSet = true; m_normalizedUnitsToPurchase = value; }
77 inline void SetNormalizedUnitsToPurchase(Aws::String&& value) { m_normalizedUnitsToPurchaseHasBeenSet = true; m_normalizedUnitsToPurchase = std::move(value); }
78 inline void SetNormalizedUnitsToPurchase(const char* value) { m_normalizedUnitsToPurchaseHasBeenSet = true; m_normalizedUnitsToPurchase.assign(value); }
83
85
88 inline const Aws::String& GetTerm() const{ return m_term; }
89 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
90 inline void SetTerm(const Aws::String& value) { m_termHasBeenSet = true; m_term = value; }
91 inline void SetTerm(Aws::String&& value) { m_termHasBeenSet = true; m_term = std::move(value); }
92 inline void SetTerm(const char* value) { m_termHasBeenSet = true; m_term.assign(value); }
93 inline Ec2ReservedInstancesConfiguration& WithTerm(const Aws::String& value) { SetTerm(value); return *this;}
94 inline Ec2ReservedInstancesConfiguration& WithTerm(Aws::String&& value) { SetTerm(std::move(value)); return *this;}
95 inline Ec2ReservedInstancesConfiguration& WithTerm(const char* value) { SetTerm(value); return *this;}
97
99
102 inline const Aws::String& GetPaymentOption() const{ return m_paymentOption; }
103 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
104 inline void SetPaymentOption(const Aws::String& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
105 inline void SetPaymentOption(Aws::String&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
106 inline void SetPaymentOption(const char* value) { m_paymentOptionHasBeenSet = true; m_paymentOption.assign(value); }
108 inline Ec2ReservedInstancesConfiguration& WithPaymentOption(Aws::String&& value) { SetPaymentOption(std::move(value)); return *this;}
109 inline Ec2ReservedInstancesConfiguration& WithPaymentOption(const char* value) { SetPaymentOption(value); return *this;}
111
113
117 inline const Aws::String& GetNumberOfInstancesToPurchase() const{ return m_numberOfInstancesToPurchase; }
118 inline bool NumberOfInstancesToPurchaseHasBeenSet() const { return m_numberOfInstancesToPurchaseHasBeenSet; }
119 inline void SetNumberOfInstancesToPurchase(const Aws::String& value) { m_numberOfInstancesToPurchaseHasBeenSet = true; m_numberOfInstancesToPurchase = value; }
120 inline void SetNumberOfInstancesToPurchase(Aws::String&& value) { m_numberOfInstancesToPurchaseHasBeenSet = true; m_numberOfInstancesToPurchase = std::move(value); }
121 inline void SetNumberOfInstancesToPurchase(const char* value) { m_numberOfInstancesToPurchaseHasBeenSet = true; m_numberOfInstancesToPurchase.assign(value); }
126
128
132 inline const Aws::String& GetOfferingClass() const{ return m_offeringClass; }
133 inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
134 inline void SetOfferingClass(const Aws::String& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
135 inline void SetOfferingClass(Aws::String&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
136 inline void SetOfferingClass(const char* value) { m_offeringClassHasBeenSet = true; m_offeringClass.assign(value); }
138 inline Ec2ReservedInstancesConfiguration& WithOfferingClass(Aws::String&& value) { SetOfferingClass(std::move(value)); return *this;}
139 inline Ec2ReservedInstancesConfiguration& WithOfferingClass(const char* value) { SetOfferingClass(value); return *this;}
141
143
146 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
147 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
148 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
149 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
150 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
152 inline Ec2ReservedInstancesConfiguration& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
153 inline Ec2ReservedInstancesConfiguration& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
155
157
160 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
161 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
162 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
163 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
164 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
166 inline Ec2ReservedInstancesConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
167 inline Ec2ReservedInstancesConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
169
171
174 inline const Aws::String& GetReservedInstancesRegion() const{ return m_reservedInstancesRegion; }
175 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
176 inline void SetReservedInstancesRegion(const Aws::String& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = value; }
177 inline void SetReservedInstancesRegion(Aws::String&& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = std::move(value); }
178 inline void SetReservedInstancesRegion(const char* value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion.assign(value); }
183
185
189 inline const Aws::String& GetCurrentGeneration() const{ return m_currentGeneration; }
190 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
191 inline void SetCurrentGeneration(const Aws::String& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
192 inline void SetCurrentGeneration(Aws::String&& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = std::move(value); }
193 inline void SetCurrentGeneration(const char* value) { m_currentGenerationHasBeenSet = true; m_currentGeneration.assign(value); }
196 inline Ec2ReservedInstancesConfiguration& WithCurrentGeneration(const char* value) { SetCurrentGeneration(value); return *this;}
198
200
204 inline const Aws::String& GetPlatform() const{ return m_platform; }
205 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
206 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
207 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
208 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
209 inline Ec2ReservedInstancesConfiguration& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
210 inline Ec2ReservedInstancesConfiguration& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
211 inline Ec2ReservedInstancesConfiguration& WithPlatform(const char* value) { SetPlatform(value); return *this;}
213
215
218 inline const Aws::String& GetTenancy() const{ return m_tenancy; }
219 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
220 inline void SetTenancy(const Aws::String& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
221 inline void SetTenancy(Aws::String&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
222 inline void SetTenancy(const char* value) { m_tenancyHasBeenSet = true; m_tenancy.assign(value); }
223 inline Ec2ReservedInstancesConfiguration& WithTenancy(const Aws::String& value) { SetTenancy(value); return *this;}
224 inline Ec2ReservedInstancesConfiguration& WithTenancy(Aws::String&& value) { SetTenancy(std::move(value)); return *this;}
225 inline Ec2ReservedInstancesConfiguration& WithTenancy(const char* value) { SetTenancy(value); return *this;}
227
229
232 inline bool GetSizeFlexEligible() const{ return m_sizeFlexEligible; }
233 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
234 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
237
239
242 inline const Aws::String& GetUpfrontCost() const{ return m_upfrontCost; }
243 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
244 inline void SetUpfrontCost(const Aws::String& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = value; }
245 inline void SetUpfrontCost(Aws::String&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::move(value); }
246 inline void SetUpfrontCost(const char* value) { m_upfrontCostHasBeenSet = true; m_upfrontCost.assign(value); }
248 inline Ec2ReservedInstancesConfiguration& WithUpfrontCost(Aws::String&& value) { SetUpfrontCost(std::move(value)); return *this;}
249 inline Ec2ReservedInstancesConfiguration& WithUpfrontCost(const char* value) { SetUpfrontCost(value); return *this;}
251
253
256 inline const Aws::String& GetMonthlyRecurringCost() const{ return m_monthlyRecurringCost; }
257 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
258 inline void SetMonthlyRecurringCost(const Aws::String& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = value; }
259 inline void SetMonthlyRecurringCost(Aws::String&& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = std::move(value); }
260 inline void SetMonthlyRecurringCost(const char* value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost.assign(value); }
265 private:
266
267 Aws::String m_accountScope;
268 bool m_accountScopeHasBeenSet = false;
269
270 Aws::String m_service;
271 bool m_serviceHasBeenSet = false;
272
273 Aws::String m_normalizedUnitsToPurchase;
274 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
275
276 Aws::String m_term;
277 bool m_termHasBeenSet = false;
278
279 Aws::String m_paymentOption;
280 bool m_paymentOptionHasBeenSet = false;
281
282 Aws::String m_numberOfInstancesToPurchase;
283 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
284
285 Aws::String m_offeringClass;
286 bool m_offeringClassHasBeenSet = false;
287
288 Aws::String m_instanceFamily;
289 bool m_instanceFamilyHasBeenSet = false;
290
291 Aws::String m_instanceType;
292 bool m_instanceTypeHasBeenSet = false;
293
294 Aws::String m_reservedInstancesRegion;
295 bool m_reservedInstancesRegionHasBeenSet = false;
296
297 Aws::String m_currentGeneration;
298 bool m_currentGenerationHasBeenSet = false;
299
300 Aws::String m_platform;
301 bool m_platformHasBeenSet = false;
302
303 Aws::String m_tenancy;
304 bool m_tenancyHasBeenSet = false;
305
306 bool m_sizeFlexEligible;
307 bool m_sizeFlexEligibleHasBeenSet = false;
308
309 Aws::String m_upfrontCost;
310 bool m_upfrontCostHasBeenSet = false;
311
312 Aws::String m_monthlyRecurringCost;
313 bool m_monthlyRecurringCostHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace CostOptimizationHub
318} // namespace Aws
Ec2ReservedInstancesConfiguration & WithPaymentOption(const char *value)
Ec2ReservedInstancesConfiguration & WithReservedInstancesRegion(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithInstanceType(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithPlatform(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithOfferingClass(const char *value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2ReservedInstancesConfiguration & WithTenancy(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithReservedInstancesRegion(const char *value)
Ec2ReservedInstancesConfiguration & WithTenancy(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithUpfrontCost(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithUpfrontCost(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithMonthlyRecurringCost(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithOfferingClass(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithAccountScope(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithOfferingClass(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithService(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Ec2ReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Ec2ReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Ec2ReservedInstancesConfiguration & WithTerm(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithPlatform(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithInstanceType(const char *value)
Ec2ReservedInstancesConfiguration & WithCurrentGeneration(const char *value)
Ec2ReservedInstancesConfiguration & WithAccountScope(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithInstanceFamily(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithAccountScope(const char *value)
Ec2ReservedInstancesConfiguration & WithService(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithCurrentGeneration(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const char *value)
Ec2ReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithPaymentOption(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const char *value)
Ec2ReservedInstancesConfiguration & WithTerm(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithMonthlyRecurringCost(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithCurrentGeneration(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithReservedInstancesRegion(const Aws::String &value)
Ec2ReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithPaymentOption(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithInstanceFamily(const char *value)
Ec2ReservedInstancesConfiguration & WithMonthlyRecurringCost(const char *value)
Ec2ReservedInstancesConfiguration & WithInstanceType(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(Aws::String &&value)
Ec2ReservedInstancesConfiguration & WithInstanceFamily(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue