AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedElasticsearchInstance.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/model/ESPartitionInstanceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/es/model/ReservedElasticsearchInstancePaymentOption.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/es/model/RecurringCharge.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ElasticsearchService
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance();
40 AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetReservationName() const{ return m_reservationName; }
50 inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; }
51 inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; }
52 inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); }
53 inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); }
55 inline ReservedElasticsearchInstance& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;}
56 inline ReservedElasticsearchInstance& WithReservationName(const char* value) { SetReservationName(value); return *this;}
58
60
63 inline const Aws::String& GetReservedElasticsearchInstanceId() const{ return m_reservedElasticsearchInstanceId; }
64 inline bool ReservedElasticsearchInstanceIdHasBeenSet() const { return m_reservedElasticsearchInstanceIdHasBeenSet; }
65 inline void SetReservedElasticsearchInstanceId(const Aws::String& value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId = value; }
66 inline void SetReservedElasticsearchInstanceId(Aws::String&& value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId = std::move(value); }
67 inline void SetReservedElasticsearchInstanceId(const char* value) { m_reservedElasticsearchInstanceIdHasBeenSet = true; m_reservedElasticsearchInstanceId.assign(value); }
72
74
77 inline const Aws::String& GetReservedElasticsearchInstanceOfferingId() const{ return m_reservedElasticsearchInstanceOfferingId; }
78 inline bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const { return m_reservedElasticsearchInstanceOfferingIdHasBeenSet; }
79 inline void SetReservedElasticsearchInstanceOfferingId(const Aws::String& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = value; }
80 inline void SetReservedElasticsearchInstanceOfferingId(Aws::String&& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = std::move(value); }
81 inline void SetReservedElasticsearchInstanceOfferingId(const char* value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId.assign(value); }
86
88
92 inline const ESPartitionInstanceType& GetElasticsearchInstanceType() const{ return m_elasticsearchInstanceType; }
93 inline bool ElasticsearchInstanceTypeHasBeenSet() const { return m_elasticsearchInstanceTypeHasBeenSet; }
94 inline void SetElasticsearchInstanceType(const ESPartitionInstanceType& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = value; }
95 inline void SetElasticsearchInstanceType(ESPartitionInstanceType&& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = std::move(value); }
99
101
104 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
105 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
106 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
107 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
109 inline ReservedElasticsearchInstance& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
111
113
117 inline int GetDuration() const{ return m_duration; }
118 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
119 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
120 inline ReservedElasticsearchInstance& WithDuration(int value) { SetDuration(value); return *this;}
122
124
128 inline double GetFixedPrice() const{ return m_fixedPrice; }
129 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
130 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
131 inline ReservedElasticsearchInstance& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
133
135
139 inline double GetUsagePrice() const{ return m_usagePrice; }
140 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
141 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
142 inline ReservedElasticsearchInstance& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
144
146
149 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
150 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
151 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
152 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
153 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
154 inline ReservedElasticsearchInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
155 inline ReservedElasticsearchInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
156 inline ReservedElasticsearchInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
158
160
163 inline int GetElasticsearchInstanceCount() const{ return m_elasticsearchInstanceCount; }
164 inline bool ElasticsearchInstanceCountHasBeenSet() const { return m_elasticsearchInstanceCountHasBeenSet; }
165 inline void SetElasticsearchInstanceCount(int value) { m_elasticsearchInstanceCountHasBeenSet = true; m_elasticsearchInstanceCount = value; }
168
170
173 inline const Aws::String& GetState() const{ return m_state; }
174 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
175 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
176 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
177 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
178 inline ReservedElasticsearchInstance& WithState(const Aws::String& value) { SetState(value); return *this;}
179 inline ReservedElasticsearchInstance& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
180 inline ReservedElasticsearchInstance& WithState(const char* value) { SetState(value); return *this;}
182
184
188 inline const ReservedElasticsearchInstancePaymentOption& GetPaymentOption() const{ return m_paymentOption; }
189 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
190 inline void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
191 inline void SetPaymentOption(ReservedElasticsearchInstancePaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
195
197
201 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
202 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
203 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
204 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
207 inline ReservedElasticsearchInstance& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
208 inline ReservedElasticsearchInstance& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
210 private:
211
212 Aws::String m_reservationName;
213 bool m_reservationNameHasBeenSet = false;
214
215 Aws::String m_reservedElasticsearchInstanceId;
216 bool m_reservedElasticsearchInstanceIdHasBeenSet = false;
217
218 Aws::String m_reservedElasticsearchInstanceOfferingId;
219 bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet = false;
220
221 ESPartitionInstanceType m_elasticsearchInstanceType;
222 bool m_elasticsearchInstanceTypeHasBeenSet = false;
223
224 Aws::Utils::DateTime m_startTime;
225 bool m_startTimeHasBeenSet = false;
226
227 int m_duration;
228 bool m_durationHasBeenSet = false;
229
230 double m_fixedPrice;
231 bool m_fixedPriceHasBeenSet = false;
232
233 double m_usagePrice;
234 bool m_usagePriceHasBeenSet = false;
235
236 Aws::String m_currencyCode;
237 bool m_currencyCodeHasBeenSet = false;
238
239 int m_elasticsearchInstanceCount;
240 bool m_elasticsearchInstanceCountHasBeenSet = false;
241
242 Aws::String m_state;
243 bool m_stateHasBeenSet = false;
244
246 bool m_paymentOptionHasBeenSet = false;
247
248 Aws::Vector<RecurringCharge> m_recurringCharges;
249 bool m_recurringChargesHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace ElasticsearchService
254} // namespace Aws
ReservedElasticsearchInstance & AddRecurringCharges(RecurringCharge &&value)
ReservedElasticsearchInstance & WithReservationName(Aws::String &&value)
ReservedElasticsearchInstance & WithStartTime(const Aws::Utils::DateTime &value)
ReservedElasticsearchInstance & WithCurrencyCode(const Aws::String &value)
ReservedElasticsearchInstance & WithPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
void SetPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
ReservedElasticsearchInstance & WithCurrencyCode(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance(Aws::Utils::Json::JsonView jsonValue)
void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
ReservedElasticsearchInstance & WithStartTime(Aws::Utils::DateTime &&value)
ReservedElasticsearchInstance & WithState(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedElasticsearchInstance & WithElasticsearchInstanceType(ESPartitionInstanceType &&value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedElasticsearchInstance & WithReservationName(const char *value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(Aws::String &&value)
ReservedElasticsearchInstance & WithCurrencyCode(const char *value)
ReservedElasticsearchInstance & WithPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
ReservedElasticsearchInstance & WithElasticsearchInstanceType(const ESPartitionInstanceType &value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(const Aws::String &value)
ReservedElasticsearchInstance & AddRecurringCharges(const RecurringCharge &value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(const char *value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(const char *value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
ReservedElasticsearchInstance & WithState(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedElasticsearchInstance & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedElasticsearchInstance & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedElasticsearchInstance & WithReservationName(const Aws::String &value)
const ReservedElasticsearchInstancePaymentOption & GetPaymentOption() const
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue