AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransferDomainRequest.h
1
6#pragma once
7#include <aws/route53domains/Route53Domains_EXPORTS.h>
8#include <aws/route53domains/Route53DomainsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53domains/model/ContactDetail.h>
12#include <aws/route53domains/model/Nameserver.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Route53Domains
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_ROUTE53DOMAINS_API TransferDomainRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "TransferDomain"; }
38
39 AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override;
40
41 AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
58 inline const Aws::String& GetDomainName() const { return m_domainName; }
59 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
60 template<typename DomainNameT = Aws::String>
61 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
62 template<typename DomainNameT = Aws::String>
63 TransferDomainRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIdnLangCode() const { return m_idnLangCode; }
71 inline bool IdnLangCodeHasBeenSet() const { return m_idnLangCodeHasBeenSet; }
72 template<typename IdnLangCodeT = Aws::String>
73 void SetIdnLangCode(IdnLangCodeT&& value) { m_idnLangCodeHasBeenSet = true; m_idnLangCode = std::forward<IdnLangCodeT>(value); }
74 template<typename IdnLangCodeT = Aws::String>
75 TransferDomainRequest& WithIdnLangCode(IdnLangCodeT&& value) { SetIdnLangCode(std::forward<IdnLangCodeT>(value)); return *this;}
77
79
84 inline int GetDurationInYears() const { return m_durationInYears; }
85 inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; }
86 inline void SetDurationInYears(int value) { m_durationInYearsHasBeenSet = true; m_durationInYears = value; }
87 inline TransferDomainRequest& WithDurationInYears(int value) { SetDurationInYears(value); return *this;}
89
91
94 inline const Aws::Vector<Nameserver>& GetNameservers() const { return m_nameservers; }
95 inline bool NameserversHasBeenSet() const { return m_nameserversHasBeenSet; }
96 template<typename NameserversT = Aws::Vector<Nameserver>>
97 void SetNameservers(NameserversT&& value) { m_nameserversHasBeenSet = true; m_nameservers = std::forward<NameserversT>(value); }
98 template<typename NameserversT = Aws::Vector<Nameserver>>
99 TransferDomainRequest& WithNameservers(NameserversT&& value) { SetNameservers(std::forward<NameserversT>(value)); return *this;}
100 template<typename NameserversT = Nameserver>
101 TransferDomainRequest& AddNameservers(NameserversT&& value) { m_nameserversHasBeenSet = true; m_nameservers.emplace_back(std::forward<NameserversT>(value)); return *this; }
103
105
109 inline const Aws::String& GetAuthCode() const { return m_authCode; }
110 inline bool AuthCodeHasBeenSet() const { return m_authCodeHasBeenSet; }
111 template<typename AuthCodeT = Aws::String>
112 void SetAuthCode(AuthCodeT&& value) { m_authCodeHasBeenSet = true; m_authCode = std::forward<AuthCodeT>(value); }
113 template<typename AuthCodeT = Aws::String>
114 TransferDomainRequest& WithAuthCode(AuthCodeT&& value) { SetAuthCode(std::forward<AuthCodeT>(value)); return *this;}
116
118
123 inline bool GetAutoRenew() const { return m_autoRenew; }
124 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
125 inline void SetAutoRenew(bool value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; }
126 inline TransferDomainRequest& WithAutoRenew(bool value) { SetAutoRenew(value); return *this;}
128
130
133 inline const ContactDetail& GetAdminContact() const { return m_adminContact; }
134 inline bool AdminContactHasBeenSet() const { return m_adminContactHasBeenSet; }
135 template<typename AdminContactT = ContactDetail>
136 void SetAdminContact(AdminContactT&& value) { m_adminContactHasBeenSet = true; m_adminContact = std::forward<AdminContactT>(value); }
137 template<typename AdminContactT = ContactDetail>
138 TransferDomainRequest& WithAdminContact(AdminContactT&& value) { SetAdminContact(std::forward<AdminContactT>(value)); return *this;}
140
142
145 inline const ContactDetail& GetRegistrantContact() const { return m_registrantContact; }
146 inline bool RegistrantContactHasBeenSet() const { return m_registrantContactHasBeenSet; }
147 template<typename RegistrantContactT = ContactDetail>
148 void SetRegistrantContact(RegistrantContactT&& value) { m_registrantContactHasBeenSet = true; m_registrantContact = std::forward<RegistrantContactT>(value); }
149 template<typename RegistrantContactT = ContactDetail>
150 TransferDomainRequest& WithRegistrantContact(RegistrantContactT&& value) { SetRegistrantContact(std::forward<RegistrantContactT>(value)); return *this;}
152
154
157 inline const ContactDetail& GetTechContact() const { return m_techContact; }
158 inline bool TechContactHasBeenSet() const { return m_techContactHasBeenSet; }
159 template<typename TechContactT = ContactDetail>
160 void SetTechContact(TechContactT&& value) { m_techContactHasBeenSet = true; m_techContact = std::forward<TechContactT>(value); }
161 template<typename TechContactT = ContactDetail>
162 TransferDomainRequest& WithTechContact(TechContactT&& value) { SetTechContact(std::forward<TechContactT>(value)); return *this;}
164
166
174 inline bool GetPrivacyProtectAdminContact() const { return m_privacyProtectAdminContact; }
175 inline bool PrivacyProtectAdminContactHasBeenSet() const { return m_privacyProtectAdminContactHasBeenSet; }
176 inline void SetPrivacyProtectAdminContact(bool value) { m_privacyProtectAdminContactHasBeenSet = true; m_privacyProtectAdminContact = value; }
179
181
190 inline bool GetPrivacyProtectRegistrantContact() const { return m_privacyProtectRegistrantContact; }
191 inline bool PrivacyProtectRegistrantContactHasBeenSet() const { return m_privacyProtectRegistrantContactHasBeenSet; }
192 inline void SetPrivacyProtectRegistrantContact(bool value) { m_privacyProtectRegistrantContactHasBeenSet = true; m_privacyProtectRegistrantContact = value; }
195
197
206 inline bool GetPrivacyProtectTechContact() const { return m_privacyProtectTechContact; }
207 inline bool PrivacyProtectTechContactHasBeenSet() const { return m_privacyProtectTechContactHasBeenSet; }
208 inline void SetPrivacyProtectTechContact(bool value) { m_privacyProtectTechContactHasBeenSet = true; m_privacyProtectTechContact = value; }
211
213
216 inline const ContactDetail& GetBillingContact() const { return m_billingContact; }
217 inline bool BillingContactHasBeenSet() const { return m_billingContactHasBeenSet; }
218 template<typename BillingContactT = ContactDetail>
219 void SetBillingContact(BillingContactT&& value) { m_billingContactHasBeenSet = true; m_billingContact = std::forward<BillingContactT>(value); }
220 template<typename BillingContactT = ContactDetail>
221 TransferDomainRequest& WithBillingContact(BillingContactT&& value) { SetBillingContact(std::forward<BillingContactT>(value)); return *this;}
223
225
234 inline bool GetPrivacyProtectBillingContact() const { return m_privacyProtectBillingContact; }
235 inline bool PrivacyProtectBillingContactHasBeenSet() const { return m_privacyProtectBillingContactHasBeenSet; }
236 inline void SetPrivacyProtectBillingContact(bool value) { m_privacyProtectBillingContactHasBeenSet = true; m_privacyProtectBillingContact = value; }
239 private:
240
241 Aws::String m_domainName;
242 bool m_domainNameHasBeenSet = false;
243
244 Aws::String m_idnLangCode;
245 bool m_idnLangCodeHasBeenSet = false;
246
247 int m_durationInYears{0};
248 bool m_durationInYearsHasBeenSet = false;
249
250 Aws::Vector<Nameserver> m_nameservers;
251 bool m_nameserversHasBeenSet = false;
252
253 Aws::String m_authCode;
254 bool m_authCodeHasBeenSet = false;
255
256 bool m_autoRenew{false};
257 bool m_autoRenewHasBeenSet = false;
258
259 ContactDetail m_adminContact;
260 bool m_adminContactHasBeenSet = false;
261
262 ContactDetail m_registrantContact;
263 bool m_registrantContactHasBeenSet = false;
264
265 ContactDetail m_techContact;
266 bool m_techContactHasBeenSet = false;
267
268 bool m_privacyProtectAdminContact{false};
269 bool m_privacyProtectAdminContactHasBeenSet = false;
270
271 bool m_privacyProtectRegistrantContact{false};
272 bool m_privacyProtectRegistrantContactHasBeenSet = false;
273
274 bool m_privacyProtectTechContact{false};
275 bool m_privacyProtectTechContactHasBeenSet = false;
276
277 ContactDetail m_billingContact;
278 bool m_billingContactHasBeenSet = false;
279
280 bool m_privacyProtectBillingContact{false};
281 bool m_privacyProtectBillingContactHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace Route53Domains
286} // namespace Aws
TransferDomainRequest & WithPrivacyProtectTechContact(bool value)
AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override
TransferDomainRequest & WithDomainName(DomainNameT &&value)
TransferDomainRequest & WithTechContact(TechContactT &&value)
TransferDomainRequest & AddNameservers(NameserversT &&value)
TransferDomainRequest & WithBillingContact(BillingContactT &&value)
virtual const char * GetServiceRequestName() const override
TransferDomainRequest & WithAdminContact(AdminContactT &&value)
TransferDomainRequest & WithPrivacyProtectBillingContact(bool value)
TransferDomainRequest & WithNameservers(NameserversT &&value)
AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TransferDomainRequest & WithRegistrantContact(RegistrantContactT &&value)
TransferDomainRequest & WithPrivacyProtectAdminContact(bool value)
TransferDomainRequest & WithPrivacyProtectRegistrantContact(bool value)
AWS_ROUTE53DOMAINS_API TransferDomainRequest()=default
TransferDomainRequest & WithIdnLangCode(IdnLangCodeT &&value)
TransferDomainRequest & WithDurationInYears(int value)
const Aws::Vector< Nameserver > & GetNameservers() const
TransferDomainRequest & WithAuthCode(AuthCodeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector