AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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& GetAddressLine1() const { return m_addressLine1; }
40 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
41 template <typename AddressLine1T = Aws::String>
42 void SetAddressLine1(AddressLine1T&& value) {
43 m_addressLine1HasBeenSet = true;
44 m_addressLine1 = std::forward<AddressLine1T>(value);
45 }
46 template <typename AddressLine1T = Aws::String>
47 ContactInformation& WithAddressLine1(AddressLine1T&& value) {
48 SetAddressLine1(std::forward<AddressLine1T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAddressLine2() const { return m_addressLine2; }
58 inline bool AddressLine2HasBeenSet() const { return m_addressLine2HasBeenSet; }
59 template <typename AddressLine2T = Aws::String>
60 void SetAddressLine2(AddressLine2T&& value) {
61 m_addressLine2HasBeenSet = true;
62 m_addressLine2 = std::forward<AddressLine2T>(value);
63 }
64 template <typename AddressLine2T = Aws::String>
65 ContactInformation& WithAddressLine2(AddressLine2T&& value) {
66 SetAddressLine2(std::forward<AddressLine2T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
76 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
77 template <typename AddressLine3T = Aws::String>
78 void SetAddressLine3(AddressLine3T&& value) {
79 m_addressLine3HasBeenSet = true;
80 m_addressLine3 = std::forward<AddressLine3T>(value);
81 }
82 template <typename AddressLine3T = Aws::String>
83 ContactInformation& WithAddressLine3(AddressLine3T&& value) {
84 SetAddressLine3(std::forward<AddressLine3T>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCity() const { return m_city; }
94 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
95 template <typename CityT = Aws::String>
96 void SetCity(CityT&& value) {
97 m_cityHasBeenSet = true;
98 m_city = std::forward<CityT>(value);
99 }
100 template <typename CityT = Aws::String>
101 ContactInformation& WithCity(CityT&& value) {
102 SetCity(std::forward<CityT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetCompanyName() const { return m_companyName; }
113 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
114 template <typename CompanyNameT = Aws::String>
115 void SetCompanyName(CompanyNameT&& value) {
116 m_companyNameHasBeenSet = true;
117 m_companyName = std::forward<CompanyNameT>(value);
118 }
119 template <typename CompanyNameT = Aws::String>
120 ContactInformation& WithCompanyName(CompanyNameT&& value) {
121 SetCompanyName(std::forward<CompanyNameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
131 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
132 template <typename CountryCodeT = Aws::String>
133 void SetCountryCode(CountryCodeT&& value) {
134 m_countryCodeHasBeenSet = true;
135 m_countryCode = std::forward<CountryCodeT>(value);
136 }
137 template <typename CountryCodeT = Aws::String>
138 ContactInformation& WithCountryCode(CountryCodeT&& value) {
139 SetCountryCode(std::forward<CountryCodeT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
149 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
150 template <typename DistrictOrCountyT = Aws::String>
151 void SetDistrictOrCounty(DistrictOrCountyT&& value) {
152 m_districtOrCountyHasBeenSet = true;
153 m_districtOrCounty = std::forward<DistrictOrCountyT>(value);
154 }
155 template <typename DistrictOrCountyT = Aws::String>
156 ContactInformation& WithDistrictOrCounty(DistrictOrCountyT&& value) {
157 SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetFullName() const { return m_fullName; }
167 inline bool FullNameHasBeenSet() const { return m_fullNameHasBeenSet; }
168 template <typename FullNameT = Aws::String>
169 void SetFullName(FullNameT&& value) {
170 m_fullNameHasBeenSet = true;
171 m_fullName = std::forward<FullNameT>(value);
172 }
173 template <typename FullNameT = Aws::String>
174 ContactInformation& WithFullName(FullNameT&& value) {
175 SetFullName(std::forward<FullNameT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
186 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
187 template <typename PhoneNumberT = Aws::String>
188 void SetPhoneNumber(PhoneNumberT&& value) {
189 m_phoneNumberHasBeenSet = true;
190 m_phoneNumber = std::forward<PhoneNumberT>(value);
191 }
192 template <typename PhoneNumberT = Aws::String>
193 ContactInformation& WithPhoneNumber(PhoneNumberT&& value) {
194 SetPhoneNumber(std::forward<PhoneNumberT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
204 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
205 template <typename PostalCodeT = Aws::String>
206 void SetPostalCode(PostalCodeT&& value) {
207 m_postalCodeHasBeenSet = true;
208 m_postalCode = std::forward<PostalCodeT>(value);
209 }
210 template <typename PostalCodeT = Aws::String>
211 ContactInformation& WithPostalCode(PostalCodeT&& value) {
212 SetPostalCode(std::forward<PostalCodeT>(value));
213 return *this;
214 }
216
218
226 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
227 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
228 template <typename StateOrRegionT = Aws::String>
229 void SetStateOrRegion(StateOrRegionT&& value) {
230 m_stateOrRegionHasBeenSet = true;
231 m_stateOrRegion = std::forward<StateOrRegionT>(value);
232 }
233 template <typename StateOrRegionT = Aws::String>
234 ContactInformation& WithStateOrRegion(StateOrRegionT&& value) {
235 SetStateOrRegion(std::forward<StateOrRegionT>(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_addressLine1;
260 bool m_addressLine1HasBeenSet = false;
261
262 Aws::String m_addressLine2;
263 bool m_addressLine2HasBeenSet = false;
264
265 Aws::String m_addressLine3;
266 bool m_addressLine3HasBeenSet = false;
267
268 Aws::String m_city;
269 bool m_cityHasBeenSet = false;
270
271 Aws::String m_companyName;
272 bool m_companyNameHasBeenSet = false;
273
274 Aws::String m_countryCode;
275 bool m_countryCodeHasBeenSet = false;
276
277 Aws::String m_districtOrCounty;
278 bool m_districtOrCountyHasBeenSet = false;
279
280 Aws::String m_fullName;
281 bool m_fullNameHasBeenSet = false;
282
283 Aws::String m_phoneNumber;
284 bool m_phoneNumberHasBeenSet = false;
285
286 Aws::String m_postalCode;
287 bool m_postalCodeHasBeenSet = false;
288
289 Aws::String m_stateOrRegion;
290 bool m_stateOrRegionHasBeenSet = false;
291
292 Aws::String m_websiteUrl;
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 & 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