/** * 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 ResilienceHub { namespace Model { /** *

Defines a cost object.

See Also:

AWS * API Reference

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

The cost amount.

*/ inline double GetAmount() const{ return m_amount; } /** *

The cost amount.

*/ inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; } /** *

The cost amount.

*/ inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; } /** *

The cost amount.

*/ inline Cost& WithAmount(double value) { SetAmount(value); return *this;} /** *

The cost currency, for example USD.

*/ inline const Aws::String& GetCurrency() const{ return m_currency; } /** *

The cost currency, for example USD.

*/ inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; } /** *

The cost currency, for example USD.

*/ inline void SetCurrency(const Aws::String& value) { m_currencyHasBeenSet = true; m_currency = value; } /** *

The cost currency, for example USD.

*/ inline void SetCurrency(Aws::String&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); } /** *

The cost currency, for example USD.

*/ inline void SetCurrency(const char* value) { m_currencyHasBeenSet = true; m_currency.assign(value); } /** *

The cost currency, for example USD.

*/ inline Cost& WithCurrency(const Aws::String& value) { SetCurrency(value); return *this;} /** *

The cost currency, for example USD.

*/ inline Cost& WithCurrency(Aws::String&& value) { SetCurrency(std::move(value)); return *this;} /** *

The cost currency, for example USD.

*/ inline Cost& WithCurrency(const char* value) { SetCurrency(value); return *this;} /** *

The cost frequency.

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

The cost frequency.

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

The cost frequency.

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

The cost frequency.

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

The cost frequency.

*/ inline Cost& WithFrequency(const CostFrequency& value) { SetFrequency(value); return *this;} /** *

The cost frequency.

*/ inline Cost& WithFrequency(CostFrequency&& value) { SetFrequency(std::move(value)); return *this;} private: double m_amount; bool m_amountHasBeenSet = false; Aws::String m_currency; bool m_currencyHasBeenSet = false; CostFrequency m_frequency; bool m_frequencyHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws