This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds/include/aws/rds/model/ReservedDBInstancesOffering.h

411 lines
14 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds/model/RecurringCharge.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace RDS
{
namespace Model
{
/**
* <p> This data type is used as a response element in the
* <code>DescribeReservedDBInstancesOfferings</code> action. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ReservedDBInstancesOffering">AWS
* API Reference</a></p>
*/
class AWS_RDS_API ReservedDBInstancesOffering
{
public:
ReservedDBInstancesOffering();
ReservedDBInstancesOffering(const Aws::Utils::Xml::XmlNode& xmlNode);
ReservedDBInstancesOffering& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The offering identifier.</p>
*/
inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
/**
* <p>The offering identifier.</p>
*/
inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
/**
* <p>The offering identifier.</p>
*/
inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
/**
* <p>The offering identifier.</p>
*/
inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
/**
* <p>The offering identifier.</p>
*/
inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
/**
* <p>The offering identifier.</p>
*/
inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(const Aws::String& value) { SetReservedDBInstancesOfferingId(value); return *this;}
/**
* <p>The offering identifier.</p>
*/
inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(Aws::String&& value) { SetReservedDBInstancesOfferingId(std::move(value)); return *this;}
/**
* <p>The offering identifier.</p>
*/
inline ReservedDBInstancesOffering& WithReservedDBInstancesOfferingId(const char* value) { SetReservedDBInstancesOfferingId(value); return *this;}
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
/**
* <p>The DB instance class for the reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
/**
* <p>The duration of the offering in seconds.</p>
*/
inline int GetDuration() const{ return m_duration; }
/**
* <p>The duration of the offering in seconds.</p>
*/
inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
/**
* <p>The duration of the offering in seconds.</p>
*/
inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
/**
* <p>The duration of the offering in seconds.</p>
*/
inline ReservedDBInstancesOffering& WithDuration(int value) { SetDuration(value); return *this;}
/**
* <p>The fixed price charged for this offering.</p>
*/
inline double GetFixedPrice() const{ return m_fixedPrice; }
/**
* <p>The fixed price charged for this offering.</p>
*/
inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
/**
* <p>The fixed price charged for this offering.</p>
*/
inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
/**
* <p>The fixed price charged for this offering.</p>
*/
inline ReservedDBInstancesOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
/**
* <p>The hourly price charged for this offering.</p>
*/
inline double GetUsagePrice() const{ return m_usagePrice; }
/**
* <p>The hourly price charged for this offering.</p>
*/
inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
/**
* <p>The hourly price charged for this offering.</p>
*/
inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
/**
* <p>The hourly price charged for this offering.</p>
*/
inline ReservedDBInstancesOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline ReservedDBInstancesOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline ReservedDBInstancesOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
/**
* <p>The currency code for the reserved DB instance offering.</p>
*/
inline ReservedDBInstancesOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
/**
* <p>The database engine used by the offering.</p>
*/
inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
/**
* <p>The database engine used by the offering.</p>
*/
inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
/**
* <p>The database engine used by the offering.</p>
*/
inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
/**
* <p>The database engine used by the offering.</p>
*/
inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
/**
* <p>The database engine used by the offering.</p>
*/
inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
/**
* <p>The database engine used by the offering.</p>
*/
inline ReservedDBInstancesOffering& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;}
/**
* <p>The database engine used by the offering.</p>
*/
inline ReservedDBInstancesOffering& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
/**
* <p>The database engine used by the offering.</p>
*/
inline ReservedDBInstancesOffering& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
/**
* <p>The offering type.</p>
*/
inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
/**
* <p>The offering type.</p>
*/
inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
/**
* <p>The offering type.</p>
*/
inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
/**
* <p>The offering type.</p>
*/
inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
/**
* <p>The offering type.</p>
*/
inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
/**
* <p>The offering type.</p>
*/
inline ReservedDBInstancesOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
/**
* <p>The offering type.</p>
*/
inline ReservedDBInstancesOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
/**
* <p>The offering type.</p>
*/
inline ReservedDBInstancesOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
/**
* <p>Indicates if the offering applies to Multi-AZ deployments.</p>
*/
inline bool GetMultiAZ() const{ return m_multiAZ; }
/**
* <p>Indicates if the offering applies to Multi-AZ deployments.</p>
*/
inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
/**
* <p>Indicates if the offering applies to Multi-AZ deployments.</p>
*/
inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
/**
* <p>Indicates if the offering applies to Multi-AZ deployments.</p>
*/
inline ReservedDBInstancesOffering& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& WithRecurringCharges(const Aws::Vector<RecurringCharge>& value) { SetRecurringCharges(value); return *this;}
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& WithRecurringCharges(Aws::Vector<RecurringCharge>&& value) { SetRecurringCharges(std::move(value)); return *this;}
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
inline ReservedDBInstancesOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
/**
* <p>The recurring price charged to run this reserved DB instance.</p>
*/
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;
Aws::String m_dBInstanceClass;
bool m_dBInstanceClassHasBeenSet;
int m_duration;
bool m_durationHasBeenSet;
double m_fixedPrice;
bool m_fixedPriceHasBeenSet;
double m_usagePrice;
bool m_usagePriceHasBeenSet;
Aws::String m_currencyCode;
bool m_currencyCodeHasBeenSet;
Aws::String m_productDescription;
bool m_productDescriptionHasBeenSet;
Aws::String m_offeringType;
bool m_offeringTypeHasBeenSet;
bool m_multiAZ;
bool m_multiAZHasBeenSet;
Aws::Vector<RecurringCharge> m_recurringCharges;
bool m_recurringChargesHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws