7#include <aws/core/utils/DateTime.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/RDS_EXPORTS.h>
12#include <aws/rds/model/RecurringCharge.h>
48 template <
typename ReservedDBInstanceIdT = Aws::String>
50 m_reservedDBInstanceIdHasBeenSet =
true;
51 m_reservedDBInstanceId = std::forward<ReservedDBInstanceIdT>(value);
53 template <
typename ReservedDBInstanceIdT = Aws::String>
66 template <
typename ReservedDBInstancesOfferingIdT = Aws::String>
68 m_reservedDBInstancesOfferingIdHasBeenSet =
true;
69 m_reservedDBInstancesOfferingId = std::forward<ReservedDBInstancesOfferingIdT>(value);
71 template <
typename ReservedDBInstancesOfferingIdT = Aws::String>
84 template <
typename DBInstanceClassT = Aws::String>
86 m_dBInstanceClassHasBeenSet =
true;
87 m_dBInstanceClass = std::forward<DBInstanceClassT>(value);
89 template <
typename DBInstanceClassT = Aws::String>
102 template <
typename StartTimeT = Aws::Utils::DateTime>
104 m_startTimeHasBeenSet =
true;
105 m_startTime = std::forward<StartTimeT>(value);
107 template <
typename StartTimeT = Aws::Utils::DateTime>
121 m_durationHasBeenSet =
true;
137 m_fixedPriceHasBeenSet =
true;
138 m_fixedPrice = value;
153 m_usagePriceHasBeenSet =
true;
154 m_usagePrice = value;
168 template <
typename CurrencyCodeT = Aws::String>
170 m_currencyCodeHasBeenSet =
true;
171 m_currencyCode = std::forward<CurrencyCodeT>(value);
173 template <
typename CurrencyCodeT = Aws::String>
187 m_dBInstanceCountHasBeenSet =
true;
188 m_dBInstanceCount = value;
202 template <
typename ProductDescriptionT = Aws::String>
204 m_productDescriptionHasBeenSet =
true;
205 m_productDescription = std::forward<ProductDescriptionT>(value);
207 template <
typename ProductDescriptionT = Aws::String>
220 template <
typename OfferingTypeT = Aws::String>
222 m_offeringTypeHasBeenSet =
true;
223 m_offeringType = std::forward<OfferingTypeT>(value);
225 template <
typename OfferingTypeT = Aws::String>
239 m_multiAZHasBeenSet =
true;
254 template <
typename StateT = Aws::String>
256 m_stateHasBeenSet =
true;
257 m_state = std::forward<StateT>(value);
259 template <
typename StateT = Aws::String>
261 SetState(std::forward<StateT>(value));
272 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
274 m_recurringChargesHasBeenSet =
true;
275 m_recurringCharges = std::forward<RecurringChargesT>(value);
277 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
282 template <
typename RecurringChargesT = RecurringCharge>
284 m_recurringChargesHasBeenSet =
true;
285 m_recurringCharges.emplace_back(std::forward<RecurringChargesT>(value));
296 template <
typename ReservedDBInstanceArnT = Aws::String>
298 m_reservedDBInstanceArnHasBeenSet =
true;
299 m_reservedDBInstanceArn = std::forward<ReservedDBInstanceArnT>(value);
301 template <
typename ReservedDBInstanceArnT = Aws::String>
316 template <
typename LeaseIdT = Aws::String>
318 m_leaseIdHasBeenSet =
true;
319 m_leaseId = std::forward<LeaseIdT>(value);
321 template <
typename LeaseIdT = Aws::String>
338 double m_fixedPrice{0.0};
340 double m_usagePrice{0.0};
344 int m_dBInstanceCount{0};
350 bool m_multiAZ{
false};
359 bool m_reservedDBInstanceIdHasBeenSet =
false;
360 bool m_reservedDBInstancesOfferingIdHasBeenSet =
false;
361 bool m_dBInstanceClassHasBeenSet =
false;
362 bool m_startTimeHasBeenSet =
false;
363 bool m_durationHasBeenSet =
false;
364 bool m_fixedPriceHasBeenSet =
false;
365 bool m_usagePriceHasBeenSet =
false;
366 bool m_currencyCodeHasBeenSet =
false;
367 bool m_dBInstanceCountHasBeenSet =
false;
368 bool m_productDescriptionHasBeenSet =
false;
369 bool m_offeringTypeHasBeenSet =
false;
370 bool m_multiAZHasBeenSet =
false;
371 bool m_stateHasBeenSet =
false;
372 bool m_recurringChargesHasBeenSet =
false;
373 bool m_reservedDBInstanceArnHasBeenSet =
false;
374 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