AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RdsReservedInstancesConfiguration.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 RdsReservedInstancesConfiguration();
36 AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration(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 RdsReservedInstancesConfiguration& WithAccountScope(Aws::String&& value) { SetAccountScope(std::move(value)); return *this;}
52 inline RdsReservedInstancesConfiguration& 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 RdsReservedInstancesConfiguration& WithService(const Aws::String& value) { SetService(value); return *this;}
65 inline RdsReservedInstancesConfiguration& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
66 inline RdsReservedInstancesConfiguration& 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 RdsReservedInstancesConfiguration& WithTerm(const Aws::String& value) { SetTerm(value); return *this;}
94 inline RdsReservedInstancesConfiguration& WithTerm(Aws::String&& value) { SetTerm(std::move(value)); return *this;}
95 inline RdsReservedInstancesConfiguration& 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 RdsReservedInstancesConfiguration& WithPaymentOption(Aws::String&& value) { SetPaymentOption(std::move(value)); return *this;}
109 inline RdsReservedInstancesConfiguration& 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
131 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
132 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
133 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
134 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
135 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
137 inline RdsReservedInstancesConfiguration& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
138 inline RdsReservedInstancesConfiguration& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
140
142
145 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
146 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
147 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
148 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
149 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
151 inline RdsReservedInstancesConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
152 inline RdsReservedInstancesConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
154
156
159 inline const Aws::String& GetReservedInstancesRegion() const{ return m_reservedInstancesRegion; }
160 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
161 inline void SetReservedInstancesRegion(const Aws::String& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = value; }
162 inline void SetReservedInstancesRegion(Aws::String&& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = std::move(value); }
163 inline void SetReservedInstancesRegion(const char* value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion.assign(value); }
168
170
173 inline bool GetSizeFlexEligible() const{ return m_sizeFlexEligible; }
174 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
175 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
178
180
184 inline const Aws::String& GetCurrentGeneration() const{ return m_currentGeneration; }
185 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
186 inline void SetCurrentGeneration(const Aws::String& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
187 inline void SetCurrentGeneration(Aws::String&& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = std::move(value); }
188 inline void SetCurrentGeneration(const char* value) { m_currentGenerationHasBeenSet = true; m_currentGeneration.assign(value); }
191 inline RdsReservedInstancesConfiguration& WithCurrentGeneration(const char* value) { SetCurrentGeneration(value); return *this;}
193
195
198 inline const Aws::String& GetUpfrontCost() const{ return m_upfrontCost; }
199 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
200 inline void SetUpfrontCost(const Aws::String& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = value; }
201 inline void SetUpfrontCost(Aws::String&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::move(value); }
202 inline void SetUpfrontCost(const char* value) { m_upfrontCostHasBeenSet = true; m_upfrontCost.assign(value); }
204 inline RdsReservedInstancesConfiguration& WithUpfrontCost(Aws::String&& value) { SetUpfrontCost(std::move(value)); return *this;}
205 inline RdsReservedInstancesConfiguration& WithUpfrontCost(const char* value) { SetUpfrontCost(value); return *this;}
207
209
212 inline const Aws::String& GetMonthlyRecurringCost() const{ return m_monthlyRecurringCost; }
213 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
214 inline void SetMonthlyRecurringCost(const Aws::String& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = value; }
215 inline void SetMonthlyRecurringCost(Aws::String&& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = std::move(value); }
216 inline void SetMonthlyRecurringCost(const char* value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost.assign(value); }
221
223
226 inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; }
227 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
228 inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
229 inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); }
230 inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); }
232 inline RdsReservedInstancesConfiguration& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;}
233 inline RdsReservedInstancesConfiguration& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;}
235
237
240 inline const Aws::String& GetDatabaseEdition() const{ return m_databaseEdition; }
241 inline bool DatabaseEditionHasBeenSet() const { return m_databaseEditionHasBeenSet; }
242 inline void SetDatabaseEdition(const Aws::String& value) { m_databaseEditionHasBeenSet = true; m_databaseEdition = value; }
243 inline void SetDatabaseEdition(Aws::String&& value) { m_databaseEditionHasBeenSet = true; m_databaseEdition = std::move(value); }
244 inline void SetDatabaseEdition(const char* value) { m_databaseEditionHasBeenSet = true; m_databaseEdition.assign(value); }
246 inline RdsReservedInstancesConfiguration& WithDatabaseEdition(Aws::String&& value) { SetDatabaseEdition(std::move(value)); return *this;}
247 inline RdsReservedInstancesConfiguration& WithDatabaseEdition(const char* value) { SetDatabaseEdition(value); return *this;}
249
251
254 inline const Aws::String& GetDatabaseEngine() const{ return m_databaseEngine; }
255 inline bool DatabaseEngineHasBeenSet() const { return m_databaseEngineHasBeenSet; }
256 inline void SetDatabaseEngine(const Aws::String& value) { m_databaseEngineHasBeenSet = true; m_databaseEngine = value; }
257 inline void SetDatabaseEngine(Aws::String&& value) { m_databaseEngineHasBeenSet = true; m_databaseEngine = std::move(value); }
258 inline void SetDatabaseEngine(const char* value) { m_databaseEngineHasBeenSet = true; m_databaseEngine.assign(value); }
260 inline RdsReservedInstancesConfiguration& WithDatabaseEngine(Aws::String&& value) { SetDatabaseEngine(std::move(value)); return *this;}
261 inline RdsReservedInstancesConfiguration& WithDatabaseEngine(const char* value) { SetDatabaseEngine(value); return *this;}
263
265
270 inline const Aws::String& GetDeploymentOption() const{ return m_deploymentOption; }
271 inline bool DeploymentOptionHasBeenSet() const { return m_deploymentOptionHasBeenSet; }
272 inline void SetDeploymentOption(const Aws::String& value) { m_deploymentOptionHasBeenSet = true; m_deploymentOption = value; }
273 inline void SetDeploymentOption(Aws::String&& value) { m_deploymentOptionHasBeenSet = true; m_deploymentOption = std::move(value); }
274 inline void SetDeploymentOption(const char* value) { m_deploymentOptionHasBeenSet = true; m_deploymentOption.assign(value); }
277 inline RdsReservedInstancesConfiguration& WithDeploymentOption(const char* value) { SetDeploymentOption(value); return *this;}
279 private:
280
281 Aws::String m_accountScope;
282 bool m_accountScopeHasBeenSet = false;
283
284 Aws::String m_service;
285 bool m_serviceHasBeenSet = false;
286
287 Aws::String m_normalizedUnitsToPurchase;
288 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
289
290 Aws::String m_term;
291 bool m_termHasBeenSet = false;
292
293 Aws::String m_paymentOption;
294 bool m_paymentOptionHasBeenSet = false;
295
296 Aws::String m_numberOfInstancesToPurchase;
297 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
298
299 Aws::String m_instanceFamily;
300 bool m_instanceFamilyHasBeenSet = false;
301
302 Aws::String m_instanceType;
303 bool m_instanceTypeHasBeenSet = false;
304
305 Aws::String m_reservedInstancesRegion;
306 bool m_reservedInstancesRegionHasBeenSet = false;
307
308 bool m_sizeFlexEligible;
309 bool m_sizeFlexEligibleHasBeenSet = false;
310
311 Aws::String m_currentGeneration;
312 bool m_currentGenerationHasBeenSet = false;
313
314 Aws::String m_upfrontCost;
315 bool m_upfrontCostHasBeenSet = false;
316
317 Aws::String m_monthlyRecurringCost;
318 bool m_monthlyRecurringCostHasBeenSet = false;
319
320 Aws::String m_licenseModel;
321 bool m_licenseModelHasBeenSet = false;
322
323 Aws::String m_databaseEdition;
324 bool m_databaseEditionHasBeenSet = false;
325
326 Aws::String m_databaseEngine;
327 bool m_databaseEngineHasBeenSet = false;
328
329 Aws::String m_deploymentOption;
330 bool m_deploymentOptionHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace CostOptimizationHub
335} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsReservedInstancesConfiguration & WithCurrentGeneration(Aws::String &&value)
RdsReservedInstancesConfiguration & WithPaymentOption(const Aws::String &value)
RdsReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
RdsReservedInstancesConfiguration & WithInstanceType(const char *value)
RdsReservedInstancesConfiguration & WithTerm(Aws::String &&value)
RdsReservedInstancesConfiguration & WithDatabaseEdition(const Aws::String &value)
RdsReservedInstancesConfiguration & WithDatabaseEngine(const char *value)
RdsReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const Aws::String &value)
RdsReservedInstancesConfiguration & WithTerm(const Aws::String &value)
RdsReservedInstancesConfiguration & WithService(const Aws::String &value)
RdsReservedInstancesConfiguration & WithInstanceFamily(Aws::String &&value)
RdsReservedInstancesConfiguration & WithLicenseModel(const Aws::String &value)
RdsReservedInstancesConfiguration & WithPaymentOption(const char *value)
RdsReservedInstancesConfiguration & WithMonthlyRecurringCost(const Aws::String &value)
RdsReservedInstancesConfiguration & WithCurrentGeneration(const char *value)
RdsReservedInstancesConfiguration & WithAccountScope(const char *value)
RdsReservedInstancesConfiguration & WithAccountScope(Aws::String &&value)
RdsReservedInstancesConfiguration & WithInstanceType(const Aws::String &value)
RdsReservedInstancesConfiguration & WithInstanceFamily(const Aws::String &value)
RdsReservedInstancesConfiguration & WithDeploymentOption(Aws::String &&value)
RdsReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(Aws::String &&value)
RdsReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const char *value)
RdsReservedInstancesConfiguration & WithReservedInstancesRegion(const char *value)
RdsReservedInstancesConfiguration & WithLicenseModel(const char *value)
RdsReservedInstancesConfiguration & WithLicenseModel(Aws::String &&value)
RdsReservedInstancesConfiguration & WithPaymentOption(Aws::String &&value)
RdsReservedInstancesConfiguration & WithReservedInstancesRegion(const Aws::String &value)
RdsReservedInstancesConfiguration & WithMonthlyRecurringCost(const char *value)
RdsReservedInstancesConfiguration & WithUpfrontCost(const Aws::String &value)
RdsReservedInstancesConfiguration & WithDatabaseEngine(const Aws::String &value)
RdsReservedInstancesConfiguration & WithDatabaseEngine(Aws::String &&value)
RdsReservedInstancesConfiguration & WithInstanceType(Aws::String &&value)
RdsReservedInstancesConfiguration & WithDatabaseEdition(Aws::String &&value)
RdsReservedInstancesConfiguration & WithCurrentGeneration(const Aws::String &value)
RdsReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const char *value)
RdsReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(Aws::String &&value)
RdsReservedInstancesConfiguration & WithUpfrontCost(Aws::String &&value)
RdsReservedInstancesConfiguration & WithAccountScope(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RdsReservedInstancesConfiguration & WithDeploymentOption(const Aws::String &value)
RdsReservedInstancesConfiguration & WithService(Aws::String &&value)
RdsReservedInstancesConfiguration & WithDatabaseEdition(const char *value)
RdsReservedInstancesConfiguration & WithInstanceFamily(const char *value)
RdsReservedInstancesConfiguration & WithReservedInstancesRegion(Aws::String &&value)
RdsReservedInstancesConfiguration & WithDeploymentOption(const char *value)
RdsReservedInstancesConfiguration & WithMonthlyRecurringCost(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue