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/identitystore/IdentityStore_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 IdentityStore
22{
23namespace Model
24{
25
31 class Address
32 {
33 public:
34 AWS_IDENTITYSTORE_API Address();
35 AWS_IDENTITYSTORE_API Address(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IDENTITYSTORE_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetStreetAddress() const{ return m_streetAddress; }
45 inline bool StreetAddressHasBeenSet() const { return m_streetAddressHasBeenSet; }
46 inline void SetStreetAddress(const Aws::String& value) { m_streetAddressHasBeenSet = true; m_streetAddress = value; }
47 inline void SetStreetAddress(Aws::String&& value) { m_streetAddressHasBeenSet = true; m_streetAddress = std::move(value); }
48 inline void SetStreetAddress(const char* value) { m_streetAddressHasBeenSet = true; m_streetAddress.assign(value); }
49 inline Address& WithStreetAddress(const Aws::String& value) { SetStreetAddress(value); return *this;}
50 inline Address& WithStreetAddress(Aws::String&& value) { SetStreetAddress(std::move(value)); return *this;}
51 inline Address& WithStreetAddress(const char* value) { SetStreetAddress(value); return *this;}
53
55
58 inline const Aws::String& GetLocality() const{ return m_locality; }
59 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
60 inline void SetLocality(const Aws::String& value) { m_localityHasBeenSet = true; m_locality = value; }
61 inline void SetLocality(Aws::String&& value) { m_localityHasBeenSet = true; m_locality = std::move(value); }
62 inline void SetLocality(const char* value) { m_localityHasBeenSet = true; m_locality.assign(value); }
63 inline Address& WithLocality(const Aws::String& value) { SetLocality(value); return *this;}
64 inline Address& WithLocality(Aws::String&& value) { SetLocality(std::move(value)); return *this;}
65 inline Address& WithLocality(const char* value) { SetLocality(value); return *this;}
67
69
72 inline const Aws::String& GetRegion() const{ return m_region; }
73 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
74 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
75 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
76 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
77 inline Address& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
78 inline Address& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
79 inline Address& WithRegion(const char* value) { SetRegion(value); return *this;}
81
83
86 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
87 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
88 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
89 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
90 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
91 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
92 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
93 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
95
97
100 inline const Aws::String& GetCountry() const{ return m_country; }
101 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
102 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
103 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
104 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
105 inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
106 inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
107 inline Address& WithCountry(const char* value) { SetCountry(value); return *this;}
109
111
114 inline const Aws::String& GetFormatted() const{ return m_formatted; }
115 inline bool FormattedHasBeenSet() const { return m_formattedHasBeenSet; }
116 inline void SetFormatted(const Aws::String& value) { m_formattedHasBeenSet = true; m_formatted = value; }
117 inline void SetFormatted(Aws::String&& value) { m_formattedHasBeenSet = true; m_formatted = std::move(value); }
118 inline void SetFormatted(const char* value) { m_formattedHasBeenSet = true; m_formatted.assign(value); }
119 inline Address& WithFormatted(const Aws::String& value) { SetFormatted(value); return *this;}
120 inline Address& WithFormatted(Aws::String&& value) { SetFormatted(std::move(value)); return *this;}
121 inline Address& WithFormatted(const char* value) { SetFormatted(value); return *this;}
123
125
128 inline const Aws::String& GetType() const{ return m_type; }
129 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
130 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
131 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
132 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
133 inline Address& WithType(const Aws::String& value) { SetType(value); return *this;}
134 inline Address& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
135 inline Address& WithType(const char* value) { SetType(value); return *this;}
137
139
143 inline bool GetPrimary() const{ return m_primary; }
144 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
145 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
146 inline Address& WithPrimary(bool value) { SetPrimary(value); return *this;}
148 private:
149
150 Aws::String m_streetAddress;
151 bool m_streetAddressHasBeenSet = false;
152
153 Aws::String m_locality;
154 bool m_localityHasBeenSet = false;
155
156 Aws::String m_region;
157 bool m_regionHasBeenSet = false;
158
159 Aws::String m_postalCode;
160 bool m_postalCodeHasBeenSet = false;
161
162 Aws::String m_country;
163 bool m_countryHasBeenSet = false;
164
165 Aws::String m_formatted;
166 bool m_formattedHasBeenSet = false;
167
168 Aws::String m_type;
169 bool m_typeHasBeenSet = false;
170
171 bool m_primary;
172 bool m_primaryHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace IdentityStore
177} // namespace Aws
void SetFormatted(Aws::String &&value)
Definition Address.h:117
const Aws::String & GetCountry() const
Definition Address.h:100
void SetLocality(const Aws::String &value)
Definition Address.h:60
Address & WithFormatted(const char *value)
Definition Address.h:121
Address & WithStreetAddress(Aws::String &&value)
Definition Address.h:50
Address & WithCountry(const char *value)
Definition Address.h:107
Address & WithRegion(const Aws::String &value)
Definition Address.h:77
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:91
AWS_IDENTITYSTORE_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetFormatted(const char *value)
Definition Address.h:118
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
Address & WithStreetAddress(const char *value)
Definition Address.h:51
Address & WithRegion(const char *value)
Definition Address.h:79
Address & WithPrimary(bool value)
Definition Address.h:146
Address & WithLocality(Aws::String &&value)
Definition Address.h:64
void SetType(Aws::String &&value)
Definition Address.h:131
AWS_IDENTITYSTORE_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLocality() const
Definition Address.h:58
void SetStreetAddress(const Aws::String &value)
Definition Address.h:46
const Aws::String & GetFormatted() const
Definition Address.h:114
const Aws::String & GetType() const
Definition Address.h:128
void SetFormatted(const Aws::String &value)
Definition Address.h:116
Address & WithLocality(const Aws::String &value)
Definition Address.h:63
void SetCountry(const Aws::String &value)
Definition Address.h:102
Address & WithType(const char *value)
Definition Address.h:135
void SetPostalCode(const Aws::String &value)
Definition Address.h:88
Address & WithStreetAddress(const Aws::String &value)
Definition Address.h:49
Address & WithRegion(Aws::String &&value)
Definition Address.h:78
void SetRegion(const Aws::String &value)
Definition Address.h:74
void SetRegion(const char *value)
Definition Address.h:76
AWS_IDENTITYSTORE_API Address()
const Aws::String & GetPostalCode() const
Definition Address.h:86
void SetPostalCode(Aws::String &&value)
Definition Address.h:89
Address & WithType(const Aws::String &value)
Definition Address.h:133
Address & WithPostalCode(const char *value)
Definition Address.h:93
void SetLocality(const char *value)
Definition Address.h:62
void SetCountry(Aws::String &&value)
Definition Address.h:103
Address & WithLocality(const char *value)
Definition Address.h:65
void SetStreetAddress(const char *value)
Definition Address.h:48
Address & WithFormatted(Aws::String &&value)
Definition Address.h:120
void SetType(const char *value)
Definition Address.h:132
void SetLocality(Aws::String &&value)
Definition Address.h:61
const Aws::String & GetRegion() const
Definition Address.h:72
Address & WithFormatted(const Aws::String &value)
Definition Address.h:119
void SetPostalCode(const char *value)
Definition Address.h:90
Address & WithCountry(Aws::String &&value)
Definition Address.h:106
void SetType(const Aws::String &value)
Definition Address.h:130
void SetStreetAddress(Aws::String &&value)
Definition Address.h:47
const Aws::String & GetStreetAddress() const
Definition Address.h:44
Address & WithCountry(const Aws::String &value)
Definition Address.h:105
void SetCountry(const char *value)
Definition Address.h:104
Address & WithType(Aws::String &&value)
Definition Address.h:134
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:92
void SetRegion(Aws::String &&value)
Definition Address.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue