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

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

See Also:

AWS * API Reference

*/ class RecurringCharge { public: AWS_ELASTICSEARCHSERVICE_API RecurringCharge(); AWS_ELASTICSEARCHSERVICE_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICSEARCHSERVICE_API RecurringCharge& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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 ElasticsearchService } // namespace Aws