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/privatenetworks/PrivateNetworks_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 PrivateNetworks
22{
23namespace Model
24{
25
31 class Address
32 {
33 public:
34 AWS_PRIVATENETWORKS_API Address();
35 AWS_PRIVATENETWORKS_API Address(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PRIVATENETWORKS_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCity() const{ return m_city; }
45 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
46 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
47 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
48 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
49 inline Address& WithCity(const Aws::String& value) { SetCity(value); return *this;}
50 inline Address& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
51 inline Address& WithCity(const char* value) { SetCity(value); return *this;}
53
55
58 inline const Aws::String& GetCompany() const{ return m_company; }
59 inline bool CompanyHasBeenSet() const { return m_companyHasBeenSet; }
60 inline void SetCompany(const Aws::String& value) { m_companyHasBeenSet = true; m_company = value; }
61 inline void SetCompany(Aws::String&& value) { m_companyHasBeenSet = true; m_company = std::move(value); }
62 inline void SetCompany(const char* value) { m_companyHasBeenSet = true; m_company.assign(value); }
63 inline Address& WithCompany(const Aws::String& value) { SetCompany(value); return *this;}
64 inline Address& WithCompany(Aws::String&& value) { SetCompany(std::move(value)); return *this;}
65 inline Address& WithCompany(const char* value) { SetCompany(value); return *this;}
67
69
72 inline const Aws::String& GetCountry() const{ return m_country; }
73 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
74 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
75 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
76 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
77 inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
78 inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
79 inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
81
83
86 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
87 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
88 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
89 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
90 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
91 inline Address& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
92 inline Address& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
93 inline Address& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
95
97
100 inline const Aws::String& GetName() const{ return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
103 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 inline Address& WithName(const Aws::String& value) { SetName(value); return *this;}
106 inline Address& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
107 inline Address& WithName(const char* value) { SetName(value); return *this;}
109
111
114 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
115 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
116 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
117 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
118 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
119 inline Address& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
120 inline Address& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
121 inline Address& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
123
125
128 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
129 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
130 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
131 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
132 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
133 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
134 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
135 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
137
139
142 inline const Aws::String& GetStateOrProvince() const{ return m_stateOrProvince; }
143 inline bool StateOrProvinceHasBeenSet() const { return m_stateOrProvinceHasBeenSet; }
144 inline void SetStateOrProvince(const Aws::String& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = value; }
145 inline void SetStateOrProvince(Aws::String&& value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince = std::move(value); }
146 inline void SetStateOrProvince(const char* value) { m_stateOrProvinceHasBeenSet = true; m_stateOrProvince.assign(value); }
147 inline Address& WithStateOrProvince(const Aws::String& value) { SetStateOrProvince(value); return *this;}
148 inline Address& WithStateOrProvince(Aws::String&& value) { SetStateOrProvince(std::move(value)); return *this;}
149 inline Address& WithStateOrProvince(const char* value) { SetStateOrProvince(value); return *this;}
151
153
156 inline const Aws::String& GetStreet1() const{ return m_street1; }
157 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; }
158 inline void SetStreet1(const Aws::String& value) { m_street1HasBeenSet = true; m_street1 = value; }
159 inline void SetStreet1(Aws::String&& value) { m_street1HasBeenSet = true; m_street1 = std::move(value); }
160 inline void SetStreet1(const char* value) { m_street1HasBeenSet = true; m_street1.assign(value); }
161 inline Address& WithStreet1(const Aws::String& value) { SetStreet1(value); return *this;}
162 inline Address& WithStreet1(Aws::String&& value) { SetStreet1(std::move(value)); return *this;}
163 inline Address& WithStreet1(const char* value) { SetStreet1(value); return *this;}
165
167
170 inline const Aws::String& GetStreet2() const{ return m_street2; }
171 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; }
172 inline void SetStreet2(const Aws::String& value) { m_street2HasBeenSet = true; m_street2 = value; }
173 inline void SetStreet2(Aws::String&& value) { m_street2HasBeenSet = true; m_street2 = std::move(value); }
174 inline void SetStreet2(const char* value) { m_street2HasBeenSet = true; m_street2.assign(value); }
175 inline Address& WithStreet2(const Aws::String& value) { SetStreet2(value); return *this;}
176 inline Address& WithStreet2(Aws::String&& value) { SetStreet2(std::move(value)); return *this;}
177 inline Address& WithStreet2(const char* value) { SetStreet2(value); return *this;}
179
181
184 inline const Aws::String& GetStreet3() const{ return m_street3; }
185 inline bool Street3HasBeenSet() const { return m_street3HasBeenSet; }
186 inline void SetStreet3(const Aws::String& value) { m_street3HasBeenSet = true; m_street3 = value; }
187 inline void SetStreet3(Aws::String&& value) { m_street3HasBeenSet = true; m_street3 = std::move(value); }
188 inline void SetStreet3(const char* value) { m_street3HasBeenSet = true; m_street3.assign(value); }
189 inline Address& WithStreet3(const Aws::String& value) { SetStreet3(value); return *this;}
190 inline Address& WithStreet3(Aws::String&& value) { SetStreet3(std::move(value)); return *this;}
191 inline Address& WithStreet3(const char* value) { SetStreet3(value); return *this;}
193 private:
194
195 Aws::String m_city;
196 bool m_cityHasBeenSet = false;
197
198 Aws::String m_company;
199 bool m_companyHasBeenSet = false;
200
201 Aws::String m_country;
202 bool m_countryHasBeenSet = false;
203
204 Aws::String m_emailAddress;
205 bool m_emailAddressHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
210 Aws::String m_phoneNumber;
211 bool m_phoneNumberHasBeenSet = false;
212
213 Aws::String m_postalCode;
214 bool m_postalCodeHasBeenSet = false;
215
216 Aws::String m_stateOrProvince;
217 bool m_stateOrProvinceHasBeenSet = false;
218
219 Aws::String m_street1;
220 bool m_street1HasBeenSet = false;
221
222 Aws::String m_street2;
223 bool m_street2HasBeenSet = false;
224
225 Aws::String m_street3;
226 bool m_street3HasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace PrivateNetworks
231} // namespace Aws
void SetStreet3(const Aws::String &value)
Definition Address.h:186
void SetCountry(const Aws::String &value)
Definition Address.h:74
Address & WithPhoneNumber(Aws::String &&value)
Definition Address.h:120
void SetEmailAddress(Aws::String &&value)
Definition Address.h:89
void SetStateOrProvince(const Aws::String &value)
Definition Address.h:144
Address & WithName(const char *value)
Definition Address.h:107
Address & WithStreet1(const char *value)
Definition Address.h:163
Address & WithEmailAddress(const char *value)
Definition Address.h:93
void SetStreet2(Aws::String &&value)
Definition Address.h:173
AWS_PRIVATENETWORKS_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetPostalCode(Aws::String &&value)
Definition Address.h:131
Address & WithPostalCode(const char *value)
Definition Address.h:135
void SetEmailAddress(const Aws::String &value)
Definition Address.h:88
const Aws::String & GetName() const
Definition Address.h:100
void SetCountry(Aws::String &&value)
Definition Address.h:75
void SetStateOrProvince(const char *value)
Definition Address.h:146
Address & WithName(Aws::String &&value)
Definition Address.h:106
const Aws::String & GetPhoneNumber() const
Definition Address.h:114
Address & WithStreet3(const char *value)
Definition Address.h:191
Address & WithCity(Aws::String &&value)
Definition Address.h:50
void SetStateOrProvince(Aws::String &&value)
Definition Address.h:145
Address & WithCountry(const char *value)
Definition Address.h:79
Address & WithCountry(Aws::String &&value)
Definition Address.h:78
const Aws::String & GetCountry() const
Definition Address.h:72
void SetName(Aws::String &&value)
Definition Address.h:103
void SetName(const Aws::String &value)
Definition Address.h:102
Address & WithCompany(const Aws::String &value)
Definition Address.h:63
Address & WithStreet3(const Aws::String &value)
Definition Address.h:189
const Aws::String & GetStateOrProvince() const
Definition Address.h:142
Address & WithStateOrProvince(const char *value)
Definition Address.h:149
void SetPhoneNumber(Aws::String &&value)
Definition Address.h:117
void SetCountry(const char *value)
Definition Address.h:76
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:134
Address & WithEmailAddress(Aws::String &&value)
Definition Address.h:92
const Aws::String & GetCompany() const
Definition Address.h:58
Address & WithCountry(const Aws::String &value)
Definition Address.h:77
Address & WithStreet2(const Aws::String &value)
Definition Address.h:175
void SetEmailAddress(const char *value)
Definition Address.h:90
const Aws::String & GetEmailAddress() const
Definition Address.h:86
void SetPhoneNumber(const char *value)
Definition Address.h:118
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:133
const Aws::String & GetStreet1() const
Definition Address.h:156
Address & WithStreet1(Aws::String &&value)
Definition Address.h:162
void SetPostalCode(const char *value)
Definition Address.h:132
void SetStreet2(const char *value)
Definition Address.h:174
AWS_PRIVATENETWORKS_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreet1(Aws::String &&value)
Definition Address.h:159
void SetCity(const Aws::String &value)
Definition Address.h:46
Address & WithCompany(const char *value)
Definition Address.h:65
Address & WithStreet2(const char *value)
Definition Address.h:177
Address & WithCity(const Aws::String &value)
Definition Address.h:49
const Aws::String & GetStreet3() const
Definition Address.h:184
Address & WithCompany(Aws::String &&value)
Definition Address.h:64
void SetStreet3(const char *value)
Definition Address.h:188
Address & WithStreet3(Aws::String &&value)
Definition Address.h:190
void SetPostalCode(const Aws::String &value)
Definition Address.h:130
void SetStreet2(const Aws::String &value)
Definition Address.h:172
const Aws::String & GetStreet2() const
Definition Address.h:170
void SetStreet1(const char *value)
Definition Address.h:160
const Aws::String & GetPostalCode() const
Definition Address.h:128
Address & WithPhoneNumber(const Aws::String &value)
Definition Address.h:119
void SetStreet3(Aws::String &&value)
Definition Address.h:187
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStreet1(const Aws::String &value)
Definition Address.h:158
Address & WithName(const Aws::String &value)
Definition Address.h:105
void SetCity(Aws::String &&value)
Definition Address.h:47
void SetCompany(const char *value)
Definition Address.h:62
void SetPhoneNumber(const Aws::String &value)
Definition Address.h:116
void SetName(const char *value)
Definition Address.h:104
void SetCompany(const Aws::String &value)
Definition Address.h:60
Address & WithStreet2(Aws::String &&value)
Definition Address.h:176
Address & WithStateOrProvince(const Aws::String &value)
Definition Address.h:147
Address & WithPhoneNumber(const char *value)
Definition Address.h:121
AWS_PRIVATENETWORKS_API Address()
Address & WithStateOrProvince(Aws::String &&value)
Definition Address.h:148
Address & WithCity(const char *value)
Definition Address.h:51
void SetCity(const char *value)
Definition Address.h:48
void SetCompany(Aws::String &&value)
Definition Address.h:61
const Aws::String & GetCity() const
Definition Address.h:44
Address & WithEmailAddress(const Aws::String &value)
Definition Address.h:91
Address & WithStreet1(const Aws::String &value)
Definition Address.h:161
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue