7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/RecurringCharge.h>
52 template<
typename ReservedDBInstancesOfferingIdT = Aws::String>
53 void SetReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT&& value) { m_reservedDBInstancesOfferingIdHasBeenSet =
true; m_reservedDBInstancesOfferingId = std::forward<ReservedDBInstancesOfferingIdT>(value); }
54 template<
typename ReservedDBInstancesOfferingIdT = Aws::String>
64 template<
typename DBInstanceClassT = Aws::String>
65 void SetDBInstanceClass(DBInstanceClassT&& value) { m_dBInstanceClassHasBeenSet =
true; m_dBInstanceClass = std::forward<DBInstanceClassT>(value); }
66 template<
typename DBInstanceClassT = Aws::String>
76 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
86 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
96 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
106 template<
typename CurrencyCodeT = Aws::String>
107 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet =
true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
108 template<
typename CurrencyCodeT = Aws::String>
118 template<
typename ProductDescriptionT = Aws::String>
119 void SetProductDescription(ProductDescriptionT&& value) { m_productDescriptionHasBeenSet =
true; m_productDescription = std::forward<ProductDescriptionT>(value); }
120 template<
typename ProductDescriptionT = Aws::String>
130 template<
typename OfferingTypeT = Aws::String>
131 void SetOfferingType(OfferingTypeT&& value) { m_offeringTypeHasBeenSet =
true; m_offeringType = std::forward<OfferingTypeT>(value); }
132 template<
typename OfferingTypeT = Aws::String>
142 inline void SetMultiAZ(
bool value) { m_multiAZHasBeenSet =
true; m_multiAZ = value; }
152 template<
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
153 void SetRecurringCharges(RecurringChargesT&& value) { m_recurringChargesHasBeenSet =
true; m_recurringCharges = std::forward<RecurringChargesT>(value); }
154 template<
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
156 template<
typename RecurringChargesT = RecurringCharge>
162 bool m_reservedDBInstancesOfferingIdHasBeenSet =
false;
165 bool m_dBInstanceClassHasBeenSet =
false;
168 bool m_durationHasBeenSet =
false;
170 double m_fixedPrice{0.0};
171 bool m_fixedPriceHasBeenSet =
false;
173 double m_usagePrice{0.0};
174 bool m_usagePriceHasBeenSet =
false;
177 bool m_currencyCodeHasBeenSet =
false;
180 bool m_productDescriptionHasBeenSet =
false;
183 bool m_offeringTypeHasBeenSet =
false;
185 bool m_multiAZ{
false};
186 bool m_multiAZHasBeenSet =
false;
189 bool m_recurringChargesHasBeenSet =
false;
void SetRecurringCharges(RecurringChargesT &&value)
const Aws::String & GetOfferingType() const
ReservedDBInstancesOffering & WithFixedPrice(double value)
bool MultiAZHasBeenSet() const
ReservedDBInstancesOffering & WithDuration(int value)
double GetFixedPrice() const
void SetUsagePrice(double value)
bool ReservedDBInstancesOfferingIdHasBeenSet() const
AWS_RDS_API ReservedDBInstancesOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
double GetUsagePrice() const
void SetOfferingType(OfferingTypeT &&value)
ReservedDBInstancesOffering & WithReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT &&value)
ReservedDBInstancesOffering & AddRecurringCharges(RecurringChargesT &&value)
ReservedDBInstancesOffering & WithCurrencyCode(CurrencyCodeT &&value)
bool ProductDescriptionHasBeenSet() const
ReservedDBInstancesOffering & WithOfferingType(OfferingTypeT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedDBInstancesOffering & WithMultiAZ(bool value)
void SetFixedPrice(double value)
bool OfferingTypeHasBeenSet() const
void SetReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT &&value)
void SetMultiAZ(bool value)
ReservedDBInstancesOffering & WithDBInstanceClass(DBInstanceClassT &&value)
void SetCurrencyCode(CurrencyCodeT &&value)
bool DBInstanceClassHasBeenSet() const
bool DurationHasBeenSet() const
const Aws::String & GetDBInstanceClass() const
void SetDBInstanceClass(DBInstanceClassT &&value)
const Aws::String & GetCurrencyCode() const
const Aws::String & GetReservedDBInstancesOfferingId() const
bool CurrencyCodeHasBeenSet() const
ReservedDBInstancesOffering & WithProductDescription(ProductDescriptionT &&value)
AWS_RDS_API ReservedDBInstancesOffering()=default
AWS_RDS_API ReservedDBInstancesOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetProductDescription(ProductDescriptionT &&value)
void SetDuration(int value)
ReservedDBInstancesOffering & WithUsagePrice(double value)
bool FixedPriceHasBeenSet() const
const Aws::String & GetProductDescription() const
bool UsagePriceHasBeenSet() const
ReservedDBInstancesOffering & WithRecurringCharges(RecurringChargesT &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
bool RecurringChargesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream