7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/model/OfferingType.h>
22namespace RedshiftServerless
48 template<
typename CurrencyCodeT = Aws::String>
49 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet =
true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
50 template<
typename CurrencyCodeT = Aws::String>
60 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
70 inline void SetHourlyCharge(
double value) { m_hourlyChargeHasBeenSet =
true; m_hourlyCharge = value; }
80 template<
typename OfferingIdT = Aws::String>
81 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet =
true; m_offeringId = std::forward<OfferingIdT>(value); }
82 template<
typename OfferingIdT = Aws::String>
102 inline void SetUpfrontCharge(
double value) { m_upfrontChargeHasBeenSet =
true; m_upfrontCharge = value; }
108 bool m_currencyCodeHasBeenSet =
false;
111 bool m_durationHasBeenSet =
false;
113 double m_hourlyCharge{0.0};
114 bool m_hourlyChargeHasBeenSet =
false;
117 bool m_offeringIdHasBeenSet =
false;
120 bool m_offeringTypeHasBeenSet =
false;
122 double m_upfrontCharge{0.0};
123 bool m_upfrontChargeHasBeenSet =
false;
ReservationOffering & WithUpfrontCharge(double value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
bool OfferingTypeHasBeenSet() const
bool DurationHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API ReservationOffering(Aws::Utils::Json::JsonView jsonValue)
ReservationOffering & WithOfferingId(OfferingIdT &&value)
void SetDuration(int value)
ReservationOffering & WithOfferingType(OfferingType value)
ReservationOffering & WithCurrencyCode(CurrencyCodeT &&value)
ReservationOffering & WithHourlyCharge(double value)
const Aws::String & GetOfferingId() const
OfferingType GetOfferingType() const
bool HourlyChargeHasBeenSet() const
double GetUpfrontCharge() const
bool CurrencyCodeHasBeenSet() const
bool OfferingIdHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API ReservationOffering()=default
void SetOfferingId(OfferingIdT &&value)
bool UpfrontChargeHasBeenSet() const
void SetHourlyCharge(double value)
void SetUpfrontCharge(double value)
ReservationOffering & WithDuration(int value)
void SetOfferingType(OfferingType value)
const Aws::String & GetCurrencyCode() const
AWS_REDSHIFTSERVERLESS_API ReservationOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
double GetHourlyCharge() const
void SetCurrencyCode(CurrencyCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue