AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StreetAddressT = Aws::String>
47 void SetStreetAddress(StreetAddressT&& value) { m_streetAddressHasBeenSet = true; m_streetAddress = std::forward<StreetAddressT>(value); }
48 template<typename StreetAddressT = Aws::String>
49 Address& WithStreetAddress(StreetAddressT&& value) { SetStreetAddress(std::forward<StreetAddressT>(value)); return *this;}
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) { m_localityHasBeenSet = true; m_locality = std::forward<LocalityT>(value); }
60 template<typename LocalityT = Aws::String>
61 Address& WithLocality(LocalityT&& value) { SetLocality(std::forward<LocalityT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRegion() const { return m_region; }
69 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
70 template<typename RegionT = Aws::String>
71 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
72 template<typename RegionT = Aws::String>
73 Address& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
75
77
80 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
81 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
82 template<typename PostalCodeT = Aws::String>
83 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
84 template<typename PostalCodeT = Aws::String>
85 Address& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
87
89
92 inline const Aws::String& GetCountry() const { return m_country; }
93 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
94 template<typename CountryT = Aws::String>
95 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
96 template<typename CountryT = Aws::String>
97 Address& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
99
101
104 inline const Aws::String& GetFormatted() const { return m_formatted; }
105 inline bool FormattedHasBeenSet() const { return m_formattedHasBeenSet; }
106 template<typename FormattedT = Aws::String>
107 void SetFormatted(FormattedT&& value) { m_formattedHasBeenSet = true; m_formatted = std::forward<FormattedT>(value); }
108 template<typename FormattedT = Aws::String>
109 Address& WithFormatted(FormattedT&& value) { SetFormatted(std::forward<FormattedT>(value)); return *this;}
111
113
116 inline const Aws::String& GetType() const { return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 template<typename TypeT = Aws::String>
119 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
120 template<typename TypeT = Aws::String>
121 Address& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
123
125
129 inline bool GetPrimary() const { return m_primary; }
130 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
131 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
132 inline Address& WithPrimary(bool value) { SetPrimary(value); return *this;}
134 private:
135
136 Aws::String m_streetAddress;
137 bool m_streetAddressHasBeenSet = false;
138
139 Aws::String m_locality;
140 bool m_localityHasBeenSet = false;
141
142 Aws::String m_region;
143 bool m_regionHasBeenSet = false;
144
145 Aws::String m_postalCode;
146 bool m_postalCodeHasBeenSet = false;
147
148 Aws::String m_country;
149 bool m_countryHasBeenSet = false;
150
151 Aws::String m_formatted;
152 bool m_formattedHasBeenSet = false;
153
154 Aws::String m_type;
155 bool m_typeHasBeenSet = false;
156
157 bool m_primary{false};
158 bool m_primaryHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace IdentityStore
163} // namespace Aws
const Aws::String & GetCountry() const
Definition Address.h:92
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:83
Address & WithFormatted(FormattedT &&value)
Definition Address.h:109
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:119
Address & WithPrimary(bool value)
Definition Address.h:132
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:49
const Aws::String & GetFormatted() const
Definition Address.h:104
const Aws::String & GetType() const
Definition Address.h:116
void SetRegion(RegionT &&value)
Definition Address.h:71
Address & WithLocality(LocalityT &&value)
Definition Address.h:61
const Aws::String & GetPostalCode() const
Definition Address.h:80
Address & WithType(TypeT &&value)
Definition Address.h:121
void SetLocality(LocalityT &&value)
Definition Address.h:59
void SetFormatted(FormattedT &&value)
Definition Address.h:107
void SetCountry(CountryT &&value)
Definition Address.h:95
const Aws::String & GetRegion() const
Definition Address.h:68
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:85
Address & WithRegion(RegionT &&value)
Definition Address.h:73
Address & WithCountry(CountryT &&value)
Definition Address.h:97
const Aws::String & GetStreetAddress() const
Definition Address.h:44
void SetStreetAddress(StreetAddressT &&value)
Definition Address.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue