/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

This data type is used as a response element in the * DescribeReservedDBInstancesOfferings action.

See * Also:

AWS * API Reference

*/ class ReservedDBInstancesOffering { public: AWS_RDS_API ReservedDBInstancesOffering(); AWS_RDS_API ReservedDBInstancesOffering(const Aws::Utils::Xml::XmlNode& xmlNode); 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; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The offering identifier.

*/ inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; } /** *

The offering identifier.

*/ inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; } /** *

The offering identifier.

*/ inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; } /** *

The offering identifier.

*/ inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); } /** *

The offering identifier.

*/ inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); } /** *

The offering identifier.

*/ inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(const Aws::String& value) { SetReservedDBInstancesOfferingId(value); return *this;} /** *

The offering identifier.

*/ inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(Aws::String&& value) { SetReservedDBInstancesOfferingId(std::move(value)); return *this;} /** *

The offering identifier.

*/ inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(const char* value) { SetReservedDBInstancesOfferingId(value); return *this;} /** *

The DB instance class for the reserved DB instance.

*/ inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; } /** *

The DB instance class for the reserved DB instance.

*/ inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; } /** *

The DB instance class for the reserved DB instance.

*/ inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; } /** *

The DB instance class for the reserved DB instance.

*/ inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); } /** *

The DB instance class for the reserved DB instance.

*/ inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); } /** *

The DB instance class for the reserved DB instance.

*/ inline ReservedDBInstancesOffering& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;} /** *

The DB instance class for the reserved DB instance.

*/ inline ReservedDBInstancesOffering& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;} /** *

The DB instance class for the reserved DB instance.

*/ inline ReservedDBInstancesOffering& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;} /** *

The duration of the offering in seconds.

*/ inline int GetDuration() const{ return m_duration; } /** *

The duration of the offering in seconds.

*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *

The duration of the offering in seconds.

*/ inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } /** *

The duration of the offering in seconds.

*/ inline ReservedDBInstancesOffering& WithDuration(int value) { SetDuration(value); return *this;} /** *

The fixed price charged for this offering.

*/ inline double GetFixedPrice() const{ return m_fixedPrice; } /** *

The fixed price charged for this offering.

*/ inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; } /** *

The fixed price charged for this offering.

*/ inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; } /** *

The fixed price charged for this offering.

*/ inline ReservedDBInstancesOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;} /** *

The hourly price charged for this offering.

*/ inline double GetUsagePrice() const{ return m_usagePrice; } /** *

The hourly price charged for this offering.

*/ inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; } /** *

The hourly price charged for this offering.

*/ inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; } /** *

The hourly price charged for this offering.

*/ inline ReservedDBInstancesOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;} /** *

The currency code for the reserved DB instance offering.

*/ inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; } /** *

The currency code for the reserved DB instance offering.

*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *

The currency code for the reserved DB instance offering.

*/ inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** *

The currency code for the reserved DB instance offering.

*/ inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** *

The currency code for the reserved DB instance offering.

*/ inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); } /** *

The currency code for the reserved DB instance offering.

*/ inline ReservedDBInstancesOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;} /** *

The currency code for the reserved DB instance offering.

*/ inline ReservedDBInstancesOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *

The currency code for the reserved DB instance offering.

*/ inline ReservedDBInstancesOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;} /** *

The database engine used by the offering.

*/ inline const Aws::String& GetProductDescription() const{ return m_productDescription; } /** *

The database engine used by the offering.

*/ inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; } /** *

The database engine used by the offering.

*/ inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; } /** *

The database engine used by the offering.

*/ inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); } /** *

The database engine used by the offering.

*/ inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); } /** *

The database engine used by the offering.

*/ inline ReservedDBInstancesOffering& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;} /** *

The database engine used by the offering.

*/ inline ReservedDBInstancesOffering& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;} /** *

The database engine used by the offering.

*/ inline ReservedDBInstancesOffering& WithProductDescription(const char* value) { SetProductDescription(value); return *this;} /** *

The offering type.

*/ inline const Aws::String& GetOfferingType() const{ return m_offeringType; } /** *

The offering type.

*/ inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; } /** *

The offering type.

*/ inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; } /** *

The offering type.

*/ inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); } /** *

The offering type.

*/ inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); } /** *

The offering type.

*/ inline ReservedDBInstancesOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;} /** *

The offering type.

*/ inline ReservedDBInstancesOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;} /** *

The offering type.

*/ inline ReservedDBInstancesOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;} /** *

Indicates if the offering applies to Multi-AZ deployments.

*/ inline bool GetMultiAZ() const{ return m_multiAZ; } /** *

Indicates if the offering applies to Multi-AZ deployments.

*/ inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; } /** *

Indicates if the offering applies to Multi-AZ deployments.

*/ inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; } /** *

Indicates if the offering applies to Multi-AZ deployments.

*/ inline ReservedDBInstancesOffering& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;} /** *

The recurring price charged to run this reserved DB instance.

*/ inline const Aws::Vector& GetRecurringCharges() const{ return m_recurringCharges; } /** *

The recurring price charged to run this reserved DB instance.

*/ inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; } /** *

The recurring price charged to run this reserved DB instance.

*/ inline void SetRecurringCharges(const Aws::Vector& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; } /** *

The recurring price charged to run this reserved DB instance.

*/ inline void SetRecurringCharges(Aws::Vector&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); } /** *

The recurring price charged to run this reserved DB instance.

*/ inline ReservedDBInstancesOffering& WithRecurringCharges(const Aws::Vector& value) { SetRecurringCharges(value); return *this;} /** *

The recurring price charged to run this reserved DB instance.

*/ inline ReservedDBInstancesOffering& WithRecurringCharges(Aws::Vector&& value) { SetRecurringCharges(std::move(value)); return *this;} /** *

The recurring price charged to run this reserved DB instance.

*/ inline ReservedDBInstancesOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; } /** *

The recurring price charged to run this reserved DB instance.

*/ inline ReservedDBInstancesOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; } private: Aws::String m_reservedDBInstancesOfferingId; bool m_reservedDBInstancesOfferingIdHasBeenSet = false; Aws::String m_dBInstanceClass; bool m_dBInstanceClassHasBeenSet = false; int m_duration; bool m_durationHasBeenSet = false; double m_fixedPrice; bool m_fixedPriceHasBeenSet = false; double m_usagePrice; bool m_usagePriceHasBeenSet = false; Aws::String m_currencyCode; bool m_currencyCodeHasBeenSet = false; Aws::String m_productDescription; bool m_productDescriptionHasBeenSet = false; Aws::String m_offeringType; bool m_offeringTypeHasBeenSet = false; bool m_multiAZ; bool m_multiAZHasBeenSet = false; Aws::Vector m_recurringCharges; bool m_recurringChargesHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws