/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DeviceFarm { namespace Model { /** *

Specifies whether charges for devices are recurring.

See Also:

* AWS * API Reference

*/ class RecurringCharge { public: AWS_DEVICEFARM_API RecurringCharge(); AWS_DEVICEFARM_API RecurringCharge(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API RecurringCharge& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The cost of the recurring charge.

*/ inline const MonetaryAmount& GetCost() const{ return m_cost; } /** *

The cost of the recurring charge.

*/ inline bool CostHasBeenSet() const { return m_costHasBeenSet; } /** *

The cost of the recurring charge.

*/ inline void SetCost(const MonetaryAmount& value) { m_costHasBeenSet = true; m_cost = value; } /** *

The cost of the recurring charge.

*/ inline void SetCost(MonetaryAmount&& value) { m_costHasBeenSet = true; m_cost = std::move(value); } /** *

The cost of the recurring charge.

*/ inline RecurringCharge& WithCost(const MonetaryAmount& value) { SetCost(value); return *this;} /** *

The cost of the recurring charge.

*/ inline RecurringCharge& WithCost(MonetaryAmount&& value) { SetCost(std::move(value)); return *this;} /** *

The frequency in which charges recur.

*/ inline const RecurringChargeFrequency& GetFrequency() const{ return m_frequency; } /** *

The frequency in which charges recur.

*/ inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } /** *

The frequency in which charges recur.

*/ inline void SetFrequency(const RecurringChargeFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; } /** *

The frequency in which charges recur.

*/ inline void SetFrequency(RecurringChargeFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); } /** *

The frequency in which charges recur.

*/ inline RecurringCharge& WithFrequency(const RecurringChargeFrequency& value) { SetFrequency(value); return *this;} /** *

The frequency in which charges recur.

*/ inline RecurringCharge& WithFrequency(RecurringChargeFrequency&& value) { SetFrequency(std::move(value)); return *this;} private: MonetaryAmount m_cost; bool m_costHasBeenSet = false; RecurringChargeFrequency m_frequency; bool m_frequencyHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws