AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterDomainRequest.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/route53domains/model/ContactDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Route53Domains
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ROUTE53DOMAINS_API RegisterDomainRequest();
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 "RegisterDomain"; }
36
37 AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override;
38
39 AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
62 inline const Aws::String& GetDomainName() const{ return m_domainName; }
63 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
64 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
65 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
66 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
67 inline RegisterDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
68 inline RegisterDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
69 inline RegisterDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
71
73
76 inline const Aws::String& GetIdnLangCode() const{ return m_idnLangCode; }
77 inline bool IdnLangCodeHasBeenSet() const { return m_idnLangCodeHasBeenSet; }
78 inline void SetIdnLangCode(const Aws::String& value) { m_idnLangCodeHasBeenSet = true; m_idnLangCode = value; }
79 inline void SetIdnLangCode(Aws::String&& value) { m_idnLangCodeHasBeenSet = true; m_idnLangCode = std::move(value); }
80 inline void SetIdnLangCode(const char* value) { m_idnLangCodeHasBeenSet = true; m_idnLangCode.assign(value); }
81 inline RegisterDomainRequest& WithIdnLangCode(const Aws::String& value) { SetIdnLangCode(value); return *this;}
82 inline RegisterDomainRequest& WithIdnLangCode(Aws::String&& value) { SetIdnLangCode(std::move(value)); return *this;}
83 inline RegisterDomainRequest& WithIdnLangCode(const char* value) { SetIdnLangCode(value); return *this;}
85
87
95 inline int GetDurationInYears() const{ return m_durationInYears; }
96 inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; }
97 inline void SetDurationInYears(int value) { m_durationInYearsHasBeenSet = true; m_durationInYears = value; }
98 inline RegisterDomainRequest& WithDurationInYears(int value) { SetDurationInYears(value); return *this;}
100
102
107 inline bool GetAutoRenew() const{ return m_autoRenew; }
108 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
109 inline void SetAutoRenew(bool value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; }
110 inline RegisterDomainRequest& WithAutoRenew(bool value) { SetAutoRenew(value); return *this;}
112
114
119 inline const ContactDetail& GetAdminContact() const{ return m_adminContact; }
120 inline bool AdminContactHasBeenSet() const { return m_adminContactHasBeenSet; }
121 inline void SetAdminContact(const ContactDetail& value) { m_adminContactHasBeenSet = true; m_adminContact = value; }
122 inline void SetAdminContact(ContactDetail&& value) { m_adminContactHasBeenSet = true; m_adminContact = std::move(value); }
123 inline RegisterDomainRequest& WithAdminContact(const ContactDetail& value) { SetAdminContact(value); return *this;}
124 inline RegisterDomainRequest& WithAdminContact(ContactDetail&& value) { SetAdminContact(std::move(value)); return *this;}
126
128
133 inline const ContactDetail& GetRegistrantContact() const{ return m_registrantContact; }
134 inline bool RegistrantContactHasBeenSet() const { return m_registrantContactHasBeenSet; }
135 inline void SetRegistrantContact(const ContactDetail& value) { m_registrantContactHasBeenSet = true; m_registrantContact = value; }
136 inline void SetRegistrantContact(ContactDetail&& value) { m_registrantContactHasBeenSet = true; m_registrantContact = std::move(value); }
138 inline RegisterDomainRequest& WithRegistrantContact(ContactDetail&& value) { SetRegistrantContact(std::move(value)); return *this;}
140
142
147 inline const ContactDetail& GetTechContact() const{ return m_techContact; }
148 inline bool TechContactHasBeenSet() const { return m_techContactHasBeenSet; }
149 inline void SetTechContact(const ContactDetail& value) { m_techContactHasBeenSet = true; m_techContact = value; }
150 inline void SetTechContact(ContactDetail&& value) { m_techContactHasBeenSet = true; m_techContact = std::move(value); }
151 inline RegisterDomainRequest& WithTechContact(const ContactDetail& value) { SetTechContact(value); return *this;}
152 inline RegisterDomainRequest& WithTechContact(ContactDetail&& value) { SetTechContact(std::move(value)); return *this;}
154
156
165 inline bool GetPrivacyProtectAdminContact() const{ return m_privacyProtectAdminContact; }
166 inline bool PrivacyProtectAdminContactHasBeenSet() const { return m_privacyProtectAdminContactHasBeenSet; }
167 inline void SetPrivacyProtectAdminContact(bool value) { m_privacyProtectAdminContactHasBeenSet = true; m_privacyProtectAdminContact = value; }
170
172
181 inline bool GetPrivacyProtectRegistrantContact() const{ return m_privacyProtectRegistrantContact; }
182 inline bool PrivacyProtectRegistrantContactHasBeenSet() const { return m_privacyProtectRegistrantContactHasBeenSet; }
183 inline void SetPrivacyProtectRegistrantContact(bool value) { m_privacyProtectRegistrantContactHasBeenSet = true; m_privacyProtectRegistrantContact = value; }
186
188
197 inline bool GetPrivacyProtectTechContact() const{ return m_privacyProtectTechContact; }
198 inline bool PrivacyProtectTechContactHasBeenSet() const { return m_privacyProtectTechContactHasBeenSet; }
199 inline void SetPrivacyProtectTechContact(bool value) { m_privacyProtectTechContactHasBeenSet = true; m_privacyProtectTechContact = value; }
202
204
209 inline const ContactDetail& GetBillingContact() const{ return m_billingContact; }
210 inline bool BillingContactHasBeenSet() const { return m_billingContactHasBeenSet; }
211 inline void SetBillingContact(const ContactDetail& value) { m_billingContactHasBeenSet = true; m_billingContact = value; }
212 inline void SetBillingContact(ContactDetail&& value) { m_billingContactHasBeenSet = true; m_billingContact = std::move(value); }
213 inline RegisterDomainRequest& WithBillingContact(const ContactDetail& value) { SetBillingContact(value); return *this;}
214 inline RegisterDomainRequest& WithBillingContact(ContactDetail&& value) { SetBillingContact(std::move(value)); return *this;}
216
218
227 inline bool GetPrivacyProtectBillingContact() const{ return m_privacyProtectBillingContact; }
228 inline bool PrivacyProtectBillingContactHasBeenSet() const { return m_privacyProtectBillingContactHasBeenSet; }
229 inline void SetPrivacyProtectBillingContact(bool value) { m_privacyProtectBillingContactHasBeenSet = true; m_privacyProtectBillingContact = value; }
232 private:
233
234 Aws::String m_domainName;
235 bool m_domainNameHasBeenSet = false;
236
237 Aws::String m_idnLangCode;
238 bool m_idnLangCodeHasBeenSet = false;
239
240 int m_durationInYears;
241 bool m_durationInYearsHasBeenSet = false;
242
243 bool m_autoRenew;
244 bool m_autoRenewHasBeenSet = false;
245
246 ContactDetail m_adminContact;
247 bool m_adminContactHasBeenSet = false;
248
249 ContactDetail m_registrantContact;
250 bool m_registrantContactHasBeenSet = false;
251
252 ContactDetail m_techContact;
253 bool m_techContactHasBeenSet = false;
254
255 bool m_privacyProtectAdminContact;
256 bool m_privacyProtectAdminContactHasBeenSet = false;
257
258 bool m_privacyProtectRegistrantContact;
259 bool m_privacyProtectRegistrantContactHasBeenSet = false;
260
261 bool m_privacyProtectTechContact;
262 bool m_privacyProtectTechContactHasBeenSet = false;
263
264 ContactDetail m_billingContact;
265 bool m_billingContactHasBeenSet = false;
266
267 bool m_privacyProtectBillingContact;
268 bool m_privacyProtectBillingContactHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace Route53Domains
273} // namespace Aws
RegisterDomainRequest & WithPrivacyProtectRegistrantContact(bool value)
RegisterDomainRequest & WithPrivacyProtectTechContact(bool value)
RegisterDomainRequest & WithTechContact(ContactDetail &&value)
RegisterDomainRequest & WithDurationInYears(int value)
RegisterDomainRequest & WithBillingContact(ContactDetail &&value)
RegisterDomainRequest & WithPrivacyProtectBillingContact(bool value)
RegisterDomainRequest & WithIdnLangCode(const Aws::String &value)
RegisterDomainRequest & WithTechContact(const ContactDetail &value)
RegisterDomainRequest & WithRegistrantContact(ContactDetail &&value)
AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterDomainRequest & WithAdminContact(const ContactDetail &value)
RegisterDomainRequest & WithDomainName(Aws::String &&value)
RegisterDomainRequest & WithDomainName(const Aws::String &value)
AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override
RegisterDomainRequest & WithPrivacyProtectAdminContact(bool value)
RegisterDomainRequest & WithIdnLangCode(Aws::String &&value)
RegisterDomainRequest & WithAdminContact(ContactDetail &&value)
RegisterDomainRequest & WithDomainName(const char *value)
RegisterDomainRequest & WithIdnLangCode(const char *value)
virtual const char * GetServiceRequestName() const override
RegisterDomainRequest & WithBillingContact(const ContactDetail &value)
RegisterDomainRequest & WithRegistrantContact(const ContactDetail &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String