AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DomainPrice.h
1
6#pragma once
7#include <aws/route53domains/Route53Domains_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53domains/model/PriceWithCurrency.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53Domains
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ROUTE53DOMAINS_API DomainPrice() = default;
37 AWS_ROUTE53DOMAINS_API DomainPrice(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53DOMAINS_API DomainPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DomainPrice& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_registrationPriceHasBeenSet = true; m_registrationPrice = std::forward<RegistrationPriceT>(value); }
62 template<typename RegistrationPriceT = PriceWithCurrency>
63 DomainPrice& WithRegistrationPrice(RegistrationPriceT&& value) { SetRegistrationPrice(std::forward<RegistrationPriceT>(value)); return *this;}
65
67
70 inline const PriceWithCurrency& GetTransferPrice() const { return m_transferPrice; }
71 inline bool TransferPriceHasBeenSet() const { return m_transferPriceHasBeenSet; }
72 template<typename TransferPriceT = PriceWithCurrency>
73 void SetTransferPrice(TransferPriceT&& value) { m_transferPriceHasBeenSet = true; m_transferPrice = std::forward<TransferPriceT>(value); }
74 template<typename TransferPriceT = PriceWithCurrency>
75 DomainPrice& WithTransferPrice(TransferPriceT&& value) { SetTransferPrice(std::forward<TransferPriceT>(value)); return *this;}
77
79
82 inline const PriceWithCurrency& GetRenewalPrice() const { return m_renewalPrice; }
83 inline bool RenewalPriceHasBeenSet() const { return m_renewalPriceHasBeenSet; }
84 template<typename RenewalPriceT = PriceWithCurrency>
85 void SetRenewalPrice(RenewalPriceT&& value) { m_renewalPriceHasBeenSet = true; m_renewalPrice = std::forward<RenewalPriceT>(value); }
86 template<typename RenewalPriceT = PriceWithCurrency>
87 DomainPrice& WithRenewalPrice(RenewalPriceT&& value) { SetRenewalPrice(std::forward<RenewalPriceT>(value)); return *this;}
89
91
94 inline const PriceWithCurrency& GetChangeOwnershipPrice() const { return m_changeOwnershipPrice; }
95 inline bool ChangeOwnershipPriceHasBeenSet() const { return m_changeOwnershipPriceHasBeenSet; }
96 template<typename ChangeOwnershipPriceT = PriceWithCurrency>
97 void SetChangeOwnershipPrice(ChangeOwnershipPriceT&& value) { m_changeOwnershipPriceHasBeenSet = true; m_changeOwnershipPrice = std::forward<ChangeOwnershipPriceT>(value); }
98 template<typename ChangeOwnershipPriceT = PriceWithCurrency>
99 DomainPrice& WithChangeOwnershipPrice(ChangeOwnershipPriceT&& value) { SetChangeOwnershipPrice(std::forward<ChangeOwnershipPriceT>(value)); return *this;}
101
103
106 inline const PriceWithCurrency& GetRestorationPrice() const { return m_restorationPrice; }
107 inline bool RestorationPriceHasBeenSet() const { return m_restorationPriceHasBeenSet; }
108 template<typename RestorationPriceT = PriceWithCurrency>
109 void SetRestorationPrice(RestorationPriceT&& value) { m_restorationPriceHasBeenSet = true; m_restorationPrice = std::forward<RestorationPriceT>(value); }
110 template<typename RestorationPriceT = PriceWithCurrency>
111 DomainPrice& WithRestorationPrice(RestorationPriceT&& value) { SetRestorationPrice(std::forward<RestorationPriceT>(value)); return *this;}
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 PriceWithCurrency m_registrationPrice;
119 bool m_registrationPriceHasBeenSet = false;
120
121 PriceWithCurrency m_transferPrice;
122 bool m_transferPriceHasBeenSet = false;
123
124 PriceWithCurrency m_renewalPrice;
125 bool m_renewalPriceHasBeenSet = false;
126
127 PriceWithCurrency m_changeOwnershipPrice;
128 bool m_changeOwnershipPriceHasBeenSet = false;
129
130 PriceWithCurrency m_restorationPrice;
131 bool m_restorationPriceHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Route53Domains
136} // namespace Aws
void SetRenewalPrice(RenewalPriceT &&value)
Definition DomainPrice.h:85
DomainPrice & WithRegistrationPrice(RegistrationPriceT &&value)
Definition DomainPrice.h:63
DomainPrice & WithTransferPrice(TransferPriceT &&value)
Definition DomainPrice.h:75
const PriceWithCurrency & GetChangeOwnershipPrice() const
Definition DomainPrice.h:94
DomainPrice & WithChangeOwnershipPrice(ChangeOwnershipPriceT &&value)
Definition DomainPrice.h:99
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)
Definition DomainPrice.h:87
DomainPrice & WithRestorationPrice(RestorationPriceT &&value)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition DomainPrice.h:46
void SetRegistrationPrice(RegistrationPriceT &&value)
Definition DomainPrice.h:61
void SetTransferPrice(TransferPriceT &&value)
Definition DomainPrice.h:73
const PriceWithCurrency & GetTransferPrice() const
Definition DomainPrice.h:70
const PriceWithCurrency & GetRegistrationPrice() const
Definition DomainPrice.h:58
DomainPrice & WithName(NameT &&value)
Definition DomainPrice.h:51
void SetChangeOwnershipPrice(ChangeOwnershipPriceT &&value)
Definition DomainPrice.h:97
const PriceWithCurrency & GetRenewalPrice() const
Definition DomainPrice.h:82
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