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

Currency-specific price information.

See Also:

AWS * API Reference

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

The price of a domain, in a specific currency.

*/ inline double GetPrice() const{ return m_price; } /** *

The price of a domain, in a specific currency.

*/ inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; } /** *

The price of a domain, in a specific currency.

*/ inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; } /** *

The price of a domain, in a specific currency.

*/ inline PriceWithCurrency& WithPrice(double value) { SetPrice(value); return *this;} /** *

The currency specifier.

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

The currency specifier.

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

The currency specifier.

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

The currency specifier.

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

The currency specifier.

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

The currency specifier.

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

The currency specifier.

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

The currency specifier.

*/ inline PriceWithCurrency& WithCurrency(const char* value) { SetCurrency(value); return *this;} private: double m_price; bool m_priceHasBeenSet = false; Aws::String m_currency; bool m_currencyHasBeenSet = false; }; } // namespace Model } // namespace Route53Domains } // namespace Aws