AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename FirstNameT = Aws::String>
51 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
52 template<typename FirstNameT = Aws::String>
53 ContactDetail& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLastName() const { return m_lastName; }
61 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
62 template<typename LastNameT = Aws::String>
63 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
64 template<typename LastNameT = Aws::String>
65 ContactDetail& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
67
69
82 inline ContactType GetContactType() const { return m_contactType; }
83 inline bool ContactTypeHasBeenSet() const { return m_contactTypeHasBeenSet; }
84 inline void SetContactType(ContactType value) { m_contactTypeHasBeenSet = true; m_contactType = value; }
85 inline ContactDetail& WithContactType(ContactType value) { SetContactType(value); return *this;}
87
89
93 inline const Aws::String& GetOrganizationName() const { return m_organizationName; }
94 inline bool OrganizationNameHasBeenSet() const { return m_organizationNameHasBeenSet; }
95 template<typename OrganizationNameT = Aws::String>
96 void SetOrganizationName(OrganizationNameT&& value) { m_organizationNameHasBeenSet = true; m_organizationName = std::forward<OrganizationNameT>(value); }
97 template<typename OrganizationNameT = Aws::String>
98 ContactDetail& WithOrganizationName(OrganizationNameT&& value) { SetOrganizationName(std::forward<OrganizationNameT>(value)); return *this;}
100
102
105 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
106 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
107 template<typename AddressLine1T = Aws::String>
108 void SetAddressLine1(AddressLine1T&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::forward<AddressLine1T>(value); }
109 template<typename AddressLine1T = Aws::String>
110 ContactDetail& WithAddressLine1(AddressLine1T&& value) { SetAddressLine1(std::forward<AddressLine1T>(value)); return *this;}
112
114
117 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
118 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
119 template<typename AddressLine2T = Aws::String>
120 void SetAddressLine2(AddressLine2T&& value) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::forward<AddressLine2T>(value); }
121 template<typename AddressLine2T = Aws::String>
122 ContactDetail& WithAddressLine2(AddressLine2T&& value) { SetAddressLine2(std::forward<AddressLine2T>(value)); return *this;}
124
126
129 inline const Aws::String& GetCity() const { return m_city; }
130 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
131 template<typename CityT = Aws::String>
132 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
133 template<typename CityT = Aws::String>
134 ContactDetail& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
136
138
141 inline const Aws::String& GetState() const { return m_state; }
142 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
143 template<typename StateT = Aws::String>
144 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
145 template<typename StateT = Aws::String>
146 ContactDetail& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
148
150
153 inline CountryCode GetCountryCode() const { return m_countryCode; }
154 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
155 inline void SetCountryCode(CountryCode value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
156 inline ContactDetail& WithCountryCode(CountryCode value) { SetCountryCode(value); return *this;}
158
160
163 inline const Aws::String& GetZipCode() const { return m_zipCode; }
164 inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; }
165 template<typename ZipCodeT = Aws::String>
166 void SetZipCode(ZipCodeT&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::forward<ZipCodeT>(value); }
167 template<typename ZipCodeT = Aws::String>
168 ContactDetail& WithZipCode(ZipCodeT&& value) { SetZipCode(std::forward<ZipCodeT>(value)); return *this;}
170
172
178 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
179 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
180 template<typename PhoneNumberT = Aws::String>
181 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
182 template<typename PhoneNumberT = Aws::String>
183 ContactDetail& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
185
187
190 inline const Aws::String& GetEmail() const { return m_email; }
191 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
192 template<typename EmailT = Aws::String>
193 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
194 template<typename EmailT = Aws::String>
195 ContactDetail& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
197
199
204 inline const Aws::String& GetFax() const { return m_fax; }
205 inline bool FaxHasBeenSet() const { return m_faxHasBeenSet; }
206 template<typename FaxT = Aws::String>
207 void SetFax(FaxT&& value) { m_faxHasBeenSet = true; m_fax = std::forward<FaxT>(value); }
208 template<typename FaxT = Aws::String>
209 ContactDetail& WithFax(FaxT&& value) { SetFax(std::forward<FaxT>(value)); return *this;}
211
213
217 inline const Aws::Vector<ExtraParam>& GetExtraParams() const { return m_extraParams; }
218 inline bool ExtraParamsHasBeenSet() const { return m_extraParamsHasBeenSet; }
219 template<typename ExtraParamsT = Aws::Vector<ExtraParam>>
220 void SetExtraParams(ExtraParamsT&& value) { m_extraParamsHasBeenSet = true; m_extraParams = std::forward<ExtraParamsT>(value); }
221 template<typename ExtraParamsT = Aws::Vector<ExtraParam>>
222 ContactDetail& WithExtraParams(ExtraParamsT&& value) { SetExtraParams(std::forward<ExtraParamsT>(value)); return *this;}
223 template<typename ExtraParamsT = ExtraParam>
224 ContactDetail& AddExtraParams(ExtraParamsT&& value) { m_extraParamsHasBeenSet = true; m_extraParams.emplace_back(std::forward<ExtraParamsT>(value)); return *this; }
226 private:
227
228 Aws::String m_firstName;
229 bool m_firstNameHasBeenSet = false;
230
231 Aws::String m_lastName;
232 bool m_lastNameHasBeenSet = false;
233
234 ContactType m_contactType{ContactType::NOT_SET};
235 bool m_contactTypeHasBeenSet = false;
236
237 Aws::String m_organizationName;
238 bool m_organizationNameHasBeenSet = false;
239
240 Aws::String m_addressLine1;
241 bool m_addressLine1HasBeenSet = false;
242
243 Aws::String m_addressLine2;
244 bool m_addressLine2HasBeenSet = false;
245
246 Aws::String m_city;
247 bool m_cityHasBeenSet = false;
248
249 Aws::String m_state;
250 bool m_stateHasBeenSet = false;
251
252 CountryCode m_countryCode{CountryCode::NOT_SET};
253 bool m_countryCodeHasBeenSet = false;
254
255 Aws::String m_zipCode;
256 bool m_zipCodeHasBeenSet = false;
257
258 Aws::String m_phoneNumber;
259 bool m_phoneNumberHasBeenSet = false;
260
261 Aws::String m_email;
262 bool m_emailHasBeenSet = false;
263
264 Aws::String m_fax;
265 bool m_faxHasBeenSet = false;
266
267 Aws::Vector<ExtraParam> m_extraParams;
268 bool m_extraParamsHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace Route53Domains
273} // namespace Aws
ContactDetail & WithExtraParams(ExtraParamsT &&value)
ContactDetail & WithZipCode(ZipCodeT &&value)
const Aws::String & GetEmail() const
ContactDetail & WithAddressLine1(AddressLine1T &&value)
const Aws::String & GetFirstName() const
const Aws::String & GetPhoneNumber() const
ContactDetail & WithAddressLine2(AddressLine2T &&value)
ContactDetail & WithLastName(LastNameT &&value)
const Aws::String & GetOrganizationName() const
const Aws::String & GetLastName() const
void SetExtraParams(ExtraParamsT &&value)
ContactDetail & WithState(StateT &&value)
void SetPhoneNumber(PhoneNumberT &&value)
AWS_ROUTE53DOMAINS_API ContactDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCity() const
AWS_ROUTE53DOMAINS_API ContactDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressLine2() const
ContactDetail & WithCity(CityT &&value)
void SetAddressLine1(AddressLine1T &&value)
void SetOrganizationName(OrganizationNameT &&value)
const Aws::String & GetAddressLine1() const
ContactDetail & WithFirstName(FirstNameT &&value)
const Aws::Vector< ExtraParam > & GetExtraParams() const
const Aws::String & GetState() const
const Aws::String & GetZipCode() const
ContactDetail & WithContactType(ContactType value)
ContactDetail & AddExtraParams(ExtraParamsT &&value)
ContactDetail & WithPhoneNumber(PhoneNumberT &&value)
ContactDetail & WithOrganizationName(OrganizationNameT &&value)
ContactDetail & WithFax(FaxT &&value)
void SetAddressLine2(AddressLine2T &&value)
AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53DOMAINS_API ContactDetail()=default
ContactDetail & WithEmail(EmailT &&value)
ContactDetail & WithCountryCode(CountryCode 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