AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_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 CustomerProfiles
22{
23namespace Model
24{
25
32 class Address
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API Address();
36 AWS_CUSTOMERPROFILES_API Address(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAddress1() const{ return m_address1; }
46 inline bool Address1HasBeenSet() const { return m_address1HasBeenSet; }
47 inline void SetAddress1(const Aws::String& value) { m_address1HasBeenSet = true; m_address1 = value; }
48 inline void SetAddress1(Aws::String&& value) { m_address1HasBeenSet = true; m_address1 = std::move(value); }
49 inline void SetAddress1(const char* value) { m_address1HasBeenSet = true; m_address1.assign(value); }
50 inline Address& WithAddress1(const Aws::String& value) { SetAddress1(value); return *this;}
51 inline Address& WithAddress1(Aws::String&& value) { SetAddress1(std::move(value)); return *this;}
52 inline Address& WithAddress1(const char* value) { SetAddress1(value); return *this;}
54
56
59 inline const Aws::String& GetAddress2() const{ return m_address2; }
60 inline bool Address2HasBeenSet() const { return m_address2HasBeenSet; }
61 inline void SetAddress2(const Aws::String& value) { m_address2HasBeenSet = true; m_address2 = value; }
62 inline void SetAddress2(Aws::String&& value) { m_address2HasBeenSet = true; m_address2 = std::move(value); }
63 inline void SetAddress2(const char* value) { m_address2HasBeenSet = true; m_address2.assign(value); }
64 inline Address& WithAddress2(const Aws::String& value) { SetAddress2(value); return *this;}
65 inline Address& WithAddress2(Aws::String&& value) { SetAddress2(std::move(value)); return *this;}
66 inline Address& WithAddress2(const char* value) { SetAddress2(value); return *this;}
68
70
73 inline const Aws::String& GetAddress3() const{ return m_address3; }
74 inline bool Address3HasBeenSet() const { return m_address3HasBeenSet; }
75 inline void SetAddress3(const Aws::String& value) { m_address3HasBeenSet = true; m_address3 = value; }
76 inline void SetAddress3(Aws::String&& value) { m_address3HasBeenSet = true; m_address3 = std::move(value); }
77 inline void SetAddress3(const char* value) { m_address3HasBeenSet = true; m_address3.assign(value); }
78 inline Address& WithAddress3(const Aws::String& value) { SetAddress3(value); return *this;}
79 inline Address& WithAddress3(Aws::String&& value) { SetAddress3(std::move(value)); return *this;}
80 inline Address& WithAddress3(const char* value) { SetAddress3(value); return *this;}
82
84
87 inline const Aws::String& GetAddress4() const{ return m_address4; }
88 inline bool Address4HasBeenSet() const { return m_address4HasBeenSet; }
89 inline void SetAddress4(const Aws::String& value) { m_address4HasBeenSet = true; m_address4 = value; }
90 inline void SetAddress4(Aws::String&& value) { m_address4HasBeenSet = true; m_address4 = std::move(value); }
91 inline void SetAddress4(const char* value) { m_address4HasBeenSet = true; m_address4.assign(value); }
92 inline Address& WithAddress4(const Aws::String& value) { SetAddress4(value); return *this;}
93 inline Address& WithAddress4(Aws::String&& value) { SetAddress4(std::move(value)); return *this;}
94 inline Address& WithAddress4(const char* value) { SetAddress4(value); return *this;}
96
98
101 inline const Aws::String& GetCity() const{ return m_city; }
102 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
103 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
104 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
105 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
106 inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
107 inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
108 inline Address& WithCity(const char* value) { SetCity(value); return *this;}
110
112
115 inline const Aws::String& GetCounty() const{ return m_county; }
116 inline bool CountyHasBeenSet() const { return m_countyHasBeenSet; }
117 inline void SetCounty(const Aws::String& value) { m_countyHasBeenSet = true; m_county = value; }
118 inline void SetCounty(Aws::String&& value) { m_countyHasBeenSet = true; m_county = std::move(value); }
119 inline void SetCounty(const char* value) { m_countyHasBeenSet = true; m_county.assign(value); }
120 inline Address& WithCounty(const Aws::String& value) { SetCounty(value); return *this;}
121 inline Address& WithCounty(Aws::String&& value) { SetCounty(std::move(value)); return *this;}
122 inline Address& WithCounty(const char* value) { SetCounty(value); return *this;}
124
126
129 inline const Aws::String& GetState() const{ return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
132 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
133 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
134 inline Address& WithState(const Aws::String& value) { SetState(value); return *this;}
135 inline Address& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
136 inline Address& WithState(const char* value) { SetState(value); return *this;}
138
140
143 inline const Aws::String& GetProvince() const{ return m_province; }
144 inline bool ProvinceHasBeenSet() const { return m_provinceHasBeenSet; }
145 inline void SetProvince(const Aws::String& value) { m_provinceHasBeenSet = true; m_province = value; }
146 inline void SetProvince(Aws::String&& value) { m_provinceHasBeenSet = true; m_province = std::move(value); }
147 inline void SetProvince(const char* value) { m_provinceHasBeenSet = true; m_province.assign(value); }
148 inline Address& WithProvince(const Aws::String& value) { SetProvince(value); return *this;}
149 inline Address& WithProvince(Aws::String&& value) { SetProvince(std::move(value)); return *this;}
150 inline Address& WithProvince(const char* value) { SetProvince(value); return *this;}
152
154
157 inline const Aws::String& GetCountry() const{ return m_country; }
158 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
159 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
160 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
161 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
162 inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
163 inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
164 inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
166
168
171 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
172 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
173 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
174 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
175 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
176 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
177 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
178 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
180 private:
181
182 Aws::String m_address1;
183 bool m_address1HasBeenSet = false;
184
185 Aws::String m_address2;
186 bool m_address2HasBeenSet = false;
187
188 Aws::String m_address3;
189 bool m_address3HasBeenSet = false;
190
191 Aws::String m_address4;
192 bool m_address4HasBeenSet = false;
193
194 Aws::String m_city;
195 bool m_cityHasBeenSet = false;
196
197 Aws::String m_county;
198 bool m_countyHasBeenSet = false;
199
200 Aws::String m_state;
201 bool m_stateHasBeenSet = false;
202
203 Aws::String m_province;
204 bool m_provinceHasBeenSet = false;
205
206 Aws::String m_country;
207 bool m_countryHasBeenSet = false;
208
209 Aws::String m_postalCode;
210 bool m_postalCodeHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace CustomerProfiles
215} // namespace Aws
void SetAddress1(Aws::String &&value)
Definition Address.h:48
void SetCounty(Aws::String &&value)
Definition Address.h:118
void SetCountry(const char *value)
Definition Address.h:161
void SetAddress1(const Aws::String &value)
Definition Address.h:47
Address & WithCity(Aws::String &&value)
Definition Address.h:107
void SetPostalCode(const char *value)
Definition Address.h:175
const Aws::String & GetCity() const
Definition Address.h:101
void SetState(const char *value)
Definition Address.h:133
Address & WithAddress3(const Aws::String &value)
Definition Address.h:78
const Aws::String & GetState() const
Definition Address.h:129
Address & WithAddress4(const char *value)
Definition Address.h:94
const Aws::String & GetCountry() const
Definition Address.h:157
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:177
Address & WithState(Aws::String &&value)
Definition Address.h:135
void SetState(Aws::String &&value)
Definition Address.h:132
void SetCounty(const Aws::String &value)
Definition Address.h:117
void SetAddress4(Aws::String &&value)
Definition Address.h:90
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:176
void SetProvince(const char *value)
Definition Address.h:147
void SetAddress2(Aws::String &&value)
Definition Address.h:62
Address & WithState(const char *value)
Definition Address.h:136
Address & WithPostalCode(const char *value)
Definition Address.h:178
Address & WithAddress3(const char *value)
Definition Address.h:80
Address & WithAddress3(Aws::String &&value)
Definition Address.h:79
Address & WithAddress1(const char *value)
Definition Address.h:52
Address & WithCounty(const Aws::String &value)
Definition Address.h:120
Address & WithProvince(Aws::String &&value)
Definition Address.h:149
void SetAddress2(const Aws::String &value)
Definition Address.h:61
Address & WithAddress2(Aws::String &&value)
Definition Address.h:65
Address & WithAddress4(Aws::String &&value)
Definition Address.h:93
Address & WithCounty(const char *value)
Definition Address.h:122
AWS_CUSTOMERPROFILES_API Address(Aws::Utils::Json::JsonView jsonValue)
Address & WithAddress1(const Aws::String &value)
Definition Address.h:50
const Aws::String & GetAddress2() const
Definition Address.h:59
void SetProvince(Aws::String &&value)
Definition Address.h:146
void SetCountry(const Aws::String &value)
Definition Address.h:159
void SetAddress4(const Aws::String &value)
Definition Address.h:89
Address & WithAddress2(const Aws::String &value)
Definition Address.h:64
const Aws::String & GetAddress3() const
Definition Address.h:73
Address & WithCity(const char *value)
Definition Address.h:108
void SetAddress3(const Aws::String &value)
Definition Address.h:75
const Aws::String & GetAddress1() const
Definition Address.h:45
Address & WithProvince(const char *value)
Definition Address.h:150
void SetProvince(const Aws::String &value)
Definition Address.h:145
void SetCounty(const char *value)
Definition Address.h:119
void SetState(const Aws::String &value)
Definition Address.h:131
Address & WithAddress2(const char *value)
Definition Address.h:66
const Aws::String & GetPostalCode() const
Definition Address.h:171
const Aws::String & GetCounty() const
Definition Address.h:115
void SetAddress1(const char *value)
Definition Address.h:49
Address & WithCity(const Aws::String &value)
Definition Address.h:106
void SetCity(Aws::String &&value)
Definition Address.h:104
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress4(const char *value)
Definition Address.h:91
const Aws::String & GetProvince() const
Definition Address.h:143
void SetPostalCode(const Aws::String &value)
Definition Address.h:173
Address & WithCountry(Aws::String &&value)
Definition Address.h:163
void SetAddress3(const char *value)
Definition Address.h:77
Address & WithAddress1(Aws::String &&value)
Definition Address.h:51
void SetAddress2(const char *value)
Definition Address.h:63
AWS_CUSTOMERPROFILES_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress3(Aws::String &&value)
Definition Address.h:76
void SetCountry(Aws::String &&value)
Definition Address.h:160
void SetCity(const char *value)
Definition Address.h:105
Address & WithCounty(Aws::String &&value)
Definition Address.h:121
Address & WithAddress4(const Aws::String &value)
Definition Address.h:92
Address & WithCountry(const Aws::String &value)
Definition Address.h:162
void SetCity(const Aws::String &value)
Definition Address.h:103
Address & WithState(const Aws::String &value)
Definition Address.h:134
Address & WithCountry(const char *value)
Definition Address.h:164
const Aws::String & GetAddress4() const
Definition Address.h:87
AWS_CUSTOMERPROFILES_API Address()
void SetPostalCode(Aws::String &&value)
Definition Address.h:174
Address & WithProvince(const Aws::String &value)
Definition Address.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue