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

A number that represents the monetary amount for an offering or * transaction.

See Also:

AWS * API Reference

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

The numerical amount of an offering or transaction.

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

The numerical amount of an offering or transaction.

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

The numerical amount of an offering or transaction.

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

The numerical amount of an offering or transaction.

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

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline const CurrencyCode& GetCurrencyCode() const{ return m_currencyCode; } /** *

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline void SetCurrencyCode(const CurrencyCode& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** *

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline void SetCurrencyCode(CurrencyCode&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** *

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline MonetaryAmount& WithCurrencyCode(const CurrencyCode& value) { SetCurrencyCode(value); return *this;} /** *

The currency code of a monetary amount. For example, USD means * U.S. dollars.

*/ inline MonetaryAmount& WithCurrencyCode(CurrencyCode&& value) { SetCurrencyCode(std::move(value)); return *this;} private: double m_amount; bool m_amountHasBeenSet = false; CurrencyCode m_currencyCode; bool m_currencyCodeHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws