AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Account
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ACCOUNT_API ContactInformation() = default;
38 AWS_ACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAddressLine1() const { return m_addressLine1; }
46 inline bool AddressLine1HasBeenSet() const { return m_addressLine1HasBeenSet; }
47 template<typename AddressLine1T = Aws::String>
48 void SetAddressLine1(AddressLine1T&& value) { m_addressLine1HasBeenSet = true; m_addressLine1 = std::forward<AddressLine1T>(value); }
49 template<typename AddressLine1T = Aws::String>
50 ContactInformation& WithAddressLine1(AddressLine1T&& value) { SetAddressLine1(std::forward<AddressLine1T>(value)); return *this;}
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) { m_addressLine2HasBeenSet = true; m_addressLine2 = std::forward<AddressLine2T>(value); }
61 template<typename AddressLine2T = Aws::String>
62 ContactInformation& WithAddressLine2(AddressLine2T&& value) { SetAddressLine2(std::forward<AddressLine2T>(value)); return *this;}
64
66
69 inline const Aws::String& GetAddressLine3() const { return m_addressLine3; }
70 inline bool AddressLine3HasBeenSet() const { return m_addressLine3HasBeenSet; }
71 template<typename AddressLine3T = Aws::String>
72 void SetAddressLine3(AddressLine3T&& value) { m_addressLine3HasBeenSet = true; m_addressLine3 = std::forward<AddressLine3T>(value); }
73 template<typename AddressLine3T = Aws::String>
74 ContactInformation& WithAddressLine3(AddressLine3T&& value) { SetAddressLine3(std::forward<AddressLine3T>(value)); return *this;}
76
78
81 inline const Aws::String& GetCity() const { return m_city; }
82 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
83 template<typename CityT = Aws::String>
84 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
85 template<typename CityT = Aws::String>
86 ContactInformation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
88
90
94 inline const Aws::String& GetCompanyName() const { return m_companyName; }
95 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
96 template<typename CompanyNameT = Aws::String>
97 void SetCompanyName(CompanyNameT&& value) { m_companyNameHasBeenSet = true; m_companyName = std::forward<CompanyNameT>(value); }
98 template<typename CompanyNameT = Aws::String>
99 ContactInformation& WithCompanyName(CompanyNameT&& value) { SetCompanyName(std::forward<CompanyNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
107 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
108 template<typename CountryCodeT = Aws::String>
109 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
110 template<typename CountryCodeT = Aws::String>
111 ContactInformation& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
113
115
118 inline const Aws::String& GetDistrictOrCounty() const { return m_districtOrCounty; }
119 inline bool DistrictOrCountyHasBeenSet() const { return m_districtOrCountyHasBeenSet; }
120 template<typename DistrictOrCountyT = Aws::String>
121 void SetDistrictOrCounty(DistrictOrCountyT&& value) { m_districtOrCountyHasBeenSet = true; m_districtOrCounty = std::forward<DistrictOrCountyT>(value); }
122 template<typename DistrictOrCountyT = Aws::String>
123 ContactInformation& WithDistrictOrCounty(DistrictOrCountyT&& value) { SetDistrictOrCounty(std::forward<DistrictOrCountyT>(value)); return *this;}
125
127
130 inline const Aws::String& GetFullName() const { return m_fullName; }
131 inline bool FullNameHasBeenSet() const { return m_fullNameHasBeenSet; }
132 template<typename FullNameT = Aws::String>
133 void SetFullName(FullNameT&& value) { m_fullNameHasBeenSet = true; m_fullName = std::forward<FullNameT>(value); }
134 template<typename FullNameT = Aws::String>
135 ContactInformation& WithFullName(FullNameT&& value) { SetFullName(std::forward<FullNameT>(value)); return *this;}
137
139
143 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
144 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
145 template<typename PhoneNumberT = Aws::String>
146 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
147 template<typename PhoneNumberT = Aws::String>
148 ContactInformation& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
150
152
155 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
156 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
157 template<typename PostalCodeT = Aws::String>
158 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
159 template<typename PostalCodeT = Aws::String>
160 ContactInformation& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
162
164
172 inline const Aws::String& GetStateOrRegion() const { return m_stateOrRegion; }
173 inline bool StateOrRegionHasBeenSet() const { return m_stateOrRegionHasBeenSet; }
174 template<typename StateOrRegionT = Aws::String>
175 void SetStateOrRegion(StateOrRegionT&& value) { m_stateOrRegionHasBeenSet = true; m_stateOrRegion = std::forward<StateOrRegionT>(value); }
176 template<typename StateOrRegionT = Aws::String>
177 ContactInformation& WithStateOrRegion(StateOrRegionT&& value) { SetStateOrRegion(std::forward<StateOrRegionT>(value)); return *this;}
179
181
185 inline const Aws::String& GetWebsiteUrl() const { return m_websiteUrl; }
186 inline bool WebsiteUrlHasBeenSet() const { return m_websiteUrlHasBeenSet; }
187 template<typename WebsiteUrlT = Aws::String>
188 void SetWebsiteUrl(WebsiteUrlT&& value) { m_websiteUrlHasBeenSet = true; m_websiteUrl = std::forward<WebsiteUrlT>(value); }
189 template<typename WebsiteUrlT = Aws::String>
190 ContactInformation& WithWebsiteUrl(WebsiteUrlT&& value) { SetWebsiteUrl(std::forward<WebsiteUrlT>(value)); return *this;}
192 private:
193
194 Aws::String m_addressLine1;
195 bool m_addressLine1HasBeenSet = false;
196
197 Aws::String m_addressLine2;
198 bool m_addressLine2HasBeenSet = false;
199
200 Aws::String m_addressLine3;
201 bool m_addressLine3HasBeenSet = false;
202
203 Aws::String m_city;
204 bool m_cityHasBeenSet = false;
205
206 Aws::String m_companyName;
207 bool m_companyNameHasBeenSet = false;
208
209 Aws::String m_countryCode;
210 bool m_countryCodeHasBeenSet = false;
211
212 Aws::String m_districtOrCounty;
213 bool m_districtOrCountyHasBeenSet = false;
214
215 Aws::String m_fullName;
216 bool m_fullNameHasBeenSet = false;
217
218 Aws::String m_phoneNumber;
219 bool m_phoneNumberHasBeenSet = false;
220
221 Aws::String m_postalCode;
222 bool m_postalCodeHasBeenSet = false;
223
224 Aws::String m_stateOrRegion;
225 bool m_stateOrRegionHasBeenSet = false;
226
227 Aws::String m_websiteUrl;
228 bool m_websiteUrlHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Account
233} // 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)
void SetCompanyName(CompanyNameT &&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