AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
DeveloperAddress.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMonetization {
20namespace Model {
21
29 public:
30 AWS_APPMONETIZATION_API DeveloperAddress() = default;
31 AWS_APPMONETIZATION_API DeveloperAddress(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API DeveloperAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStreet1() const { return m_street1; }
40 inline bool Street1HasBeenSet() const { return m_street1HasBeenSet; }
41 template <typename Street1T = Aws::String>
42 void SetStreet1(Street1T&& value) {
43 m_street1HasBeenSet = true;
44 m_street1 = std::forward<Street1T>(value);
45 }
46 template <typename Street1T = Aws::String>
47 DeveloperAddress& WithStreet1(Street1T&& value) {
48 SetStreet1(std::forward<Street1T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetStreet2() const { return m_street2; }
58 inline bool Street2HasBeenSet() const { return m_street2HasBeenSet; }
59 template <typename Street2T = Aws::String>
60 void SetStreet2(Street2T&& value) {
61 m_street2HasBeenSet = true;
62 m_street2 = std::forward<Street2T>(value);
63 }
64 template <typename Street2T = Aws::String>
65 DeveloperAddress& WithStreet2(Street2T&& value) {
66 SetStreet2(std::forward<Street2T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCity() const { return m_city; }
76 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
77 template <typename CityT = Aws::String>
78 void SetCity(CityT&& value) {
79 m_cityHasBeenSet = true;
80 m_city = std::forward<CityT>(value);
81 }
82 template <typename CityT = Aws::String>
83 DeveloperAddress& WithCity(CityT&& value) {
84 SetCity(std::forward<CityT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetState() const { return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 template <typename StateT = Aws::String>
96 void SetState(StateT&& value) {
97 m_stateHasBeenSet = true;
98 m_state = std::forward<StateT>(value);
99 }
100 template <typename StateT = Aws::String>
101 DeveloperAddress& WithState(StateT&& value) {
102 SetState(std::forward<StateT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
112 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
113 template <typename PostalCodeT = Aws::String>
114 void SetPostalCode(PostalCodeT&& value) {
115 m_postalCodeHasBeenSet = true;
116 m_postalCode = std::forward<PostalCodeT>(value);
117 }
118 template <typename PostalCodeT = Aws::String>
119 DeveloperAddress& WithPostalCode(PostalCodeT&& value) {
120 SetPostalCode(std::forward<PostalCodeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCountry() const { return m_country; }
130 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
131 template <typename CountryT = Aws::String>
132 void SetCountry(CountryT&& value) {
133 m_countryHasBeenSet = true;
134 m_country = std::forward<CountryT>(value);
135 }
136 template <typename CountryT = Aws::String>
137 DeveloperAddress& WithCountry(CountryT&& value) {
138 SetCountry(std::forward<CountryT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_street1;
144
145 Aws::String m_street2;
146
147 Aws::String m_city;
148
149 Aws::String m_state;
150
151 Aws::String m_postalCode;
152
153 Aws::String m_country;
154 bool m_street1HasBeenSet = false;
155 bool m_street2HasBeenSet = false;
156 bool m_cityHasBeenSet = false;
157 bool m_stateHasBeenSet = false;
158 bool m_postalCodeHasBeenSet = false;
159 bool m_countryHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace AppMonetization
164} // namespace Aws
DeveloperAddress & WithStreet1(Street1T &&value)
DeveloperAddress & WithCity(CityT &&value)
DeveloperAddress & WithStreet2(Street2T &&value)
DeveloperAddress & WithCountry(CountryT &&value)
DeveloperAddress & WithState(StateT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API DeveloperAddress(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API DeveloperAddress()=default
AWS_APPMONETIZATION_API DeveloperAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
DeveloperAddress & WithPostalCode(PostalCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue