AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedshiftReservedInstancesConfiguration.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 RedshiftReservedInstancesConfiguration();
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 RedshiftReservedInstancesConfiguration& WithAccountScope(Aws::String&& value) { SetAccountScope(std::move(value)); return *this;}
52 inline RedshiftReservedInstancesConfiguration& 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 RedshiftReservedInstancesConfiguration& WithService(const Aws::String& value) { SetService(value); return *this;}
65 inline RedshiftReservedInstancesConfiguration& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
66 inline RedshiftReservedInstancesConfiguration& 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 RedshiftReservedInstancesConfiguration& WithTerm(const Aws::String& value) { SetTerm(value); return *this;}
94 inline RedshiftReservedInstancesConfiguration& WithTerm(Aws::String&& value) { SetTerm(std::move(value)); return *this;}
95 inline RedshiftReservedInstancesConfiguration& 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); }
109 inline RedshiftReservedInstancesConfiguration& 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); }
138 inline RedshiftReservedInstancesConfiguration& 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 RedshiftReservedInstancesConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
152 inline RedshiftReservedInstancesConfiguration& 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); }
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 RedshiftReservedInstancesConfiguration& WithUpfrontCost(Aws::String&& value) { SetUpfrontCost(std::move(value)); return *this;}
205 inline RedshiftReservedInstancesConfiguration& 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 private:
222
223 Aws::String m_accountScope;
224 bool m_accountScopeHasBeenSet = false;
225
226 Aws::String m_service;
227 bool m_serviceHasBeenSet = false;
228
229 Aws::String m_normalizedUnitsToPurchase;
230 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
231
232 Aws::String m_term;
233 bool m_termHasBeenSet = false;
234
235 Aws::String m_paymentOption;
236 bool m_paymentOptionHasBeenSet = false;
237
238 Aws::String m_numberOfInstancesToPurchase;
239 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
240
241 Aws::String m_instanceFamily;
242 bool m_instanceFamilyHasBeenSet = false;
243
244 Aws::String m_instanceType;
245 bool m_instanceTypeHasBeenSet = false;
246
247 Aws::String m_reservedInstancesRegion;
248 bool m_reservedInstancesRegionHasBeenSet = false;
249
250 bool m_sizeFlexEligible;
251 bool m_sizeFlexEligibleHasBeenSet = false;
252
253 Aws::String m_currentGeneration;
254 bool m_currentGenerationHasBeenSet = false;
255
256 Aws::String m_upfrontCost;
257 bool m_upfrontCostHasBeenSet = false;
258
259 Aws::String m_monthlyRecurringCost;
260 bool m_monthlyRecurringCostHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace CostOptimizationHub
265} // namespace Aws
RedshiftReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const char *value)
RedshiftReservedInstancesConfiguration & WithService(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API RedshiftReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftReservedInstancesConfiguration & WithMonthlyRecurringCost(const char *value)
RedshiftReservedInstancesConfiguration & WithInstanceType(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithAccountScope(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithTerm(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithInstanceType(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithUpfrontCost(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftReservedInstancesConfiguration & WithCurrentGeneration(const char *value)
RedshiftReservedInstancesConfiguration & WithInstanceFamily(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const char *value)
RedshiftReservedInstancesConfiguration & WithPaymentOption(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithUpfrontCost(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithMonthlyRecurringCost(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithCurrentGeneration(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithAccountScope(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithMonthlyRecurringCost(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API RedshiftReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
RedshiftReservedInstancesConfiguration & WithReservedInstancesRegion(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithReservedInstancesRegion(const char *value)
RedshiftReservedInstancesConfiguration & WithPaymentOption(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithReservedInstancesRegion(Aws::String &&value)
RedshiftReservedInstancesConfiguration & WithCurrentGeneration(const Aws::String &value)
RedshiftReservedInstancesConfiguration & WithInstanceFamily(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue