AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
TransferDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53domains/Route53DomainsRequest.h>
10#include <aws/route53domains/Route53Domains_EXPORTS.h>
11#include <aws/route53domains/model/Consent.h>
12#include <aws/route53domains/model/ContactDetail.h>
13#include <aws/route53domains/model/Nameserver.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Route53Domains {
19namespace Model {
20
28 public:
29 AWS_ROUTE53DOMAINS_API TransferDomainRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "TransferDomain"; }
36
37 AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override;
38
39 AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
55 inline const Aws::String& GetDomainName() const { return m_domainName; }
56 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
57 template <typename DomainNameT = Aws::String>
58 void SetDomainName(DomainNameT&& value) {
59 m_domainNameHasBeenSet = true;
60 m_domainName = std::forward<DomainNameT>(value);
61 }
62 template <typename DomainNameT = Aws::String>
63 TransferDomainRequest& WithDomainName(DomainNameT&& value) {
64 SetDomainName(std::forward<DomainNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetIdnLangCode() const { return m_idnLangCode; }
74 inline bool IdnLangCodeHasBeenSet() const { return m_idnLangCodeHasBeenSet; }
75 template <typename IdnLangCodeT = Aws::String>
76 void SetIdnLangCode(IdnLangCodeT&& value) {
77 m_idnLangCodeHasBeenSet = true;
78 m_idnLangCode = std::forward<IdnLangCodeT>(value);
79 }
80 template <typename IdnLangCodeT = Aws::String>
81 TransferDomainRequest& WithIdnLangCode(IdnLangCodeT&& value) {
82 SetIdnLangCode(std::forward<IdnLangCodeT>(value));
83 return *this;
84 }
86
88
95 inline int GetDurationInYears() const { return m_durationInYears; }
96 inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; }
97 inline void SetDurationInYears(int value) {
98 m_durationInYearsHasBeenSet = true;
99 m_durationInYears = value;
100 }
102 SetDurationInYears(value);
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Nameserver>& GetNameservers() const { return m_nameservers; }
112 inline bool NameserversHasBeenSet() const { return m_nameserversHasBeenSet; }
113 template <typename NameserversT = Aws::Vector<Nameserver>>
114 void SetNameservers(NameserversT&& value) {
115 m_nameserversHasBeenSet = true;
116 m_nameservers = std::forward<NameserversT>(value);
117 }
118 template <typename NameserversT = Aws::Vector<Nameserver>>
119 TransferDomainRequest& WithNameservers(NameserversT&& value) {
120 SetNameservers(std::forward<NameserversT>(value));
121 return *this;
122 }
123 template <typename NameserversT = Nameserver>
124 TransferDomainRequest& AddNameservers(NameserversT&& value) {
125 m_nameserversHasBeenSet = true;
126 m_nameservers.emplace_back(std::forward<NameserversT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetAuthCode() const { return m_authCode; }
137 inline bool AuthCodeHasBeenSet() const { return m_authCodeHasBeenSet; }
138 template <typename AuthCodeT = Aws::String>
139 void SetAuthCode(AuthCodeT&& value) {
140 m_authCodeHasBeenSet = true;
141 m_authCode = std::forward<AuthCodeT>(value);
142 }
143 template <typename AuthCodeT = Aws::String>
145 SetAuthCode(std::forward<AuthCodeT>(value));
146 return *this;
147 }
149
151
156 inline bool GetAutoRenew() const { return m_autoRenew; }
157 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
158 inline void SetAutoRenew(bool value) {
159 m_autoRenewHasBeenSet = true;
160 m_autoRenew = value;
161 }
163 SetAutoRenew(value);
164 return *this;
165 }
167
169
172 inline const ContactDetail& GetAdminContact() const { return m_adminContact; }
173 inline bool AdminContactHasBeenSet() const { return m_adminContactHasBeenSet; }
174 template <typename AdminContactT = ContactDetail>
175 void SetAdminContact(AdminContactT&& value) {
176 m_adminContactHasBeenSet = true;
177 m_adminContact = std::forward<AdminContactT>(value);
178 }
179 template <typename AdminContactT = ContactDetail>
180 TransferDomainRequest& WithAdminContact(AdminContactT&& value) {
181 SetAdminContact(std::forward<AdminContactT>(value));
182 return *this;
183 }
185
187
190 inline const ContactDetail& GetRegistrantContact() const { return m_registrantContact; }
191 inline bool RegistrantContactHasBeenSet() const { return m_registrantContactHasBeenSet; }
192 template <typename RegistrantContactT = ContactDetail>
193 void SetRegistrantContact(RegistrantContactT&& value) {
194 m_registrantContactHasBeenSet = true;
195 m_registrantContact = std::forward<RegistrantContactT>(value);
196 }
197 template <typename RegistrantContactT = ContactDetail>
198 TransferDomainRequest& WithRegistrantContact(RegistrantContactT&& value) {
199 SetRegistrantContact(std::forward<RegistrantContactT>(value));
200 return *this;
201 }
203
205
208 inline const ContactDetail& GetTechContact() const { return m_techContact; }
209 inline bool TechContactHasBeenSet() const { return m_techContactHasBeenSet; }
210 template <typename TechContactT = ContactDetail>
211 void SetTechContact(TechContactT&& value) {
212 m_techContactHasBeenSet = true;
213 m_techContact = std::forward<TechContactT>(value);
214 }
215 template <typename TechContactT = ContactDetail>
216 TransferDomainRequest& WithTechContact(TechContactT&& value) {
217 SetTechContact(std::forward<TechContactT>(value));
218 return *this;
219 }
221
223
231 inline bool GetPrivacyProtectAdminContact() const { return m_privacyProtectAdminContact; }
232 inline bool PrivacyProtectAdminContactHasBeenSet() const { return m_privacyProtectAdminContactHasBeenSet; }
233 inline void SetPrivacyProtectAdminContact(bool value) {
234 m_privacyProtectAdminContactHasBeenSet = true;
235 m_privacyProtectAdminContact = value;
236 }
239 return *this;
240 }
242
244
253 inline bool GetPrivacyProtectRegistrantContact() const { return m_privacyProtectRegistrantContact; }
254 inline bool PrivacyProtectRegistrantContactHasBeenSet() const { return m_privacyProtectRegistrantContactHasBeenSet; }
255 inline void SetPrivacyProtectRegistrantContact(bool value) {
256 m_privacyProtectRegistrantContactHasBeenSet = true;
257 m_privacyProtectRegistrantContact = value;
258 }
261 return *this;
262 }
264
266
275 inline bool GetPrivacyProtectTechContact() const { return m_privacyProtectTechContact; }
276 inline bool PrivacyProtectTechContactHasBeenSet() const { return m_privacyProtectTechContactHasBeenSet; }
277 inline void SetPrivacyProtectTechContact(bool value) {
278 m_privacyProtectTechContactHasBeenSet = true;
279 m_privacyProtectTechContact = value;
280 }
283 return *this;
284 }
286
288
291 inline const ContactDetail& GetBillingContact() const { return m_billingContact; }
292 inline bool BillingContactHasBeenSet() const { return m_billingContactHasBeenSet; }
293 template <typename BillingContactT = ContactDetail>
294 void SetBillingContact(BillingContactT&& value) {
295 m_billingContactHasBeenSet = true;
296 m_billingContact = std::forward<BillingContactT>(value);
297 }
298 template <typename BillingContactT = ContactDetail>
299 TransferDomainRequest& WithBillingContact(BillingContactT&& value) {
300 SetBillingContact(std::forward<BillingContactT>(value));
301 return *this;
302 }
304
306
315 inline bool GetPrivacyProtectBillingContact() const { return m_privacyProtectBillingContact; }
316 inline bool PrivacyProtectBillingContactHasBeenSet() const { return m_privacyProtectBillingContactHasBeenSet; }
317 inline void SetPrivacyProtectBillingContact(bool value) {
318 m_privacyProtectBillingContactHasBeenSet = true;
319 m_privacyProtectBillingContact = value;
320 }
323 return *this;
324 }
326
328
335 inline const Consent& GetConsent() const { return m_consent; }
336 inline bool ConsentHasBeenSet() const { return m_consentHasBeenSet; }
337 template <typename ConsentT = Consent>
338 void SetConsent(ConsentT&& value) {
339 m_consentHasBeenSet = true;
340 m_consent = std::forward<ConsentT>(value);
341 }
342 template <typename ConsentT = Consent>
344 SetConsent(std::forward<ConsentT>(value));
345 return *this;
346 }
348 private:
349 Aws::String m_domainName;
350
351 Aws::String m_idnLangCode;
352
353 int m_durationInYears{0};
354
355 Aws::Vector<Nameserver> m_nameservers;
356
357 Aws::String m_authCode;
358
359 bool m_autoRenew{false};
360
361 ContactDetail m_adminContact;
362
363 ContactDetail m_registrantContact;
364
365 ContactDetail m_techContact;
366
367 bool m_privacyProtectAdminContact{false};
368
369 bool m_privacyProtectRegistrantContact{false};
370
371 bool m_privacyProtectTechContact{false};
372
373 ContactDetail m_billingContact;
374
375 bool m_privacyProtectBillingContact{false};
376
377 Consent m_consent;
378 bool m_domainNameHasBeenSet = false;
379 bool m_idnLangCodeHasBeenSet = false;
380 bool m_durationInYearsHasBeenSet = false;
381 bool m_nameserversHasBeenSet = false;
382 bool m_authCodeHasBeenSet = false;
383 bool m_autoRenewHasBeenSet = false;
384 bool m_adminContactHasBeenSet = false;
385 bool m_registrantContactHasBeenSet = false;
386 bool m_techContactHasBeenSet = false;
387 bool m_privacyProtectAdminContactHasBeenSet = false;
388 bool m_privacyProtectRegistrantContactHasBeenSet = false;
389 bool m_privacyProtectTechContactHasBeenSet = false;
390 bool m_billingContactHasBeenSet = false;
391 bool m_privacyProtectBillingContactHasBeenSet = false;
392 bool m_consentHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace Route53Domains
397} // 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)
TransferDomainRequest & WithConsent(ConsentT &&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