7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
10#include <aws/opensearch/model/ReservedInstancePaymentOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opensearch/model/RecurringCharge.h>
25namespace OpenSearchService
53 inline void SetReservedInstanceOfferingId(
const char* value) { m_reservedInstanceOfferingIdHasBeenSet =
true; m_reservedInstanceOfferingId.assign(value); }
78 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
89 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
100 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
112 inline void SetCurrencyCode(
const char* value) { m_currencyCodeHasBeenSet =
true; m_currencyCode.assign(value); }
147 bool m_reservedInstanceOfferingIdHasBeenSet =
false;
150 bool m_instanceTypeHasBeenSet =
false;
153 bool m_durationHasBeenSet =
false;
156 bool m_fixedPriceHasBeenSet =
false;
159 bool m_usagePriceHasBeenSet =
false;
162 bool m_currencyCodeHasBeenSet =
false;
165 bool m_paymentOptionHasBeenSet =
false;
168 bool m_recurringChargesHasBeenSet =
false;
ReservedInstanceOffering & WithInstanceType(const OpenSearchPartitionInstanceType &value)
bool CurrencyCodeHasBeenSet() const
bool ReservedInstanceOfferingIdHasBeenSet() const
bool UsagePriceHasBeenSet() const
ReservedInstanceOffering & WithDuration(int value)
AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering(Aws::Utils::Json::JsonView jsonValue)
double GetFixedPrice() const
void SetDuration(int value)
void SetInstanceType(const OpenSearchPartitionInstanceType &value)
ReservedInstanceOffering & WithCurrencyCode(Aws::String &&value)
bool InstanceTypeHasBeenSet() const
ReservedInstanceOffering & WithCurrencyCode(const Aws::String &value)
bool DurationHasBeenSet() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPaymentOption(const ReservedInstancePaymentOption &value)
const OpenSearchPartitionInstanceType & GetInstanceType() const
ReservedInstanceOffering & WithFixedPrice(double value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedInstanceOffering & WithCurrencyCode(const char *value)
void SetInstanceType(OpenSearchPartitionInstanceType &&value)
bool PaymentOptionHasBeenSet() const
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
bool RecurringChargesHasBeenSet() const
void SetCurrencyCode(Aws::String &&value)
ReservedInstanceOffering & WithReservedInstanceOfferingId(Aws::String &&value)
ReservedInstanceOffering & AddRecurringCharges(RecurringCharge &&value)
void SetReservedInstanceOfferingId(const Aws::String &value)
const ReservedInstancePaymentOption & GetPaymentOption() const
void SetUsagePrice(double value)
ReservedInstanceOffering & AddRecurringCharges(const RecurringCharge &value)
AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering()
ReservedInstanceOffering & WithInstanceType(OpenSearchPartitionInstanceType &&value)
ReservedInstanceOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
const Aws::String & GetCurrencyCode() const
void SetReservedInstanceOfferingId(const char *value)
ReservedInstanceOffering & WithPaymentOption(const ReservedInstancePaymentOption &value)
ReservedInstanceOffering & WithReservedInstanceOfferingId(const Aws::String &value)
void SetPaymentOption(ReservedInstancePaymentOption &&value)
ReservedInstanceOffering & WithPaymentOption(ReservedInstancePaymentOption &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
void SetCurrencyCode(const char *value)
ReservedInstanceOffering & WithReservedInstanceOfferingId(const char *value)
bool FixedPriceHasBeenSet() const
double GetUsagePrice() const
void SetCurrencyCode(const Aws::String &value)
const Aws::String & GetReservedInstanceOfferingId() const
void SetFixedPrice(double value)
void SetReservedInstanceOfferingId(Aws::String &&value)
ReservedInstanceOffering & WithUsagePrice(double value)
ReservedInstanceOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedInstancePaymentOption
OpenSearchPartitionInstanceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue