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

Contains the specific price and frequency of a recurring charges for a * reserved cache node, or for a reserved cache node offering.

See * Also:

AWS * API Reference

*/ class RecurringCharge { public: AWS_ELASTICACHE_API RecurringCharge(); AWS_ELASTICACHE_API RecurringCharge(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API RecurringCharge& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The monetary amount of the recurring charge.

*/ inline double GetRecurringChargeAmount() const{ return m_recurringChargeAmount; } /** *

The monetary amount of the recurring charge.

*/ inline bool RecurringChargeAmountHasBeenSet() const { return m_recurringChargeAmountHasBeenSet; } /** *

The monetary amount of the recurring charge.

*/ inline void SetRecurringChargeAmount(double value) { m_recurringChargeAmountHasBeenSet = true; m_recurringChargeAmount = value; } /** *

The monetary amount of the recurring charge.

*/ inline RecurringCharge& WithRecurringChargeAmount(double value) { SetRecurringChargeAmount(value); return *this;} /** *

The frequency of the recurring charge.

*/ inline const Aws::String& GetRecurringChargeFrequency() const{ return m_recurringChargeFrequency; } /** *

The frequency of the recurring charge.

*/ inline bool RecurringChargeFrequencyHasBeenSet() const { return m_recurringChargeFrequencyHasBeenSet; } /** *

The frequency of the recurring charge.

*/ inline void SetRecurringChargeFrequency(const Aws::String& value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency = value; } /** *

The frequency of the recurring charge.

*/ inline void SetRecurringChargeFrequency(Aws::String&& value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency = std::move(value); } /** *

The frequency of the recurring charge.

*/ inline void SetRecurringChargeFrequency(const char* value) { m_recurringChargeFrequencyHasBeenSet = true; m_recurringChargeFrequency.assign(value); } /** *

The frequency of the recurring charge.

*/ inline RecurringCharge& WithRecurringChargeFrequency(const Aws::String& value) { SetRecurringChargeFrequency(value); return *this;} /** *

The frequency of the recurring charge.

*/ inline RecurringCharge& WithRecurringChargeFrequency(Aws::String&& value) { SetRecurringChargeFrequency(std::move(value)); return *this;} /** *

The frequency of the recurring charge.

*/ inline RecurringCharge& WithRecurringChargeFrequency(const char* value) { SetRecurringChargeFrequency(value); return *this;} private: double m_recurringChargeAmount; bool m_recurringChargeAmountHasBeenSet = false; Aws::String m_recurringChargeFrequency; bool m_recurringChargeFrequencyHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws