AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PriceWithCurrency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53domains/Route53Domains_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Route53Domains {
20namespace Model {
21
28 public:
29 AWS_ROUTE53DOMAINS_API PriceWithCurrency() = default;
30 AWS_ROUTE53DOMAINS_API PriceWithCurrency(Aws::Utils::Json::JsonView jsonValue);
31 AWS_ROUTE53DOMAINS_API PriceWithCurrency& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetPrice() const { return m_price; }
39 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
40 inline void SetPrice(double value) {
41 m_priceHasBeenSet = true;
42 m_price = value;
43 }
44 inline PriceWithCurrency& WithPrice(double value) {
45 SetPrice(value);
46 return *this;
47 }
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) {
58 m_currencyHasBeenSet = true;
59 m_currency = std::forward<CurrencyT>(value);
60 }
61 template <typename CurrencyT = Aws::String>
62 PriceWithCurrency& WithCurrency(CurrencyT&& value) {
63 SetCurrency(std::forward<CurrencyT>(value));
64 return *this;
65 }
67 private:
68 double m_price{0.0};
69
70 Aws::String m_currency;
71 bool m_priceHasBeenSet = false;
72 bool m_currencyHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Route53Domains
77} // 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