AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PriceWithCurrency.h
1
6#pragma once
7#include <aws/route53domains/Route53Domains_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Route53Domains
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ROUTE53DOMAINS_API PriceWithCurrency() = default;
35 AWS_ROUTE53DOMAINS_API PriceWithCurrency(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53DOMAINS_API PriceWithCurrency& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetPrice() const { return m_price; }
45 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
46 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
47 inline PriceWithCurrency& WithPrice(double value) { SetPrice(value); return *this;}
49
51
54 inline const Aws::String& GetCurrency() const { return m_currency; }
55 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
56 template<typename CurrencyT = Aws::String>
57 void SetCurrency(CurrencyT&& value) { m_currencyHasBeenSet = true; m_currency = std::forward<CurrencyT>(value); }
58 template<typename CurrencyT = Aws::String>
59 PriceWithCurrency& WithCurrency(CurrencyT&& value) { SetCurrency(std::forward<CurrencyT>(value)); return *this;}
61 private:
62
63 double m_price{0.0};
64 bool m_priceHasBeenSet = false;
65
66 Aws::String m_currency;
67 bool m_currencyHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Route53Domains
72} // namespace Aws
PriceWithCurrency & WithPrice(double value)
AWS_ROUTE53DOMAINS_API PriceWithCurrency & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
PriceWithCurrency & WithCurrency(CurrencyT &&value)
AWS_ROUTE53DOMAINS_API PriceWithCurrency()=default
AWS_ROUTE53DOMAINS_API PriceWithCurrency(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue