AWS SDK for C++  1.9.102
AWS SDK for C++
ReservedElasticsearchInstanceOffering.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ElasticsearchService
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetReservedElasticsearchInstanceOfferingId() const{ return m_reservedElasticsearchInstanceOfferingId; }
49 
53  inline bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const { return m_reservedElasticsearchInstanceOfferingIdHasBeenSet; }
54 
58  inline void SetReservedElasticsearchInstanceOfferingId(const Aws::String& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = value; }
59 
63  inline void SetReservedElasticsearchInstanceOfferingId(Aws::String&& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = std::move(value); }
64 
68  inline void SetReservedElasticsearchInstanceOfferingId(const char* value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId.assign(value); }
69 
73  inline ReservedElasticsearchInstanceOffering& WithReservedElasticsearchInstanceOfferingId(const Aws::String& value) { SetReservedElasticsearchInstanceOfferingId(value); return *this;}
74 
78  inline ReservedElasticsearchInstanceOffering& WithReservedElasticsearchInstanceOfferingId(Aws::String&& value) { SetReservedElasticsearchInstanceOfferingId(std::move(value)); return *this;}
79 
83  inline ReservedElasticsearchInstanceOffering& WithReservedElasticsearchInstanceOfferingId(const char* value) { SetReservedElasticsearchInstanceOfferingId(value); return *this;}
84 
85 
90  inline const ESPartitionInstanceType& GetElasticsearchInstanceType() const{ return m_elasticsearchInstanceType; }
91 
96  inline bool ElasticsearchInstanceTypeHasBeenSet() const { return m_elasticsearchInstanceTypeHasBeenSet; }
97 
102  inline void SetElasticsearchInstanceType(const ESPartitionInstanceType& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = value; }
103 
108  inline void SetElasticsearchInstanceType(ESPartitionInstanceType&& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = std::move(value); }
109 
114  inline ReservedElasticsearchInstanceOffering& WithElasticsearchInstanceType(const ESPartitionInstanceType& value) { SetElasticsearchInstanceType(value); return *this;}
115 
120  inline ReservedElasticsearchInstanceOffering& WithElasticsearchInstanceType(ESPartitionInstanceType&& value) { SetElasticsearchInstanceType(std::move(value)); return *this;}
121 
122 
127  inline int GetDuration() const{ return m_duration; }
128 
133  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
134 
139  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
140 
145  inline ReservedElasticsearchInstanceOffering& WithDuration(int value) { SetDuration(value); return *this;}
146 
147 
152  inline double GetFixedPrice() const{ return m_fixedPrice; }
153 
158  inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
159 
164  inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
165 
170  inline ReservedElasticsearchInstanceOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
171 
172 
177  inline double GetUsagePrice() const{ return m_usagePrice; }
178 
183  inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
184 
189  inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
190 
195  inline ReservedElasticsearchInstanceOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
196 
197 
201  inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
202 
206  inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
207 
211  inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
212 
216  inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
217 
221  inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
222 
226  inline ReservedElasticsearchInstanceOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
227 
231  inline ReservedElasticsearchInstanceOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
232 
236  inline ReservedElasticsearchInstanceOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
237 
238 
242  inline const ReservedElasticsearchInstancePaymentOption& GetPaymentOption() const{ return m_paymentOption; }
243 
247  inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
248 
252  inline void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
253 
257  inline void SetPaymentOption(ReservedElasticsearchInstancePaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
258 
262  inline ReservedElasticsearchInstanceOffering& WithPaymentOption(const ReservedElasticsearchInstancePaymentOption& value) { SetPaymentOption(value); return *this;}
263 
267  inline ReservedElasticsearchInstanceOffering& WithPaymentOption(ReservedElasticsearchInstancePaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
268 
269 
274  inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
275 
280  inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
281 
286  inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
287 
292  inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
293 
298  inline ReservedElasticsearchInstanceOffering& WithRecurringCharges(const Aws::Vector<RecurringCharge>& value) { SetRecurringCharges(value); return *this;}
299 
304  inline ReservedElasticsearchInstanceOffering& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
305 
310  inline ReservedElasticsearchInstanceOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
311 
316  inline ReservedElasticsearchInstanceOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
317 
318  private:
319 
320  Aws::String m_reservedElasticsearchInstanceOfferingId;
321  bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet;
322 
323  ESPartitionInstanceType m_elasticsearchInstanceType;
324  bool m_elasticsearchInstanceTypeHasBeenSet;
325 
326  int m_duration;
327  bool m_durationHasBeenSet;
328 
329  double m_fixedPrice;
330  bool m_fixedPriceHasBeenSet;
331 
332  double m_usagePrice;
333  bool m_usagePriceHasBeenSet;
334 
335  Aws::String m_currencyCode;
336  bool m_currencyCodeHasBeenSet;
337 
339  bool m_paymentOptionHasBeenSet;
340 
341  Aws::Vector<RecurringCharge> m_recurringCharges;
342  bool m_recurringChargesHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace ElasticsearchService
347 } // namespace Aws
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetUsagePrice
void SetUsagePrice(double value)
Definition: ReservedElasticsearchInstanceOffering.h:189
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetElasticsearchInstanceType
const ESPartitionInstanceType & GetElasticsearchInstanceType() const
Definition: ReservedElasticsearchInstanceOffering.h:90
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::AddRecurringCharges
ReservedElasticsearchInstanceOffering & AddRecurringCharges(RecurringCharge &&value)
Definition: ReservedElasticsearchInstanceOffering.h:316
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetCurrencyCode
void SetCurrencyCode(const Aws::String &value)
Definition: ReservedElasticsearchInstanceOffering.h:211
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:133
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetRecurringCharges
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: ReservedElasticsearchInstanceOffering.h:286
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetCurrencyCode
const Aws::String & GetCurrencyCode() const
Definition: ReservedElasticsearchInstanceOffering.h:201
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering
Definition: ReservedElasticsearchInstanceOffering.h:37
ESPartitionInstanceType.h
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetDuration
void SetDuration(int value)
Definition: ReservedElasticsearchInstanceOffering.h:139
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetUsagePrice
double GetUsagePrice() const
Definition: ReservedElasticsearchInstanceOffering.h:177
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithRecurringCharges
ReservedElasticsearchInstanceOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
Definition: ReservedElasticsearchInstanceOffering.h:298
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::ElasticsearchInstanceTypeHasBeenSet
bool ElasticsearchInstanceTypeHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:96
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithCurrencyCode
ReservedElasticsearchInstanceOffering & WithCurrencyCode(const Aws::String &value)
Definition: ReservedElasticsearchInstanceOffering.h:226
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithPaymentOption
ReservedElasticsearchInstanceOffering & WithPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
Definition: ReservedElasticsearchInstanceOffering.h:267
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithUsagePrice
ReservedElasticsearchInstanceOffering & WithUsagePrice(double value)
Definition: ReservedElasticsearchInstanceOffering.h:195
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithCurrencyCode
ReservedElasticsearchInstanceOffering & WithCurrencyCode(const char *value)
Definition: ReservedElasticsearchInstanceOffering.h:236
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::FixedPriceHasBeenSet
bool FixedPriceHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:158
AWSVector.h
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithElasticsearchInstanceType
ReservedElasticsearchInstanceOffering & WithElasticsearchInstanceType(ESPartitionInstanceType &&value)
Definition: ReservedElasticsearchInstanceOffering.h:120
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetFixedPrice
void SetFixedPrice(double value)
Definition: ReservedElasticsearchInstanceOffering.h:164
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetReservedElasticsearchInstanceOfferingId
const Aws::String & GetReservedElasticsearchInstanceOfferingId() const
Definition: ReservedElasticsearchInstanceOffering.h:48
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetRecurringCharges
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: ReservedElasticsearchInstanceOffering.h:292
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithElasticsearchInstanceType
ReservedElasticsearchInstanceOffering & WithElasticsearchInstanceType(const ESPartitionInstanceType &value)
Definition: ReservedElasticsearchInstanceOffering.h:114
Aws::ElasticsearchService::Model::ReservedElasticsearchInstancePaymentOption
ReservedElasticsearchInstancePaymentOption
Definition: ReservedElasticsearchInstancePaymentOption.h:17
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithReservedElasticsearchInstanceOfferingId
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
Definition: ReservedElasticsearchInstanceOffering.h:73
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
RecurringCharge.h
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithFixedPrice
ReservedElasticsearchInstanceOffering & WithFixedPrice(double value)
Definition: ReservedElasticsearchInstanceOffering.h:170
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::operator=
ReservedElasticsearchInstanceOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetRecurringCharges
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
Definition: ReservedElasticsearchInstanceOffering.h:274
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::UsagePriceHasBeenSet
bool UsagePriceHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:183
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithDuration
ReservedElasticsearchInstanceOffering & WithDuration(int value)
Definition: ReservedElasticsearchInstanceOffering.h:145
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetCurrencyCode
void SetCurrencyCode(Aws::String &&value)
Definition: ReservedElasticsearchInstanceOffering.h:216
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithCurrencyCode
ReservedElasticsearchInstanceOffering & WithCurrencyCode(Aws::String &&value)
Definition: ReservedElasticsearchInstanceOffering.h:231
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::CurrencyCodeHasBeenSet
bool CurrencyCodeHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:206
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::ReservedElasticsearchInstanceOffering
ReservedElasticsearchInstanceOffering()
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetPaymentOption
void SetPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
Definition: ReservedElasticsearchInstanceOffering.h:257
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::AddRecurringCharges
ReservedElasticsearchInstanceOffering & AddRecurringCharges(const RecurringCharge &value)
Definition: ReservedElasticsearchInstanceOffering.h:310
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithPaymentOption
ReservedElasticsearchInstanceOffering & WithPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
Definition: ReservedElasticsearchInstanceOffering.h:262
Aws::ElasticsearchService::Model::ESPartitionInstanceType
ESPartitionInstanceType
Definition: ESPartitionInstanceType.h:17
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::ReservedElasticsearchInstanceOfferingIdHasBeenSet
bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:53
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetFixedPrice
double GetFixedPrice() const
Definition: ReservedElasticsearchInstanceOffering.h:152
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetPaymentOption
const ReservedElasticsearchInstancePaymentOption & GetPaymentOption() const
Definition: ReservedElasticsearchInstanceOffering.h:242
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetCurrencyCode
void SetCurrencyCode(const char *value)
Definition: ReservedElasticsearchInstanceOffering.h:221
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(const char *value)
Definition: ReservedElasticsearchInstanceOffering.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(Aws::String &&value)
Definition: ReservedElasticsearchInstanceOffering.h:63
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetElasticsearchInstanceType
void SetElasticsearchInstanceType(ESPartitionInstanceType &&value)
Definition: ReservedElasticsearchInstanceOffering.h:108
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::ReservedElasticsearchInstanceOffering
ReservedElasticsearchInstanceOffering(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetElasticsearchInstanceType
void SetElasticsearchInstanceType(const ESPartitionInstanceType &value)
Definition: ReservedElasticsearchInstanceOffering.h:102
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithReservedElasticsearchInstanceOfferingId
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(const char *value)
Definition: ReservedElasticsearchInstanceOffering.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::GetDuration
int GetDuration() const
Definition: ReservedElasticsearchInstanceOffering.h:127
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetReservedElasticsearchInstanceOfferingId
void SetReservedElasticsearchInstanceOfferingId(const Aws::String &value)
Definition: ReservedElasticsearchInstanceOffering.h:58
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::PaymentOptionHasBeenSet
bool PaymentOptionHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:247
ReservedElasticsearchInstancePaymentOption.h
Aws::ElasticsearchService::Model::RecurringCharge
Definition: RecurringCharge.h:34
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithReservedElasticsearchInstanceOfferingId
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
Definition: ReservedElasticsearchInstanceOffering.h:78
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::WithRecurringCharges
ReservedElasticsearchInstanceOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
Definition: ReservedElasticsearchInstanceOffering.h:304
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::SetPaymentOption
void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
Definition: ReservedElasticsearchInstanceOffering.h:252
Aws::ElasticsearchService::Model::ReservedElasticsearchInstanceOffering::RecurringChargesHasBeenSet
bool RecurringChargesHasBeenSet() const
Definition: ReservedElasticsearchInstanceOffering.h:280