AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AddressDimension.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/ProfileDimension.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API AddressDimension() = default;
31 AWS_CUSTOMERPROFILES_API AddressDimension(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API AddressDimension& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const ProfileDimension& GetCity() const { return m_city; }
40 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
41 template <typename CityT = ProfileDimension>
42 void SetCity(CityT&& value) {
43 m_cityHasBeenSet = true;
44 m_city = std::forward<CityT>(value);
45 }
46 template <typename CityT = ProfileDimension>
47 AddressDimension& WithCity(CityT&& value) {
48 SetCity(std::forward<CityT>(value));
49 return *this;
50 }
52
54
57 inline const ProfileDimension& GetCountry() const { return m_country; }
58 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
59 template <typename CountryT = ProfileDimension>
60 void SetCountry(CountryT&& value) {
61 m_countryHasBeenSet = true;
62 m_country = std::forward<CountryT>(value);
63 }
64 template <typename CountryT = ProfileDimension>
65 AddressDimension& WithCountry(CountryT&& value) {
66 SetCountry(std::forward<CountryT>(value));
67 return *this;
68 }
70
72
75 inline const ProfileDimension& GetCounty() const { return m_county; }
76 inline bool CountyHasBeenSet() const { return m_countyHasBeenSet; }
77 template <typename CountyT = ProfileDimension>
78 void SetCounty(CountyT&& value) {
79 m_countyHasBeenSet = true;
80 m_county = std::forward<CountyT>(value);
81 }
82 template <typename CountyT = ProfileDimension>
83 AddressDimension& WithCounty(CountyT&& value) {
84 SetCounty(std::forward<CountyT>(value));
85 return *this;
86 }
88
90
93 inline const ProfileDimension& GetPostalCode() const { return m_postalCode; }
94 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
95 template <typename PostalCodeT = ProfileDimension>
96 void SetPostalCode(PostalCodeT&& value) {
97 m_postalCodeHasBeenSet = true;
98 m_postalCode = std::forward<PostalCodeT>(value);
99 }
100 template <typename PostalCodeT = ProfileDimension>
101 AddressDimension& WithPostalCode(PostalCodeT&& value) {
102 SetPostalCode(std::forward<PostalCodeT>(value));
103 return *this;
104 }
106
108
111 inline const ProfileDimension& GetProvince() const { return m_province; }
112 inline bool ProvinceHasBeenSet() const { return m_provinceHasBeenSet; }
113 template <typename ProvinceT = ProfileDimension>
114 void SetProvince(ProvinceT&& value) {
115 m_provinceHasBeenSet = true;
116 m_province = std::forward<ProvinceT>(value);
117 }
118 template <typename ProvinceT = ProfileDimension>
119 AddressDimension& WithProvince(ProvinceT&& value) {
120 SetProvince(std::forward<ProvinceT>(value));
121 return *this;
122 }
124
126
129 inline const ProfileDimension& GetState() const { return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 template <typename StateT = ProfileDimension>
132 void SetState(StateT&& value) {
133 m_stateHasBeenSet = true;
134 m_state = std::forward<StateT>(value);
135 }
136 template <typename StateT = ProfileDimension>
137 AddressDimension& WithState(StateT&& value) {
138 SetState(std::forward<StateT>(value));
139 return *this;
140 }
142 private:
143 ProfileDimension m_city;
144
145 ProfileDimension m_country;
146
147 ProfileDimension m_county;
148
149 ProfileDimension m_postalCode;
150
151 ProfileDimension m_province;
152
153 ProfileDimension m_state;
154 bool m_cityHasBeenSet = false;
155 bool m_countryHasBeenSet = false;
156 bool m_countyHasBeenSet = false;
157 bool m_postalCodeHasBeenSet = false;
158 bool m_provinceHasBeenSet = false;
159 bool m_stateHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace CustomerProfiles
164} // namespace Aws
AWS_CUSTOMERPROFILES_API AddressDimension(Aws::Utils::Json::JsonView jsonValue)
AddressDimension & WithState(StateT &&value)
const ProfileDimension & GetProvince() const
const ProfileDimension & GetCountry() const
AddressDimension & WithCity(CityT &&value)
const ProfileDimension & GetState() const
AWS_CUSTOMERPROFILES_API AddressDimension()=default
AddressDimension & WithProvince(ProvinceT &&value)
AddressDimension & WithPostalCode(PostalCodeT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const ProfileDimension & GetCity() const
const ProfileDimension & GetCounty() const
const ProfileDimension & GetPostalCode() const
AWS_CUSTOMERPROFILES_API AddressDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
AddressDimension & WithCounty(CountyT &&value)
AddressDimension & WithCountry(CountryT &&value)
Aws::Utils::Json::JsonValue JsonValue