AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ContactInformation.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Account {
20namespace Model {
21
29 public:
30 AWS_ACCOUNT_API ContactInformation() = default;
33 AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFullName() const { return m_fullName; }
40 inline bool FullNameHasBeenSet() const { return m_fullNameHasBeenSet; }
41 template <typename FullNameT = Aws::String>
42 void SetFullName(FullNameT&& value) {
43 m_fullNameHasBeenSet = true;
44 m_fullName = std::forward<FullNameT>(value);
45 }
46 template <typename FullNameT = Aws::String>
47 ContactInformation& WithFullName(FullNameT&& value) {
48 SetFullName(std::forward<FullNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
58 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
59 template <typename AddressLine1T = Aws::String>
60 void SetAddressLine1(AddressLine1T&& value) {
61 m_addressLine1HasBeenSet = true;
62 m_addressLine1 = std::forward<AddressLine1T>(value);
63 }
64 template <typename AddressLine1T = Aws::String>
65 ContactInformation& WithAddressLine1(AddressLine1T&& value) {
66 SetAddressLine1(std::forward<AddressLine1T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
76 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
77 template <typename AddressLine2T = Aws::String>
78 void SetAddressLine2(AddressLine2T&& value) {
79 m_addressLine2HasBeenSet = true;
80 m_addressLine2 = std::forward<AddressLine2T>(value);
81 }
82 template <typename AddressLine2T = Aws::String>
83 ContactInformation& WithAddressLine2(AddressLine2T&& value) {
84 SetAddressLine2(std::forward<AddressLine2T>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
94 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
95 template <typename AddressLine3T = Aws::String>
96 void SetAddressLine3(AddressLine3T&& value) {
97 m_addressLine3HasBeenSet = true;
98 m_addressLine3 = std::forward<AddressLine3T>(value);
99 }
100 template <typename AddressLine3T = Aws::String>
101 ContactInformation& WithAddressLine3(AddressLine3T&& value) {
102 SetAddressLine3(std::forward<AddressLine3T>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCity() const { return m_city; }
112 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
113 template <typename CityT = Aws::String>
114 void SetCity(CityT&& value) {
115 m_cityHasBeenSet = true;
116 m_city = std::forward<CityT>(value);
117 }
118 template <typename CityT = Aws::String>
119 ContactInformation& WithCity(CityT&& value) {
120 SetCity(std::forward<CityT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
135 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
136 template <typename StateOrRegionT = Aws::String>
137 void SetStateOrRegion(StateOrRegionT&& value) {
138 m_stateOrRegionHasBeenSet = true;
139 m_stateOrRegion = std::forward<StateOrRegionT>(value);
140 }
141 template <typename StateOrRegionT = Aws::String>
142 ContactInformation& WithStateOrRegion(StateOrRegionT&& value) {
143 SetStateOrRegion(std::forward<StateOrRegionT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
153 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
154 template <typename DistrictOrCountyT = Aws::String>
155 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
156 m_districtOrCountyHasBeenSet = true;
157 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
158 }
159 template <typename DistrictOrCountyT = Aws::String>
160 ContactInformation& WithDistrictOrCounty(DistrictOrCountyT&& value) {
161 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
171 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
172 template <typename PostalCodeT = Aws::String>
173 void SetPostalCode(PostalCodeT&& value) {
174 m_postalCodeHasBeenSet = true;
175 m_postalCode = std::forward<PostalCodeT>(value);
176 }
177 template <typename PostalCodeT = Aws::String>
178 ContactInformation& WithPostalCode(PostalCodeT&& value) {
179 SetPostalCode(std::forward<PostalCodeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
189 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
190 template <typename CountryCodeT = Aws::String>
191 void SetCountryCode(CountryCodeT&& value) {
192 m_countryCodeHasBeenSet = true;
193 m_countryCode = std::forward<CountryCodeT>(value);
194 }
195 template <typename CountryCodeT = Aws::String>
196 ContactInformation& WithCountryCode(CountryCodeT&& value) {
197 SetCountryCode(std::forward<CountryCodeT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
208 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
209 template <typename PhoneNumberT = Aws::String>
210 void SetPhoneNumber(PhoneNumberT&& value) {
211 m_phoneNumberHasBeenSet = true;
212 m_phoneNumber = std::forward<PhoneNumberT>(value);
213 }
214 template <typename PhoneNumberT = Aws::String>
215 ContactInformation& WithPhoneNumber(PhoneNumberT&& value) {
216 SetPhoneNumber(std::forward<PhoneNumberT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::String& GetCompanyName() const { return m_companyName; }
227 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
228 template <typename CompanyNameT = Aws::String>
229 void SetCompanyName(CompanyNameT&& value) {
230 m_companyNameHasBeenSet = true;
231 m_companyName = std::forward<CompanyNameT>(value);
232 }
233 template <typename CompanyNameT = Aws::String>
234 ContactInformation& WithCompanyName(CompanyNameT&& value) {
235 SetCompanyName(std::forward<CompanyNameT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetWebsiteUrl() const { return m_websiteUrl; }
246 inline bool WebsiteUrlHasBeenSet() const { return m_websiteUrlHasBeenSet; }
247 template <typename WebsiteUrlT = Aws::String>
248 void SetWebsiteUrl(WebsiteUrlT&& value) {
249 m_websiteUrlHasBeenSet = true;
250 m_websiteUrl = std::forward<WebsiteUrlT>(value);
251 }
252 template <typename WebsiteUrlT = Aws::String>
253 ContactInformation& WithWebsiteUrl(WebsiteUrlT&& value) {
254 SetWebsiteUrl(std::forward<WebsiteUrlT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_fullName;
260
261 Aws::String m_addressLine1;
262
263 Aws::String m_addressLine2;
264
265 Aws::String m_addressLine3;
266
267 Aws::String m_city;
268
269 Aws::String m_stateOrRegion;
270
271 Aws::String m_districtOrCounty;
272
273 Aws::String m_postalCode;
274
275 Aws::String m_countryCode;
276
277 Aws::String m_phoneNumber;
278
279 Aws::String m_companyName;
280
281 Aws::String m_websiteUrl;
282 bool m_fullNameHasBeenSet = false;
283 bool m_addressLine1HasBeenSet = false;
284 bool m_addressLine2HasBeenSet = false;
285 bool m_addressLine3HasBeenSet = false;
286 bool m_cityHasBeenSet = false;
287 bool m_stateOrRegionHasBeenSet = false;
288 bool m_districtOrCountyHasBeenSet = false;
289 bool m_postalCodeHasBeenSet = false;
290 bool m_countryCodeHasBeenSet = false;
291 bool m_phoneNumberHasBeenSet = false;
292 bool m_companyNameHasBeenSet = false;
293 bool m_websiteUrlHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace Account
298} // namespace Aws
void SetAddressLine3(AddressLine3T &&value)
void SetDistrictOrCounty(DistrictOrCountyT &&value)
ContactInformation & WithPhoneNumber(PhoneNumberT &&value)
ContactInformation & WithCity(CityT &&value)
const Aws::String & GetFullName() const
const Aws::String & GetPhoneNumber() const
ContactInformation & WithStateOrRegion(StateOrRegionT &&value)
const Aws::String & GetCompanyName() const
const Aws::String & GetPostalCode() const
ContactInformation & WithPostalCode(PostalCodeT &&value)
const Aws::String & GetWebsiteUrl() const
ContactInformation & WithAddressLine1(AddressLine1T &&value)
const Aws::String & GetAddressLine1() const
ContactInformation & WithWebsiteUrl(WebsiteUrlT &&value)
ContactInformation & WithFullName(FullNameT &&value)
AWS_ACCOUNT_API ContactInformation()=default
ContactInformation & WithAddressLine2(AddressLine2T &&value)
const Aws::String & GetStateOrRegion() const
const Aws::String & GetAddressLine3() const
AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddressLine2() const
void SetAddressLine2(AddressLine2T &&value)
const Aws::String & GetDistrictOrCounty() const
const Aws::String & GetCountryCode() const
void SetStateOrRegion(StateOrRegionT &&value)
ContactInformation & WithAddressLine3(AddressLine3T &&value)
ContactInformation & WithCountryCode(CountryCodeT &&value)
AWS_ACCOUNT_API ContactInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactInformation & WithDistrictOrCounty(DistrictOrCountyT &&value)
ContactInformation & WithCompanyName(CompanyNameT &&value)
void SetAddressLine1(AddressLine1T &&value)
AWS_ACCOUNT_API ContactInformation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue