AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Consent.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
28class Consent {
29 public:
30 AWS_ROUTE53DOMAINS_API Consent() = default;
31 AWS_ROUTE53DOMAINS_API Consent(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ROUTE53DOMAINS_API Consent& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetMaxPrice() const { return m_maxPrice; }
40 inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
41 inline void SetMaxPrice(double value) {
42 m_maxPriceHasBeenSet = true;
43 m_maxPrice = value;
44 }
45 inline Consent& WithMaxPrice(double value) {
46 SetMaxPrice(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetCurrency() const { return m_currency; }
56 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
57 template <typename CurrencyT = Aws::String>
58 void SetCurrency(CurrencyT&& value) {
59 m_currencyHasBeenSet = true;
60 m_currency = std::forward<CurrencyT>(value);
61 }
62 template <typename CurrencyT = Aws::String>
63 Consent& WithCurrency(CurrencyT&& value) {
64 SetCurrency(std::forward<CurrencyT>(value));
65 return *this;
66 }
68 private:
69 double m_maxPrice{0.0};
70
71 Aws::String m_currency;
72 bool m_maxPriceHasBeenSet = false;
73 bool m_currencyHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Route53Domains
78} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue