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>
26namespace ElasticsearchService
53 inline void SetReservationName(
const char* value) { m_reservationNameHasBeenSet =
true; m_reservationName.assign(value); }
119 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
130 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
141 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
153 inline void SetCurrencyCode(
const char* value) { m_currencyCodeHasBeenSet =
true; m_currencyCode.assign(value); }
177 inline void SetState(
const char* value) { m_stateHasBeenSet =
true; m_state.assign(value); }
213 bool m_reservationNameHasBeenSet =
false;
216 bool m_reservedElasticsearchInstanceIdHasBeenSet =
false;
218 Aws::String m_reservedElasticsearchInstanceOfferingId;
219 bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet =
false;
222 bool m_elasticsearchInstanceTypeHasBeenSet =
false;
225 bool m_startTimeHasBeenSet =
false;
228 bool m_durationHasBeenSet =
false;
231 bool m_fixedPriceHasBeenSet =
false;
234 bool m_usagePriceHasBeenSet =
false;
237 bool m_currencyCodeHasBeenSet =
false;
239 int m_elasticsearchInstanceCount;
240 bool m_elasticsearchInstanceCountHasBeenSet =
false;
243 bool m_stateHasBeenSet =
false;
246 bool m_paymentOptionHasBeenSet =
false;
249 bool m_recurringChargesHasBeenSet =
false;
ReservedElasticsearchInstance & AddRecurringCharges(RecurringCharge &&value)
ReservedElasticsearchInstance & WithReservationName(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance()
bool CurrencyCodeHasBeenSet() const
ReservedElasticsearchInstance & WithStartTime(const Aws::Utils::DateTime &value)
ReservedElasticsearchInstance & WithCurrencyCode(const Aws::String &value)
ReservedElasticsearchInstance & WithPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
bool ReservationNameHasBeenSet() const
void SetPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
ReservedElasticsearchInstance & WithCurrencyCode(Aws::String &&value)
void SetState(const Aws::String &value)
bool UsagePriceHasBeenSet() const
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance(Aws::Utils::Json::JsonView jsonValue)
ReservedElasticsearchInstance & WithState(const char *value)
void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
void SetReservedElasticsearchInstanceOfferingId(Aws::String &&value)
ReservedElasticsearchInstance & WithStartTime(Aws::Utils::DateTime &&value)
const ESPartitionInstanceType & GetElasticsearchInstanceType() const
void SetFixedPrice(double value)
void SetReservedElasticsearchInstanceId(Aws::String &&value)
ReservedElasticsearchInstance & WithDuration(int value)
void SetState(Aws::String &&value)
ReservedElasticsearchInstance & WithState(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrencyCode(Aws::String &&value)
bool DurationHasBeenSet() const
ReservedElasticsearchInstance & WithElasticsearchInstanceType(ESPartitionInstanceType &&value)
bool PaymentOptionHasBeenSet() const
double GetFixedPrice() const
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedElasticsearchInstance & WithReservationName(const char *value)
const Aws::String & GetReservedElasticsearchInstanceOfferingId() const
void SetStartTime(Aws::Utils::DateTime &&value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(Aws::String &&value)
void SetElasticsearchInstanceType(const ESPartitionInstanceType &value)
void SetUsagePrice(double value)
void SetCurrencyCode(const Aws::String &value)
bool RecurringChargesHasBeenSet() const
void SetDuration(int value)
void SetReservationName(Aws::String &&value)
bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const
void SetElasticsearchInstanceCount(int value)
bool StateHasBeenSet() const
ReservedElasticsearchInstance & WithCurrencyCode(const char *value)
const Aws::String & GetCurrencyCode() const
double GetUsagePrice() const
ReservedElasticsearchInstance & WithPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
ReservedElasticsearchInstance & WithElasticsearchInstanceType(const ESPartitionInstanceType &value)
const Aws::String & GetState() const
void SetReservedElasticsearchInstanceId(const Aws::String &value)
bool StartTimeHasBeenSet() const
void SetElasticsearchInstanceType(ESPartitionInstanceType &&value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(const Aws::String &value)
ReservedElasticsearchInstance & AddRecurringCharges(const RecurringCharge &value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(const char *value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceId(const char *value)
void SetReservedElasticsearchInstanceId(const char *value)
void SetReservedElasticsearchInstanceOfferingId(const char *value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ReservedElasticsearchInstance & WithElasticsearchInstanceCount(int value)
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
void SetReservationName(const char *value)
bool FixedPriceHasBeenSet() const
ReservedElasticsearchInstance & WithState(const Aws::String &value)
ReservedElasticsearchInstance & WithFixedPrice(double value)
bool ElasticsearchInstanceTypeHasBeenSet() const
bool ElasticsearchInstanceCountHasBeenSet() const
const Aws::String & GetReservationName() const
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedElasticsearchInstance & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedElasticsearchInstance & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
int GetElasticsearchInstanceCount() const
ReservedElasticsearchInstance & WithReservationName(const Aws::String &value)
void SetState(const char *value)
const ReservedElasticsearchInstancePaymentOption & GetPaymentOption() const
ReservedElasticsearchInstance & WithUsagePrice(double value)
void SetReservedElasticsearchInstanceOfferingId(const Aws::String &value)
void SetCurrencyCode(const char *value)
bool ReservedElasticsearchInstanceIdHasBeenSet() const
void SetReservationName(const Aws::String &value)
const Aws::String & GetReservedElasticsearchInstanceId() const
const Aws::Utils::DateTime & GetStartTime() const
ReservedElasticsearchInstance & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
ReservedElasticsearchInstancePaymentOption
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue