AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RdsReservedInstancesConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration() = default;
31 AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountScope() const { return m_accountScope; }
40 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
41 template <typename AccountScopeT = Aws::String>
42 void SetAccountScope(AccountScopeT&& value) {
43 m_accountScopeHasBeenSet = true;
44 m_accountScope = std::forward<AccountScopeT>(value);
45 }
46 template <typename AccountScopeT = Aws::String>
48 SetAccountScope(std::forward<AccountScopeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template <typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) {
61 m_serviceHasBeenSet = true;
62 m_service = std::forward<ServiceT>(value);
63 }
64 template <typename ServiceT = Aws::String>
66 SetService(std::forward<ServiceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTerm() const { return m_term; }
76 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
77 template <typename TermT = Aws::String>
78 void SetTerm(TermT&& value) {
79 m_termHasBeenSet = true;
80 m_term = std::forward<TermT>(value);
81 }
82 template <typename TermT = Aws::String>
84 SetTerm(std::forward<TermT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
94 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
95 template <typename PaymentOptionT = Aws::String>
96 void SetPaymentOption(PaymentOptionT&& value) {
97 m_paymentOptionHasBeenSet = true;
98 m_paymentOption = std::forward<PaymentOptionT>(value);
99 }
100 template <typename PaymentOptionT = Aws::String>
102 SetPaymentOption(std::forward<PaymentOptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetReservedInstancesRegion() const { return m_reservedInstancesRegion; }
112 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
113 template <typename ReservedInstancesRegionT = Aws::String>
114 void SetReservedInstancesRegion(ReservedInstancesRegionT&& value) {
115 m_reservedInstancesRegionHasBeenSet = true;
116 m_reservedInstancesRegion = std::forward<ReservedInstancesRegionT>(value);
117 }
118 template <typename ReservedInstancesRegionT = Aws::String>
120 SetReservedInstancesRegion(std::forward<ReservedInstancesRegionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
130 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
131 template <typename UpfrontCostT = Aws::String>
132 void SetUpfrontCost(UpfrontCostT&& value) {
133 m_upfrontCostHasBeenSet = true;
134 m_upfrontCost = std::forward<UpfrontCostT>(value);
135 }
136 template <typename UpfrontCostT = Aws::String>
138 SetUpfrontCost(std::forward<UpfrontCostT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetMonthlyRecurringCost() const { return m_monthlyRecurringCost; }
148 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
149 template <typename MonthlyRecurringCostT = Aws::String>
150 void SetMonthlyRecurringCost(MonthlyRecurringCostT&& value) {
151 m_monthlyRecurringCostHasBeenSet = true;
152 m_monthlyRecurringCost = std::forward<MonthlyRecurringCostT>(value);
153 }
154 template <typename MonthlyRecurringCostT = Aws::String>
156 SetMonthlyRecurringCost(std::forward<MonthlyRecurringCostT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetNormalizedUnitsToPurchase() const { return m_normalizedUnitsToPurchase; }
167 inline bool NormalizedUnitsToPurchaseHasBeenSet() const { return m_normalizedUnitsToPurchaseHasBeenSet; }
168 template <typename NormalizedUnitsToPurchaseT = Aws::String>
169 void SetNormalizedUnitsToPurchase(NormalizedUnitsToPurchaseT&& value) {
170 m_normalizedUnitsToPurchaseHasBeenSet = true;
171 m_normalizedUnitsToPurchase = std::forward<NormalizedUnitsToPurchaseT>(value);
172 }
173 template <typename NormalizedUnitsToPurchaseT = Aws::String>
175 SetNormalizedUnitsToPurchase(std::forward<NormalizedUnitsToPurchaseT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetNumberOfInstancesToPurchase() const { return m_numberOfInstancesToPurchase; }
186 inline bool NumberOfInstancesToPurchaseHasBeenSet() const { return m_numberOfInstancesToPurchaseHasBeenSet; }
187 template <typename NumberOfInstancesToPurchaseT = Aws::String>
188 void SetNumberOfInstancesToPurchase(NumberOfInstancesToPurchaseT&& value) {
189 m_numberOfInstancesToPurchaseHasBeenSet = true;
190 m_numberOfInstancesToPurchase = std::forward<NumberOfInstancesToPurchaseT>(value);
191 }
192 template <typename NumberOfInstancesToPurchaseT = Aws::String>
194 SetNumberOfInstancesToPurchase(std::forward<NumberOfInstancesToPurchaseT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetInstanceFamily() const { return m_instanceFamily; }
204 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
205 template <typename InstanceFamilyT = Aws::String>
206 void SetInstanceFamily(InstanceFamilyT&& value) {
207 m_instanceFamilyHasBeenSet = true;
208 m_instanceFamily = std::forward<InstanceFamilyT>(value);
209 }
210 template <typename InstanceFamilyT = Aws::String>
212 SetInstanceFamily(std::forward<InstanceFamilyT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
222 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
223 template <typename InstanceTypeT = Aws::String>
224 void SetInstanceType(InstanceTypeT&& value) {
225 m_instanceTypeHasBeenSet = true;
226 m_instanceType = std::forward<InstanceTypeT>(value);
227 }
228 template <typename InstanceTypeT = Aws::String>
230 SetInstanceType(std::forward<InstanceTypeT>(value));
231 return *this;
232 }
234
236
239 inline bool GetSizeFlexEligible() const { return m_sizeFlexEligible; }
240 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
241 inline void SetSizeFlexEligible(bool value) {
242 m_sizeFlexEligibleHasBeenSet = true;
243 m_sizeFlexEligible = value;
244 }
246 SetSizeFlexEligible(value);
247 return *this;
248 }
250
252
256 inline const Aws::String& GetCurrentGeneration() const { return m_currentGeneration; }
257 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
258 template <typename CurrentGenerationT = Aws::String>
259 void SetCurrentGeneration(CurrentGenerationT&& value) {
260 m_currentGenerationHasBeenSet = true;
261 m_currentGeneration = std::forward<CurrentGenerationT>(value);
262 }
263 template <typename CurrentGenerationT = Aws::String>
265 SetCurrentGeneration(std::forward<CurrentGenerationT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
275 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
276 template <typename LicenseModelT = Aws::String>
277 void SetLicenseModel(LicenseModelT&& value) {
278 m_licenseModelHasBeenSet = true;
279 m_licenseModel = std::forward<LicenseModelT>(value);
280 }
281 template <typename LicenseModelT = Aws::String>
283 SetLicenseModel(std::forward<LicenseModelT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetDatabaseEdition() const { return m_databaseEdition; }
293 inline bool DatabaseEditionHasBeenSet() const { return m_databaseEditionHasBeenSet; }
294 template <typename DatabaseEditionT = Aws::String>
295 void SetDatabaseEdition(DatabaseEditionT&& value) {
296 m_databaseEditionHasBeenSet = true;
297 m_databaseEdition = std::forward<DatabaseEditionT>(value);
298 }
299 template <typename DatabaseEditionT = Aws::String>
301 SetDatabaseEdition(std::forward<DatabaseEditionT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::String& GetDatabaseEngine() const { return m_databaseEngine; }
311 inline bool DatabaseEngineHasBeenSet() const { return m_databaseEngineHasBeenSet; }
312 template <typename DatabaseEngineT = Aws::String>
313 void SetDatabaseEngine(DatabaseEngineT&& value) {
314 m_databaseEngineHasBeenSet = true;
315 m_databaseEngine = std::forward<DatabaseEngineT>(value);
316 }
317 template <typename DatabaseEngineT = Aws::String>
319 SetDatabaseEngine(std::forward<DatabaseEngineT>(value));
320 return *this;
321 }
323
325
330 inline const Aws::String& GetDeploymentOption() const { return m_deploymentOption; }
331 inline bool DeploymentOptionHasBeenSet() const { return m_deploymentOptionHasBeenSet; }
332 template <typename DeploymentOptionT = Aws::String>
333 void SetDeploymentOption(DeploymentOptionT&& value) {
334 m_deploymentOptionHasBeenSet = true;
335 m_deploymentOption = std::forward<DeploymentOptionT>(value);
336 }
337 template <typename DeploymentOptionT = Aws::String>
339 SetDeploymentOption(std::forward<DeploymentOptionT>(value));
340 return *this;
341 }
343 private:
344 Aws::String m_accountScope;
345
346 Aws::String m_service;
347
348 Aws::String m_term;
349
350 Aws::String m_paymentOption;
351
352 Aws::String m_reservedInstancesRegion;
353
354 Aws::String m_upfrontCost;
355
356 Aws::String m_monthlyRecurringCost;
357
358 Aws::String m_normalizedUnitsToPurchase;
359
360 Aws::String m_numberOfInstancesToPurchase;
361
362 Aws::String m_instanceFamily;
363
364 Aws::String m_instanceType;
365
366 bool m_sizeFlexEligible{false};
367
368 Aws::String m_currentGeneration;
369
370 Aws::String m_licenseModel;
371
372 Aws::String m_databaseEdition;
373
374 Aws::String m_databaseEngine;
375
376 Aws::String m_deploymentOption;
377 bool m_accountScopeHasBeenSet = false;
378 bool m_serviceHasBeenSet = false;
379 bool m_termHasBeenSet = false;
380 bool m_paymentOptionHasBeenSet = false;
381 bool m_reservedInstancesRegionHasBeenSet = false;
382 bool m_upfrontCostHasBeenSet = false;
383 bool m_monthlyRecurringCostHasBeenSet = false;
384 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
385 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
386 bool m_instanceFamilyHasBeenSet = false;
387 bool m_instanceTypeHasBeenSet = false;
388 bool m_sizeFlexEligibleHasBeenSet = false;
389 bool m_currentGenerationHasBeenSet = false;
390 bool m_licenseModelHasBeenSet = false;
391 bool m_databaseEditionHasBeenSet = false;
392 bool m_databaseEngineHasBeenSet = false;
393 bool m_deploymentOptionHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace CostOptimizationHub
398} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsReservedInstancesConfiguration & WithDeploymentOption(DeploymentOptionT &&value)
RdsReservedInstancesConfiguration & WithDatabaseEngine(DatabaseEngineT &&value)
RdsReservedInstancesConfiguration & WithInstanceFamily(InstanceFamilyT &&value)
AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
RdsReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(NumberOfInstancesToPurchaseT &&value)
RdsReservedInstancesConfiguration & WithCurrentGeneration(CurrentGenerationT &&value)
RdsReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(NormalizedUnitsToPurchaseT &&value)
RdsReservedInstancesConfiguration & WithPaymentOption(PaymentOptionT &&value)
RdsReservedInstancesConfiguration & WithUpfrontCost(UpfrontCostT &&value)
RdsReservedInstancesConfiguration & WithDatabaseEdition(DatabaseEditionT &&value)
RdsReservedInstancesConfiguration & WithReservedInstancesRegion(ReservedInstancesRegionT &&value)
RdsReservedInstancesConfiguration & WithInstanceType(InstanceTypeT &&value)
AWS_COSTOPTIMIZATIONHUB_API RdsReservedInstancesConfiguration()=default
RdsReservedInstancesConfiguration & WithLicenseModel(LicenseModelT &&value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RdsReservedInstancesConfiguration & WithAccountScope(AccountScopeT &&value)
RdsReservedInstancesConfiguration & WithMonthlyRecurringCost(MonthlyRecurringCostT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue