AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ElastiCacheReservedInstancesConfiguration.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 ElastiCacheReservedInstancesConfiguration() = default;
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 template<typename AccountScopeT = Aws::String>
48 void SetAccountScope(AccountScopeT&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::forward<AccountScopeT>(value); }
49 template<typename AccountScopeT = Aws::String>
50 ElastiCacheReservedInstancesConfiguration& WithAccountScope(AccountScopeT&& value) { SetAccountScope(std::forward<AccountScopeT>(value)); return *this;}
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) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
61 template<typename ServiceT = Aws::String>
62 ElastiCacheReservedInstancesConfiguration& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTerm() const { return m_term; }
70 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
71 template<typename TermT = Aws::String>
72 void SetTerm(TermT&& value) { m_termHasBeenSet = true; m_term = std::forward<TermT>(value); }
73 template<typename TermT = Aws::String>
74 ElastiCacheReservedInstancesConfiguration& WithTerm(TermT&& value) { SetTerm(std::forward<TermT>(value)); return *this;}
76
78
81 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
82 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
83 template<typename PaymentOptionT = Aws::String>
84 void SetPaymentOption(PaymentOptionT&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::forward<PaymentOptionT>(value); }
85 template<typename PaymentOptionT = Aws::String>
86 ElastiCacheReservedInstancesConfiguration& WithPaymentOption(PaymentOptionT&& value) { SetPaymentOption(std::forward<PaymentOptionT>(value)); return *this;}
88
90
93 inline const Aws::String& GetReservedInstancesRegion() const { return m_reservedInstancesRegion; }
94 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
95 template<typename ReservedInstancesRegionT = Aws::String>
96 void SetReservedInstancesRegion(ReservedInstancesRegionT&& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = std::forward<ReservedInstancesRegionT>(value); }
97 template<typename ReservedInstancesRegionT = Aws::String>
98 ElastiCacheReservedInstancesConfiguration& WithReservedInstancesRegion(ReservedInstancesRegionT&& value) { SetReservedInstancesRegion(std::forward<ReservedInstancesRegionT>(value)); return *this;}
100
102
105 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
106 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
107 template<typename UpfrontCostT = Aws::String>
108 void SetUpfrontCost(UpfrontCostT&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::forward<UpfrontCostT>(value); }
109 template<typename UpfrontCostT = Aws::String>
110 ElastiCacheReservedInstancesConfiguration& WithUpfrontCost(UpfrontCostT&& value) { SetUpfrontCost(std::forward<UpfrontCostT>(value)); return *this;}
112
114
118 inline const Aws::String& GetMonthlyRecurringCost() const { return m_monthlyRecurringCost; }
119 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
120 template<typename MonthlyRecurringCostT = Aws::String>
121 void SetMonthlyRecurringCost(MonthlyRecurringCostT&& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = std::forward<MonthlyRecurringCostT>(value); }
122 template<typename MonthlyRecurringCostT = Aws::String>
123 ElastiCacheReservedInstancesConfiguration& WithMonthlyRecurringCost(MonthlyRecurringCostT&& value) { SetMonthlyRecurringCost(std::forward<MonthlyRecurringCostT>(value)); return *this;}
125
127
131 inline const Aws::String& GetNormalizedUnitsToPurchase() const { return m_normalizedUnitsToPurchase; }
132 inline bool NormalizedUnitsToPurchaseHasBeenSet() const { return m_normalizedUnitsToPurchaseHasBeenSet; }
133 template<typename NormalizedUnitsToPurchaseT = Aws::String>
134 void SetNormalizedUnitsToPurchase(NormalizedUnitsToPurchaseT&& value) { m_normalizedUnitsToPurchaseHasBeenSet = true; m_normalizedUnitsToPurchase = std::forward<NormalizedUnitsToPurchaseT>(value); }
135 template<typename NormalizedUnitsToPurchaseT = Aws::String>
136 ElastiCacheReservedInstancesConfiguration& WithNormalizedUnitsToPurchase(NormalizedUnitsToPurchaseT&& value) { SetNormalizedUnitsToPurchase(std::forward<NormalizedUnitsToPurchaseT>(value)); return *this;}
138
140
144 inline const Aws::String& GetNumberOfInstancesToPurchase() const { return m_numberOfInstancesToPurchase; }
145 inline bool NumberOfInstancesToPurchaseHasBeenSet() const { return m_numberOfInstancesToPurchaseHasBeenSet; }
146 template<typename NumberOfInstancesToPurchaseT = Aws::String>
147 void SetNumberOfInstancesToPurchase(NumberOfInstancesToPurchaseT&& value) { m_numberOfInstancesToPurchaseHasBeenSet = true; m_numberOfInstancesToPurchase = std::forward<NumberOfInstancesToPurchaseT>(value); }
148 template<typename NumberOfInstancesToPurchaseT = Aws::String>
149 ElastiCacheReservedInstancesConfiguration& WithNumberOfInstancesToPurchase(NumberOfInstancesToPurchaseT&& value) { SetNumberOfInstancesToPurchase(std::forward<NumberOfInstancesToPurchaseT>(value)); return *this;}
151
153
156 inline const Aws::String& GetInstanceFamily() const { return m_instanceFamily; }
157 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
158 template<typename InstanceFamilyT = Aws::String>
159 void SetInstanceFamily(InstanceFamilyT&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::forward<InstanceFamilyT>(value); }
160 template<typename InstanceFamilyT = Aws::String>
161 ElastiCacheReservedInstancesConfiguration& WithInstanceFamily(InstanceFamilyT&& value) { SetInstanceFamily(std::forward<InstanceFamilyT>(value)); return *this;}
163
165
168 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
169 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
170 template<typename InstanceTypeT = Aws::String>
171 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
172 template<typename InstanceTypeT = Aws::String>
173 ElastiCacheReservedInstancesConfiguration& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
175
177
181 inline const Aws::String& GetCurrentGeneration() const { return m_currentGeneration; }
182 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
183 template<typename CurrentGenerationT = Aws::String>
184 void SetCurrentGeneration(CurrentGenerationT&& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = std::forward<CurrentGenerationT>(value); }
185 template<typename CurrentGenerationT = Aws::String>
186 ElastiCacheReservedInstancesConfiguration& WithCurrentGeneration(CurrentGenerationT&& value) { SetCurrentGeneration(std::forward<CurrentGenerationT>(value)); return *this;}
188
190
193 inline bool GetSizeFlexEligible() const { return m_sizeFlexEligible; }
194 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
195 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
198 private:
199
200 Aws::String m_accountScope;
201 bool m_accountScopeHasBeenSet = false;
202
203 Aws::String m_service;
204 bool m_serviceHasBeenSet = false;
205
206 Aws::String m_term;
207 bool m_termHasBeenSet = false;
208
209 Aws::String m_paymentOption;
210 bool m_paymentOptionHasBeenSet = false;
211
212 Aws::String m_reservedInstancesRegion;
213 bool m_reservedInstancesRegionHasBeenSet = false;
214
215 Aws::String m_upfrontCost;
216 bool m_upfrontCostHasBeenSet = false;
217
218 Aws::String m_monthlyRecurringCost;
219 bool m_monthlyRecurringCostHasBeenSet = false;
220
221 Aws::String m_normalizedUnitsToPurchase;
222 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
223
224 Aws::String m_numberOfInstancesToPurchase;
225 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
226
227 Aws::String m_instanceFamily;
228 bool m_instanceFamilyHasBeenSet = false;
229
230 Aws::String m_instanceType;
231 bool m_instanceTypeHasBeenSet = false;
232
233 Aws::String m_currentGeneration;
234 bool m_currentGenerationHasBeenSet = false;
235
236 bool m_sizeFlexEligible{false};
237 bool m_sizeFlexEligibleHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace CostOptimizationHub
242} // namespace Aws
ElastiCacheReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(NormalizedUnitsToPurchaseT &&value)
ElastiCacheReservedInstancesConfiguration & WithReservedInstancesRegion(ReservedInstancesRegionT &&value)
ElastiCacheReservedInstancesConfiguration & WithInstanceType(InstanceTypeT &&value)
AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstancesConfiguration()=default
ElastiCacheReservedInstancesConfiguration & WithAccountScope(AccountScopeT &&value)
ElastiCacheReservedInstancesConfiguration & WithPaymentOption(PaymentOptionT &&value)
AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ElastiCacheReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(NumberOfInstancesToPurchaseT &&value)
ElastiCacheReservedInstancesConfiguration & WithMonthlyRecurringCost(MonthlyRecurringCostT &&value)
ElastiCacheReservedInstancesConfiguration & WithCurrentGeneration(CurrentGenerationT &&value)
AWS_COSTOPTIMIZATIONHUB_API ElastiCacheReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
ElastiCacheReservedInstancesConfiguration & WithUpfrontCost(UpfrontCostT &&value)
ElastiCacheReservedInstancesConfiguration & WithInstanceFamily(InstanceFamilyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue