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/core/utils/DateTime.h>
11#include <aws/opensearch/model/ReservedInstancePaymentOption.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/opensearch/model/RecurringCharge.h>
26namespace OpenSearchService
53 inline void SetReservationName(
const char* value) { m_reservationNameHasBeenSet =
true; m_reservationName.assign(value); }
67 inline void SetReservedInstanceId(
const char* value) { m_reservedInstanceIdHasBeenSet =
true; m_reservedInstanceId.assign(value); }
79 inline void SetBillingSubscriptionId(
long long value) { m_billingSubscriptionIdHasBeenSet =
true; m_billingSubscriptionId = value; }
91 inline void SetReservedInstanceOfferingId(
const char* value) { m_reservedInstanceOfferingIdHasBeenSet =
true; m_reservedInstanceOfferingId.assign(value); }
127 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
138 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
149 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
161 inline void SetCurrencyCode(
const char* value) { m_currencyCodeHasBeenSet =
true; m_currencyCode.assign(value); }
173 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
185 inline void SetState(
const char* value) { m_stateHasBeenSet =
true; m_state.assign(value); }
220 bool m_reservationNameHasBeenSet =
false;
223 bool m_reservedInstanceIdHasBeenSet =
false;
225 long long m_billingSubscriptionId;
226 bool m_billingSubscriptionIdHasBeenSet =
false;
229 bool m_reservedInstanceOfferingIdHasBeenSet =
false;
232 bool m_instanceTypeHasBeenSet =
false;
235 bool m_startTimeHasBeenSet =
false;
238 bool m_durationHasBeenSet =
false;
241 bool m_fixedPriceHasBeenSet =
false;
244 bool m_usagePriceHasBeenSet =
false;
247 bool m_currencyCodeHasBeenSet =
false;
250 bool m_instanceCountHasBeenSet =
false;
253 bool m_stateHasBeenSet =
false;
256 bool m_paymentOptionHasBeenSet =
false;
259 bool m_recurringChargesHasBeenSet =
false;
ReservedInstance & WithPaymentOption(ReservedInstancePaymentOption &&value)
bool StateHasBeenSet() const
bool DurationHasBeenSet() const
bool PaymentOptionHasBeenSet() const
bool StartTimeHasBeenSet() const
ReservedInstance & WithReservationName(Aws::String &&value)
int GetInstanceCount() const
void SetReservedInstanceOfferingId(Aws::String &&value)
bool UsagePriceHasBeenSet() const
ReservedInstance & WithCurrencyCode(Aws::String &&value)
const Aws::String & GetState() const
void SetReservedInstanceId(Aws::String &&value)
bool InstanceTypeHasBeenSet() const
bool ReservationNameHasBeenSet() const
ReservedInstance & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedInstance & WithInstanceType(const OpenSearchPartitionInstanceType &value)
void SetReservationName(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API ReservedInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
ReservedInstance & WithBillingSubscriptionId(long long value)
void SetReservedInstanceOfferingId(const char *value)
ReservedInstance & WithState(const Aws::String &value)
ReservedInstance & WithReservedInstanceOfferingId(const char *value)
void SetCurrencyCode(const Aws::String &value)
const Aws::String & GetReservationName() const
void SetReservedInstanceId(const char *value)
bool FixedPriceHasBeenSet() const
bool BillingSubscriptionIdHasBeenSet() const
ReservedInstance & WithReservedInstanceOfferingId(Aws::String &&value)
const Aws::String & GetCurrencyCode() const
void SetCurrencyCode(Aws::String &&value)
const Aws::String & GetReservedInstanceId() const
ReservedInstance & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetReservedInstanceOfferingId() const
void SetReservationName(const Aws::String &value)
ReservedInstance & WithState(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API ReservedInstance(Aws::Utils::Json::JsonView jsonValue)
void SetDuration(int value)
bool CurrencyCodeHasBeenSet() const
ReservedInstance & WithReservedInstanceOfferingId(const Aws::String &value)
ReservedInstance & WithReservationName(const char *value)
ReservedInstance & WithDuration(int value)
ReservedInstance & WithFixedPrice(double value)
ReservedInstance & WithReservedInstanceId(Aws::String &&value)
long long GetBillingSubscriptionId() const
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
const OpenSearchPartitionInstanceType & GetInstanceType() const
ReservedInstance & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_OPENSEARCHSERVICE_API ReservedInstance()
void SetStartTime(Aws::Utils::DateTime &&value)
ReservedInstance & WithReservationName(const Aws::String &value)
void SetPaymentOption(ReservedInstancePaymentOption &&value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedInstance & WithInstanceCount(int value)
void SetState(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetUsagePrice(double value)
bool ReservedInstanceOfferingIdHasBeenSet() const
double GetUsagePrice() const
void SetReservedInstanceId(const Aws::String &value)
void SetInstanceCount(int value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedInstance & WithCurrencyCode(const char *value)
void SetState(const char *value)
bool ReservedInstanceIdHasBeenSet() const
bool RecurringChargesHasBeenSet() const
void SetInstanceType(const OpenSearchPartitionInstanceType &value)
ReservedInstance & AddRecurringCharges(RecurringCharge &&value)
ReservedInstance & WithState(const char *value)
void SetReservationName(const char *value)
ReservedInstance & WithReservedInstanceId(const char *value)
void SetFixedPrice(double value)
double GetFixedPrice() const
void SetInstanceType(OpenSearchPartitionInstanceType &&value)
ReservedInstance & WithUsagePrice(double value)
ReservedInstance & WithPaymentOption(const ReservedInstancePaymentOption &value)
void SetState(const Aws::String &value)
void SetBillingSubscriptionId(long long value)
void SetReservedInstanceOfferingId(const Aws::String &value)
const ReservedInstancePaymentOption & GetPaymentOption() const
bool InstanceCountHasBeenSet() const
ReservedInstance & AddRecurringCharges(const RecurringCharge &value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedInstance & WithCurrencyCode(const Aws::String &value)
ReservedInstance & WithReservedInstanceId(const Aws::String &value)
ReservedInstance & WithInstanceType(OpenSearchPartitionInstanceType &&value)
void SetCurrencyCode(const char *value)
ReservedInstance & WithStartTime(const Aws::Utils::DateTime &value)
void SetPaymentOption(const ReservedInstancePaymentOption &value)
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