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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rds/model/RecurringCharge.h>
54 template<
typename ReservedDBInstanceIdT = Aws::String>
55 void SetReservedDBInstanceId(ReservedDBInstanceIdT&& value) { m_reservedDBInstanceIdHasBeenSet =
true; m_reservedDBInstanceId = std::forward<ReservedDBInstanceIdT>(value); }
56 template<
typename ReservedDBInstanceIdT = Aws::String>
66 template<
typename ReservedDBInstancesOfferingIdT = Aws::String>
67 void SetReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT&& value) { m_reservedDBInstancesOfferingIdHasBeenSet =
true; m_reservedDBInstancesOfferingId = std::forward<ReservedDBInstancesOfferingIdT>(value); }
68 template<
typename ReservedDBInstancesOfferingIdT = Aws::String>
78 template<
typename DBInstanceClassT = Aws::String>
79 void SetDBInstanceClass(DBInstanceClassT&& value) { m_dBInstanceClassHasBeenSet =
true; m_dBInstanceClass = std::forward<DBInstanceClassT>(value); }
80 template<
typename DBInstanceClassT = Aws::String>
90 template<
typename StartTimeT = Aws::Utils::DateTime>
91 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
92 template<
typename StartTimeT = Aws::Utils::DateTime>
102 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
112 inline void SetFixedPrice(
double value) { m_fixedPriceHasBeenSet =
true; m_fixedPrice = value; }
122 inline void SetUsagePrice(
double value) { m_usagePriceHasBeenSet =
true; m_usagePrice = value; }
132 template<
typename CurrencyCodeT = Aws::String>
133 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet =
true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
134 template<
typename CurrencyCodeT = Aws::String>
144 inline void SetDBInstanceCount(
int value) { m_dBInstanceCountHasBeenSet =
true; m_dBInstanceCount = value; }
154 template<
typename ProductDescriptionT = Aws::String>
155 void SetProductDescription(ProductDescriptionT&& value) { m_productDescriptionHasBeenSet =
true; m_productDescription = std::forward<ProductDescriptionT>(value); }
156 template<
typename ProductDescriptionT = Aws::String>
166 template<
typename OfferingTypeT = Aws::String>
167 void SetOfferingType(OfferingTypeT&& value) { m_offeringTypeHasBeenSet =
true; m_offeringType = std::forward<OfferingTypeT>(value); }
168 template<
typename OfferingTypeT = Aws::String>
178 inline void SetMultiAZ(
bool value) { m_multiAZHasBeenSet =
true; m_multiAZ = value; }
188 template<
typename StateT = Aws::String>
189 void SetState(StateT&& value) { m_stateHasBeenSet =
true; m_state = std::forward<StateT>(value); }
190 template<
typename StateT = Aws::String>
200 template<
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
201 void SetRecurringCharges(RecurringChargesT&& value) { m_recurringChargesHasBeenSet =
true; m_recurringCharges = std::forward<RecurringChargesT>(value); }
202 template<
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
204 template<
typename RecurringChargesT = RecurringCharge>
214 template<
typename ReservedDBInstanceArnT = Aws::String>
215 void SetReservedDBInstanceArn(ReservedDBInstanceArnT&& value) { m_reservedDBInstanceArnHasBeenSet =
true; m_reservedDBInstanceArn = std::forward<ReservedDBInstanceArnT>(value); }
216 template<
typename ReservedDBInstanceArnT = Aws::String>
228 template<
typename LeaseIdT = Aws::String>
229 void SetLeaseId(LeaseIdT&& value) { m_leaseIdHasBeenSet =
true; m_leaseId = std::forward<LeaseIdT>(value); }
230 template<
typename LeaseIdT = Aws::String>
236 bool m_reservedDBInstanceIdHasBeenSet =
false;
239 bool m_reservedDBInstancesOfferingIdHasBeenSet =
false;
242 bool m_dBInstanceClassHasBeenSet =
false;
245 bool m_startTimeHasBeenSet =
false;
248 bool m_durationHasBeenSet =
false;
250 double m_fixedPrice{0.0};
251 bool m_fixedPriceHasBeenSet =
false;
253 double m_usagePrice{0.0};
254 bool m_usagePriceHasBeenSet =
false;
257 bool m_currencyCodeHasBeenSet =
false;
259 int m_dBInstanceCount{0};
260 bool m_dBInstanceCountHasBeenSet =
false;
263 bool m_productDescriptionHasBeenSet =
false;
266 bool m_offeringTypeHasBeenSet =
false;
268 bool m_multiAZ{
false};
269 bool m_multiAZHasBeenSet =
false;
272 bool m_stateHasBeenSet =
false;
275 bool m_recurringChargesHasBeenSet =
false;
278 bool m_reservedDBInstanceArnHasBeenSet =
false;
281 bool m_leaseIdHasBeenSet =
false;
ReservedDBInstance & WithUsagePrice(double value)
const Aws::String & GetState() const
void SetState(StateT &&value)
double GetUsagePrice() const
const Aws::String & GetProductDescription() const
const Aws::String & GetDBInstanceClass() const
void SetDBInstanceClass(DBInstanceClassT &&value)
void SetUsagePrice(double value)
void SetReservedDBInstanceId(ReservedDBInstanceIdT &&value)
bool ReservedDBInstanceIdHasBeenSet() const
bool DBInstanceCountHasBeenSet() const
AWS_RDS_API ReservedDBInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedDBInstance & WithDBInstanceCount(int value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ReservedDBInstancesOfferingIdHasBeenSet() const
void SetLeaseId(LeaseIdT &&value)
void SetDuration(int value)
ReservedDBInstance & WithCurrencyCode(CurrencyCodeT &&value)
ReservedDBInstance & WithMultiAZ(bool value)
AWS_RDS_API ReservedDBInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetReservedDBInstanceArn() const
void SetProductDescription(ProductDescriptionT &&value)
const Aws::String & GetLeaseId() const
ReservedDBInstance & WithOfferingType(OfferingTypeT &&value)
ReservedDBInstance & WithState(StateT &&value)
ReservedDBInstance & WithDBInstanceClass(DBInstanceClassT &&value)
const Aws::String & GetReservedDBInstancesOfferingId() const
bool LeaseIdHasBeenSet() const
void SetStartTime(StartTimeT &&value)
ReservedDBInstance & WithReservedDBInstanceId(ReservedDBInstanceIdT &&value)
void SetFixedPrice(double value)
void SetReservedDBInstanceArn(ReservedDBInstanceArnT &&value)
void SetOfferingType(OfferingTypeT &&value)
bool ProductDescriptionHasBeenSet() const
bool ReservedDBInstanceArnHasBeenSet() const
void SetCurrencyCode(CurrencyCodeT &&value)
bool DBInstanceClassHasBeenSet() const
const Aws::String & GetCurrencyCode() const
void SetDBInstanceCount(int value)
bool MultiAZHasBeenSet() const
ReservedDBInstance & AddRecurringCharges(RecurringChargesT &&value)
ReservedDBInstance & WithReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT &&value)
const Aws::String & GetOfferingType() const
ReservedDBInstance & WithStartTime(StartTimeT &&value)
double GetFixedPrice() const
bool CurrencyCodeHasBeenSet() const
bool RecurringChargesHasBeenSet() const
int GetDBInstanceCount() const
bool StartTimeHasBeenSet() const
ReservedDBInstance & WithRecurringCharges(RecurringChargesT &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetStartTime() const
bool DurationHasBeenSet() const
void SetReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT &&value)
bool StateHasBeenSet() const
bool FixedPriceHasBeenSet() const
bool OfferingTypeHasBeenSet() const
void SetMultiAZ(bool value)
void SetRecurringCharges(RecurringChargesT &&value)
ReservedDBInstance & WithDuration(int value)
const Aws::String & GetReservedDBInstanceId() const
ReservedDBInstance & WithFixedPrice(double value)
ReservedDBInstance & WithLeaseId(LeaseIdT &&value)
AWS_RDS_API ReservedDBInstance()=default
ReservedDBInstance & WithProductDescription(ProductDescriptionT &&value)
ReservedDBInstance & WithReservedDBInstanceArn(ReservedDBInstanceArnT &&value)
bool UsagePriceHasBeenSet() 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