AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenSearchReservedInstancesConfiguration.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 OpenSearchReservedInstancesConfiguration();
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 OpenSearchReservedInstancesConfiguration& WithAccountScope(Aws::String&& value) { SetAccountScope(std::move(value)); return *this;}
52 inline OpenSearchReservedInstancesConfiguration& 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 OpenSearchReservedInstancesConfiguration& WithService(const Aws::String& value) { SetService(value); return *this;}
65 inline OpenSearchReservedInstancesConfiguration& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
66 inline OpenSearchReservedInstancesConfiguration& 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 OpenSearchReservedInstancesConfiguration& WithTerm(const Aws::String& value) { SetTerm(value); return *this;}
94 inline OpenSearchReservedInstancesConfiguration& WithTerm(Aws::String&& value) { SetTerm(std::move(value)); return *this;}
95 inline OpenSearchReservedInstancesConfiguration& 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 OpenSearchReservedInstancesConfiguration& 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& GetInstanceType() const{ return m_instanceType; }
132 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
133 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
134 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
135 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
138 inline OpenSearchReservedInstancesConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
140
142
145 inline const Aws::String& GetReservedInstancesRegion() const{ return m_reservedInstancesRegion; }
146 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
147 inline void SetReservedInstancesRegion(const Aws::String& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = value; }
148 inline void SetReservedInstancesRegion(Aws::String&& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = std::move(value); }
149 inline void SetReservedInstancesRegion(const char* value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion.assign(value); }
154
156
160 inline const Aws::String& GetCurrentGeneration() const{ return m_currentGeneration; }
161 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
162 inline void SetCurrentGeneration(const Aws::String& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
163 inline void SetCurrentGeneration(Aws::String&& value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = std::move(value); }
164 inline void SetCurrentGeneration(const char* value) { m_currentGenerationHasBeenSet = true; m_currentGeneration.assign(value); }
169
171
174 inline bool GetSizeFlexEligible() const{ return m_sizeFlexEligible; }
175 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
176 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
179
181
184 inline const Aws::String& GetUpfrontCost() const{ return m_upfrontCost; }
185 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
186 inline void SetUpfrontCost(const Aws::String& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = value; }
187 inline void SetUpfrontCost(Aws::String&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::move(value); }
188 inline void SetUpfrontCost(const char* value) { m_upfrontCostHasBeenSet = true; m_upfrontCost.assign(value); }
190 inline OpenSearchReservedInstancesConfiguration& WithUpfrontCost(Aws::String&& value) { SetUpfrontCost(std::move(value)); return *this;}
191 inline OpenSearchReservedInstancesConfiguration& WithUpfrontCost(const char* value) { SetUpfrontCost(value); return *this;}
193
195
198 inline const Aws::String& GetMonthlyRecurringCost() const{ return m_monthlyRecurringCost; }
199 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
200 inline void SetMonthlyRecurringCost(const Aws::String& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = value; }
201 inline void SetMonthlyRecurringCost(Aws::String&& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = std::move(value); }
202 inline void SetMonthlyRecurringCost(const char* value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost.assign(value); }
207 private:
208
209 Aws::String m_accountScope;
210 bool m_accountScopeHasBeenSet = false;
211
212 Aws::String m_service;
213 bool m_serviceHasBeenSet = false;
214
215 Aws::String m_normalizedUnitsToPurchase;
216 bool m_normalizedUnitsToPurchaseHasBeenSet = false;
217
218 Aws::String m_term;
219 bool m_termHasBeenSet = false;
220
221 Aws::String m_paymentOption;
222 bool m_paymentOptionHasBeenSet = false;
223
224 Aws::String m_numberOfInstancesToPurchase;
225 bool m_numberOfInstancesToPurchaseHasBeenSet = false;
226
227 Aws::String m_instanceType;
228 bool m_instanceTypeHasBeenSet = false;
229
230 Aws::String m_reservedInstancesRegion;
231 bool m_reservedInstancesRegionHasBeenSet = false;
232
233 Aws::String m_currentGeneration;
234 bool m_currentGenerationHasBeenSet = false;
235
236 bool m_sizeFlexEligible;
237 bool m_sizeFlexEligibleHasBeenSet = false;
238
239 Aws::String m_upfrontCost;
240 bool m_upfrontCostHasBeenSet = false;
241
242 Aws::String m_monthlyRecurringCost;
243 bool m_monthlyRecurringCostHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace CostOptimizationHub
248} // namespace Aws
OpenSearchReservedInstancesConfiguration & WithMonthlyRecurringCost(Aws::String &&value)
OpenSearchReservedInstancesConfiguration & WithPaymentOption(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchReservedInstancesConfiguration & WithInstanceType(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithCurrentGeneration(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API OpenSearchReservedInstancesConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenSearchReservedInstancesConfiguration & WithReservedInstancesRegion(const char *value)
OpenSearchReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(Aws::String &&value)
OpenSearchReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithAccountScope(Aws::String &&value)
OpenSearchReservedInstancesConfiguration & WithReservedInstancesRegion(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithPaymentOption(Aws::String &&value)
OpenSearchReservedInstancesConfiguration & WithNumberOfInstancesToPurchase(const char *value)
OpenSearchReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(const char *value)
OpenSearchReservedInstancesConfiguration & WithUpfrontCost(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithReservedInstancesRegion(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API OpenSearchReservedInstancesConfiguration(Aws::Utils::Json::JsonView jsonValue)
OpenSearchReservedInstancesConfiguration & WithCurrentGeneration(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithMonthlyRecurringCost(const char *value)
OpenSearchReservedInstancesConfiguration & WithTerm(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithNormalizedUnitsToPurchase(Aws::String &&value)
OpenSearchReservedInstancesConfiguration & WithMonthlyRecurringCost(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithAccountScope(const Aws::String &value)
OpenSearchReservedInstancesConfiguration & WithService(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue