AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContactDetail.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/ContactType.h>
10#include <aws/route53domains/model/CountryCode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53domains/model/ExtraParam.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Route53Domains
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ROUTE53DOMAINS_API ContactDetail();
39 AWS_ROUTE53DOMAINS_API ContactDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53DOMAINS_API ContactDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFirstName() const{ return m_firstName; }
49 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
50 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
51 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
52 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
53 inline ContactDetail& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
54 inline ContactDetail& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
55 inline ContactDetail& WithFirstName(const char* value) { SetFirstName(value); return *this;}
57
59
62 inline const Aws::String& GetLastName() const{ return m_lastName; }
63 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
64 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
65 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
66 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
67 inline ContactDetail& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
68 inline ContactDetail& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
69 inline ContactDetail& WithLastName(const char* value) { SetLastName(value); return *this;}
71
73
86 inline const ContactType& GetContactType() const{ return m_contactType; }
87 inline bool ContactTypeHasBeenSet() const { return m_contactTypeHasBeenSet; }
88 inline void SetContactType(const ContactType& value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
89 inline void SetContactType(ContactType&& value) { m_contactTypeHasBeenSet = true; m_contactType = std::move(value); }
90 inline ContactDetail& WithContactType(const ContactType& value) { SetContactType(value); return *this;}
91 inline ContactDetail& WithContactType(ContactType&& value) { SetContactType(std::move(value)); return *this;}
93
95
99 inline const Aws::String& GetOrganizationName() const{ return m_organizationName; }
100 inline bool OrganizationNameHasBeenSet() const { return m_organizationNameHasBeenSet; }
101 inline void SetOrganizationName(const Aws::String& value) { m_organizationNameHasBeenSet = true; m_organizationName = value; }
102 inline void SetOrganizationName(Aws::String&& value) { m_organizationNameHasBeenSet = true; m_organizationName = std::move(value); }
103 inline void SetOrganizationName(const char* value) { m_organizationNameHasBeenSet = true; m_organizationName.assign(value); }
104 inline ContactDetail& WithOrganizationName(const Aws::String& value) { SetOrganizationName(value); return *this;}
105 inline ContactDetail& WithOrganizationName(Aws::String&& value) { SetOrganizationName(std::move(value)); return *this;}
106 inline ContactDetail& WithOrganizationName(const char* value) { SetOrganizationName(value); return *this;}
108
110
113 inline const Aws::String& GetAddressLine1() const{ return m_addressLine1; }
114 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
115 inline void SetAddressLine1(const Aws::String& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = value; }
116 inline void SetAddressLine1(Aws::String&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::move(value); }
117 inline void SetAddressLine1(const char* value) { m_addressLine1HasBeenSet = true; m_addressLine1.assign(value); }
118 inline ContactDetail& WithAddressLine1(const Aws::String& value) { SetAddressLine1(value); return *this;}
119 inline ContactDetail& WithAddressLine1(Aws::String&& value) { SetAddressLine1(std::move(value)); return *this;}
120 inline ContactDetail& WithAddressLine1(const char* value) { SetAddressLine1(value); return *this;}
122
124
127 inline const Aws::String& GetAddressLine2() const{ return m_addressLine2; }
128 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
129 inline void SetAddressLine2(const Aws::String& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = value; }
130 inline void SetAddressLine2(Aws::String&& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::move(value); }
131 inline void SetAddressLine2(const char* value) { m_addressLine2HasBeenSet = true; m_addressLine2.assign(value); }
132 inline ContactDetail& WithAddressLine2(const Aws::String& value) { SetAddressLine2(value); return *this;}
133 inline ContactDetail& WithAddressLine2(Aws::String&& value) { SetAddressLine2(std::move(value)); return *this;}
134 inline ContactDetail& WithAddressLine2(const char* value) { SetAddressLine2(value); return *this;}
136
138
141 inline const Aws::String& GetCity() const{ return m_city; }
142 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
143 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
144 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
145 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
146 inline ContactDetail& WithCity(const Aws::String& value) { SetCity(value); return *this;}
147 inline ContactDetail& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
148 inline ContactDetail& WithCity(const char* value) { SetCity(value); return *this;}
150
152
155 inline const Aws::String& GetState() const{ return m_state; }
156 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
157 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
158 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
159 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
160 inline ContactDetail& WithState(const Aws::String& value) { SetState(value); return *this;}
161 inline ContactDetail& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
162 inline ContactDetail& WithState(const char* value) { SetState(value); return *this;}
164
166
169 inline const CountryCode& GetCountryCode() const{ return m_countryCode; }
170 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
171 inline void SetCountryCode(const CountryCode& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
172 inline void SetCountryCode(CountryCode&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
173 inline ContactDetail& WithCountryCode(const CountryCode& value) { SetCountryCode(value); return *this;}
174 inline ContactDetail& WithCountryCode(CountryCode&& value) { SetCountryCode(std::move(value)); return *this;}
176
178
181 inline const Aws::String& GetZipCode() const{ return m_zipCode; }
182 inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; }
183 inline void SetZipCode(const Aws::String& value) { m_zipCodeHasBeenSet = true; m_zipCode = value; }
184 inline void SetZipCode(Aws::String&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::move(value); }
185 inline void SetZipCode(const char* value) { m_zipCodeHasBeenSet = true; m_zipCode.assign(value); }
186 inline ContactDetail& WithZipCode(const Aws::String& value) { SetZipCode(value); return *this;}
187 inline ContactDetail& WithZipCode(Aws::String&& value) { SetZipCode(std::move(value)); return *this;}
188 inline ContactDetail& WithZipCode(const char* value) { SetZipCode(value); return *this;}
190
192
198 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
199 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
200 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
201 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
202 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
203 inline ContactDetail& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
204 inline ContactDetail& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
205 inline ContactDetail& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
207
209
212 inline const Aws::String& GetEmail() const{ return m_email; }
213 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
214 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
215 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
216 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
217 inline ContactDetail& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
218 inline ContactDetail& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
219 inline ContactDetail& WithEmail(const char* value) { SetEmail(value); return *this;}
221
223
228 inline const Aws::String& GetFax() const{ return m_fax; }
229 inline bool FaxHasBeenSet() const { return m_faxHasBeenSet; }
230 inline void SetFax(const Aws::String& value) { m_faxHasBeenSet = true; m_fax = value; }
231 inline void SetFax(Aws::String&& value) { m_faxHasBeenSet = true; m_fax = std::move(value); }
232 inline void SetFax(const char* value) { m_faxHasBeenSet = true; m_fax.assign(value); }
233 inline ContactDetail& WithFax(const Aws::String& value) { SetFax(value); return *this;}
234 inline ContactDetail& WithFax(Aws::String&& value) { SetFax(std::move(value)); return *this;}
235 inline ContactDetail& WithFax(const char* value) { SetFax(value); return *this;}
237
239
243 inline const Aws::Vector<ExtraParam>& GetExtraParams() const{ return m_extraParams; }
244 inline bool ExtraParamsHasBeenSet() const { return m_extraParamsHasBeenSet; }
245 inline void SetExtraParams(const Aws::Vector<ExtraParam>& value) { m_extraParamsHasBeenSet = true; m_extraParams = value; }
246 inline void SetExtraParams(Aws::Vector<ExtraParam>&& value) { m_extraParamsHasBeenSet = true; m_extraParams = std::move(value); }
247 inline ContactDetail& WithExtraParams(const Aws::Vector<ExtraParam>& value) { SetExtraParams(value); return *this;}
248 inline ContactDetail& WithExtraParams(Aws::Vector<ExtraParam>&& value) { SetExtraParams(std::move(value)); return *this;}
249 inline ContactDetail& AddExtraParams(const ExtraParam& value) { m_extraParamsHasBeenSet = true; m_extraParams.push_back(value); return *this; }
250 inline ContactDetail& AddExtraParams(ExtraParam&& value) { m_extraParamsHasBeenSet = true; m_extraParams.push_back(std::move(value)); return *this; }
252 private:
253
254 Aws::String m_firstName;
255 bool m_firstNameHasBeenSet = false;
256
257 Aws::String m_lastName;
258 bool m_lastNameHasBeenSet = false;
259
260 ContactType m_contactType;
261 bool m_contactTypeHasBeenSet = false;
262
263 Aws::String m_organizationName;
264 bool m_organizationNameHasBeenSet = false;
265
266 Aws::String m_addressLine1;
267 bool m_addressLine1HasBeenSet = false;
268
269 Aws::String m_addressLine2;
270 bool m_addressLine2HasBeenSet = false;
271
272 Aws::String m_city;
273 bool m_cityHasBeenSet = false;
274
275 Aws::String m_state;
276 bool m_stateHasBeenSet = false;
277
278 CountryCode m_countryCode;
279 bool m_countryCodeHasBeenSet = false;
280
281 Aws::String m_zipCode;
282 bool m_zipCodeHasBeenSet = false;
283
284 Aws::String m_phoneNumber;
285 bool m_phoneNumberHasBeenSet = false;
286
287 Aws::String m_email;
288 bool m_emailHasBeenSet = false;
289
290 Aws::String m_fax;
291 bool m_faxHasBeenSet = false;
292
293 Aws::Vector<ExtraParam> m_extraParams;
294 bool m_extraParamsHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace Route53Domains
299} // namespace Aws
void SetCountryCode(CountryCode &&value)
ContactDetail & WithCity(const Aws::String &value)
void SetZipCode(const Aws::String &value)
ContactDetail & WithLastName(const char *value)
void SetPhoneNumber(Aws::String &&value)
ContactDetail & WithLastName(Aws::String &&value)
void SetAddressLine1(Aws::String &&value)
ContactDetail & WithCountryCode(const CountryCode &value)
const Aws::String & GetEmail() const
ContactDetail & WithEmail(Aws::String &&value)
ContactDetail & WithState(const char *value)
void SetFirstName(const Aws::String &value)
ContactDetail & WithAddressLine2(const char *value)
ContactDetail & WithFax(const char *value)
ContactDetail & WithFax(Aws::String &&value)
const Aws::String & GetFirstName() const
void SetAddressLine1(const Aws::String &value)
ContactDetail & WithLastName(const Aws::String &value)
ContactDetail & WithPhoneNumber(const Aws::String &value)
const Aws::String & GetPhoneNumber() const
ContactDetail & WithExtraParams(const Aws::Vector< ExtraParam > &value)
void SetEmail(const Aws::String &value)
ContactDetail & WithAddressLine1(const Aws::String &value)
const Aws::String & GetOrganizationName() const
ContactDetail & WithFirstName(const Aws::String &value)
const Aws::String & GetLastName() const
void SetAddressLine2(Aws::String &&value)
void SetOrganizationName(Aws::String &&value)
void SetContactType(const ContactType &value)
void SetFax(const Aws::String &value)
void SetOrganizationName(const Aws::String &value)
void SetCountryCode(const CountryCode &value)
const CountryCode & GetCountryCode() const
void SetLastName(Aws::String &&value)
void SetState(const Aws::String &value)
void SetPhoneNumber(const Aws::String &value)
ContactDetail & WithFirstName(const char *value)
ContactDetail & WithZipCode(const char *value)
ContactDetail & WithAddressLine2(const Aws::String &value)
ContactDetail & WithFax(const Aws::String &value)
ContactDetail & WithContactType(const ContactType &value)
void SetContactType(ContactType &&value)
AWS_ROUTE53DOMAINS_API ContactDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCity() const
ContactDetail & WithPhoneNumber(const char *value)
ContactDetail & WithAddressLine2(Aws::String &&value)
void SetLastName(const Aws::String &value)
AWS_ROUTE53DOMAINS_API ContactDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactDetail & WithEmail(const char *value)
const Aws::String & GetAddressLine2() const
ContactDetail & AddExtraParams(ExtraParam &&value)
ContactDetail & WithOrganizationName(const Aws::String &value)
ContactDetail & WithFirstName(Aws::String &&value)
ContactDetail & WithEmail(const Aws::String &value)
AWS_ROUTE53DOMAINS_API ContactDetail()
const Aws::String & GetAddressLine1() const
const Aws::Vector< ExtraParam > & GetExtraParams() const
const Aws::String & GetState() const
void SetExtraParams(const Aws::Vector< ExtraParam > &value)
ContactDetail & AddExtraParams(const ExtraParam &value)
const Aws::String & GetZipCode() const
ContactDetail & WithState(Aws::String &&value)
ContactDetail & WithZipCode(Aws::String &&value)
void SetExtraParams(Aws::Vector< ExtraParam > &&value)
ContactDetail & WithContactType(ContactType &&value)
ContactDetail & WithAddressLine1(const char *value)
void SetFirstName(Aws::String &&value)
ContactDetail & WithOrganizationName(Aws::String &&value)
ContactDetail & WithOrganizationName(const char *value)
ContactDetail & WithPhoneNumber(Aws::String &&value)
ContactDetail & WithCountryCode(CountryCode &&value)
void SetOrganizationName(const char *value)
ContactDetail & WithState(const Aws::String &value)
ContactDetail & WithZipCode(const Aws::String &value)
void SetAddressLine2(const Aws::String &value)
ContactDetail & WithAddressLine1(Aws::String &&value)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
ContactDetail & WithCity(Aws::String &&value)
const ContactType & GetContactType() const
ContactDetail & WithExtraParams(Aws::Vector< ExtraParam > &&value)
void SetCity(const Aws::String &value)
ContactDetail & WithCity(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue