AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DomainPrice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53domains/Route53Domains_EXPORTS.h>
9#include <aws/route53domains/model/PriceWithCurrency.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Route53Domains {
21namespace Model {
22
30 public:
31 AWS_ROUTE53DOMAINS_API DomainPrice() = default;
32 AWS_ROUTE53DOMAINS_API DomainPrice(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ROUTE53DOMAINS_API DomainPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DomainPrice& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const PriceWithCurrency& GetRegistrationPrice() const { return m_registrationPrice; }
59 inline bool RegistrationPriceHasBeenSet() const { return m_registrationPriceHasBeenSet; }
60 template <typename RegistrationPriceT = PriceWithCurrency>
61 void SetRegistrationPrice(RegistrationPriceT&& value) {
62 m_registrationPriceHasBeenSet = true;
63 m_registrationPrice = std::forward<RegistrationPriceT>(value);
64 }
65 template <typename RegistrationPriceT = PriceWithCurrency>
66 DomainPrice& WithRegistrationPrice(RegistrationPriceT&& value) {
67 SetRegistrationPrice(std::forward<RegistrationPriceT>(value));
68 return *this;
69 }
71
73
76 inline const PriceWithCurrency& GetTransferPrice() const { return m_transferPrice; }
77 inline bool TransferPriceHasBeenSet() const { return m_transferPriceHasBeenSet; }
78 template <typename TransferPriceT = PriceWithCurrency>
79 void SetTransferPrice(TransferPriceT&& value) {
80 m_transferPriceHasBeenSet = true;
81 m_transferPrice = std::forward<TransferPriceT>(value);
82 }
83 template <typename TransferPriceT = PriceWithCurrency>
84 DomainPrice& WithTransferPrice(TransferPriceT&& value) {
85 SetTransferPrice(std::forward<TransferPriceT>(value));
86 return *this;
87 }
89
91
94 inline const PriceWithCurrency& GetRenewalPrice() const { return m_renewalPrice; }
95 inline bool RenewalPriceHasBeenSet() const { return m_renewalPriceHasBeenSet; }
96 template <typename RenewalPriceT = PriceWithCurrency>
97 void SetRenewalPrice(RenewalPriceT&& value) {
98 m_renewalPriceHasBeenSet = true;
99 m_renewalPrice = std::forward<RenewalPriceT>(value);
100 }
101 template <typename RenewalPriceT = PriceWithCurrency>
102 DomainPrice& WithRenewalPrice(RenewalPriceT&& value) {
103 SetRenewalPrice(std::forward<RenewalPriceT>(value));
104 return *this;
105 }
107
109
112 inline const PriceWithCurrency& GetChangeOwnershipPrice() const { return m_changeOwnershipPrice; }
113 inline bool ChangeOwnershipPriceHasBeenSet() const { return m_changeOwnershipPriceHasBeenSet; }
114 template <typename ChangeOwnershipPriceT = PriceWithCurrency>
115 void SetChangeOwnershipPrice(ChangeOwnershipPriceT&& value) {
116 m_changeOwnershipPriceHasBeenSet = true;
117 m_changeOwnershipPrice = std::forward<ChangeOwnershipPriceT>(value);
118 }
119 template <typename ChangeOwnershipPriceT = PriceWithCurrency>
120 DomainPrice& WithChangeOwnershipPrice(ChangeOwnershipPriceT&& value) {
121 SetChangeOwnershipPrice(std::forward<ChangeOwnershipPriceT>(value));
122 return *this;
123 }
125
127
130 inline const PriceWithCurrency& GetRestorationPrice() const { return m_restorationPrice; }
131 inline bool RestorationPriceHasBeenSet() const { return m_restorationPriceHasBeenSet; }
132 template <typename RestorationPriceT = PriceWithCurrency>
133 void SetRestorationPrice(RestorationPriceT&& value) {
134 m_restorationPriceHasBeenSet = true;
135 m_restorationPrice = std::forward<RestorationPriceT>(value);
136 }
137 template <typename RestorationPriceT = PriceWithCurrency>
138 DomainPrice& WithRestorationPrice(RestorationPriceT&& value) {
139 SetRestorationPrice(std::forward<RestorationPriceT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_name;
145
146 PriceWithCurrency m_registrationPrice;
147
148 PriceWithCurrency m_transferPrice;
149
150 PriceWithCurrency m_renewalPrice;
151
152 PriceWithCurrency m_changeOwnershipPrice;
153
154 PriceWithCurrency m_restorationPrice;
155 bool m_nameHasBeenSet = false;
156 bool m_registrationPriceHasBeenSet = false;
157 bool m_transferPriceHasBeenSet = false;
158 bool m_renewalPriceHasBeenSet = false;
159 bool m_changeOwnershipPriceHasBeenSet = false;
160 bool m_restorationPriceHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Route53Domains
165} // namespace Aws
void SetRenewalPrice(RenewalPriceT &&value)
Definition DomainPrice.h:97
DomainPrice & WithRegistrationPrice(RegistrationPriceT &&value)
Definition DomainPrice.h:66
DomainPrice & WithTransferPrice(TransferPriceT &&value)
Definition DomainPrice.h:84
const PriceWithCurrency & GetChangeOwnershipPrice() const
DomainPrice & WithChangeOwnershipPrice(ChangeOwnershipPriceT &&value)
AWS_ROUTE53DOMAINS_API DomainPrice(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53DOMAINS_API DomainPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
const PriceWithCurrency & GetRestorationPrice() const
DomainPrice & WithRenewalPrice(RenewalPriceT &&value)
DomainPrice & WithRestorationPrice(RestorationPriceT &&value)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition DomainPrice.h:40
void SetRegistrationPrice(RegistrationPriceT &&value)
Definition DomainPrice.h:61
void SetTransferPrice(TransferPriceT &&value)
Definition DomainPrice.h:79
const PriceWithCurrency & GetTransferPrice() const
Definition DomainPrice.h:76
const PriceWithCurrency & GetRegistrationPrice() const
Definition DomainPrice.h:58
DomainPrice & WithName(NameT &&value)
Definition DomainPrice.h:48
void SetChangeOwnershipPrice(ChangeOwnershipPriceT &&value)
const PriceWithCurrency & GetRenewalPrice() const
Definition DomainPrice.h:94
void SetRestorationPrice(RestorationPriceT &&value)
AWS_ROUTE53DOMAINS_API DomainPrice()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue