AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#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 CustomerProfiles
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API AddressDimension() = default;
36 AWS_CUSTOMERPROFILES_API AddressDimension(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API AddressDimension& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ProfileDimension& GetCity() const { return m_city; }
46 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
47 template<typename CityT = ProfileDimension>
48 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
49 template<typename CityT = ProfileDimension>
50 AddressDimension& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
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) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
61 template<typename CountryT = ProfileDimension>
62 AddressDimension& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
64
66
69 inline const ProfileDimension& GetCounty() const { return m_county; }
70 inline bool CountyHasBeenSet() const { return m_countyHasBeenSet; }
71 template<typename CountyT = ProfileDimension>
72 void SetCounty(CountyT&& value) { m_countyHasBeenSet = true; m_county = std::forward<CountyT>(value); }
73 template<typename CountyT = ProfileDimension>
74 AddressDimension& WithCounty(CountyT&& value) { SetCounty(std::forward<CountyT>(value)); return *this;}
76
78
81 inline const ProfileDimension& GetPostalCode() const { return m_postalCode; }
82 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
83 template<typename PostalCodeT = ProfileDimension>
84 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
85 template<typename PostalCodeT = ProfileDimension>
86 AddressDimension& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
88
90
93 inline const ProfileDimension& GetProvince() const { return m_province; }
94 inline bool ProvinceHasBeenSet() const { return m_provinceHasBeenSet; }
95 template<typename ProvinceT = ProfileDimension>
96 void SetProvince(ProvinceT&& value) { m_provinceHasBeenSet = true; m_province = std::forward<ProvinceT>(value); }
97 template<typename ProvinceT = ProfileDimension>
98 AddressDimension& WithProvince(ProvinceT&& value) { SetProvince(std::forward<ProvinceT>(value)); return *this;}
100
102
105 inline const ProfileDimension& GetState() const { return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 template<typename StateT = ProfileDimension>
108 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
109 template<typename StateT = ProfileDimension>
110 AddressDimension& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
112 private:
113
114 ProfileDimension m_city;
115 bool m_cityHasBeenSet = false;
116
117 ProfileDimension m_country;
118 bool m_countryHasBeenSet = false;
119
120 ProfileDimension m_county;
121 bool m_countyHasBeenSet = false;
122
123 ProfileDimension m_postalCode;
124 bool m_postalCodeHasBeenSet = false;
125
126 ProfileDimension m_province;
127 bool m_provinceHasBeenSet = false;
128
129 ProfileDimension m_state;
130 bool m_stateHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CustomerProfiles
135} // 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