AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IdentityStore {
20namespace Model {
21
27class Address {
28 public:
29 AWS_IDENTITYSTORE_API Address() = default;
30 AWS_IDENTITYSTORE_API Address(Aws::Utils::Json::JsonView jsonValue);
31 AWS_IDENTITYSTORE_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetStreetAddress() const { return m_streetAddress; }
39 inline bool StreetAddressHasBeenSet() const { return m_streetAddressHasBeenSet; }
40 template <typename StreetAddressT = Aws::String>
41 void SetStreetAddress(StreetAddressT&& value) {
42 m_streetAddressHasBeenSet = true;
43 m_streetAddress = std::forward<StreetAddressT>(value);
44 }
45 template <typename StreetAddressT = Aws::String>
46 Address& WithStreetAddress(StreetAddressT&& value) {
47 SetStreetAddress(std::forward<StreetAddressT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetLocality() const { return m_locality; }
57 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
58 template <typename LocalityT = Aws::String>
59 void SetLocality(LocalityT&& value) {
60 m_localityHasBeenSet = true;
61 m_locality = std::forward<LocalityT>(value);
62 }
63 template <typename LocalityT = Aws::String>
64 Address& WithLocality(LocalityT&& value) {
65 SetLocality(std::forward<LocalityT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRegion() const { return m_region; }
75 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
76 template <typename RegionT = Aws::String>
77 void SetRegion(RegionT&& value) {
78 m_regionHasBeenSet = true;
79 m_region = std::forward<RegionT>(value);
80 }
81 template <typename RegionT = Aws::String>
82 Address& WithRegion(RegionT&& value) {
83 SetRegion(std::forward<RegionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
93 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
94 template <typename PostalCodeT = Aws::String>
95 void SetPostalCode(PostalCodeT&& value) {
96 m_postalCodeHasBeenSet = true;
97 m_postalCode = std::forward<PostalCodeT>(value);
98 }
99 template <typename PostalCodeT = Aws::String>
100 Address& WithPostalCode(PostalCodeT&& value) {
101 SetPostalCode(std::forward<PostalCodeT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetCountry() const { return m_country; }
111 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
112 template <typename CountryT = Aws::String>
113 void SetCountry(CountryT&& value) {
114 m_countryHasBeenSet = true;
115 m_country = std::forward<CountryT>(value);
116 }
117 template <typename CountryT = Aws::String>
118 Address& WithCountry(CountryT&& value) {
119 SetCountry(std::forward<CountryT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetFormatted() const { return m_formatted; }
129 inline bool FormattedHasBeenSet() const { return m_formattedHasBeenSet; }
130 template <typename FormattedT = Aws::String>
131 void SetFormatted(FormattedT&& value) {
132 m_formattedHasBeenSet = true;
133 m_formatted = std::forward<FormattedT>(value);
134 }
135 template <typename FormattedT = Aws::String>
136 Address& WithFormatted(FormattedT&& value) {
137 SetFormatted(std::forward<FormattedT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetType() const { return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 template <typename TypeT = Aws::String>
149 void SetType(TypeT&& value) {
150 m_typeHasBeenSet = true;
151 m_type = std::forward<TypeT>(value);
152 }
153 template <typename TypeT = Aws::String>
154 Address& WithType(TypeT&& value) {
155 SetType(std::forward<TypeT>(value));
156 return *this;
157 }
159
161
165 inline bool GetPrimary() const { return m_primary; }
166 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
167 inline void SetPrimary(bool value) {
168 m_primaryHasBeenSet = true;
169 m_primary = value;
170 }
171 inline Address& WithPrimary(bool value) {
172 SetPrimary(value);
173 return *this;
174 }
176 private:
177 Aws::String m_streetAddress;
178
179 Aws::String m_locality;
180
181 Aws::String m_region;
182
183 Aws::String m_postalCode;
184
185 Aws::String m_country;
186
187 Aws::String m_formatted;
188
189 Aws::String m_type;
190
191 bool m_primary{false};
192 bool m_streetAddressHasBeenSet = false;
193 bool m_localityHasBeenSet = false;
194 bool m_regionHasBeenSet = false;
195 bool m_postalCodeHasBeenSet = false;
196 bool m_countryHasBeenSet = false;
197 bool m_formattedHasBeenSet = false;
198 bool m_typeHasBeenSet = false;
199 bool m_primaryHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace IdentityStore
204} // namespace Aws
const Aws::String & GetCountry() const
Definition Address.h:110
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:95
Address & WithFormatted(FormattedT &&value)
Definition Address.h:136
AWS_IDENTITYSTORE_API Address(Aws::Utils::Json::JsonView jsonValue)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(TypeT &&value)
Definition Address.h:149
Address & WithPrimary(bool value)
Definition Address.h:171
AWS_IDENTITYSTORE_API Address()=default
AWS_IDENTITYSTORE_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLocality() const
Definition Address.h:56
Address & WithStreetAddress(StreetAddressT &&value)
Definition Address.h:46
const Aws::String & GetFormatted() const
Definition Address.h:128
const Aws::String & GetType() const
Definition Address.h:146
void SetRegion(RegionT &&value)
Definition Address.h:77
Address & WithLocality(LocalityT &&value)
Definition Address.h:64
const Aws::String & GetPostalCode() const
Definition Address.h:92
Address & WithType(TypeT &&value)
Definition Address.h:154
void SetLocality(LocalityT &&value)
Definition Address.h:59
void SetFormatted(FormattedT &&value)
Definition Address.h:131
void SetCountry(CountryT &&value)
Definition Address.h:113
const Aws::String & GetRegion() const
Definition Address.h:74
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:100
Address & WithRegion(RegionT &&value)
Definition Address.h:82
Address & WithCountry(CountryT &&value)
Definition Address.h:118
const Aws::String & GetStreetAddress() const
Definition Address.h:38
void SetStreetAddress(StreetAddressT &&value)
Definition Address.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue