AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
EndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/ChannelType.h>
12#include <aws/pinpoint/model/EndpointDemographic.h>
13#include <aws/pinpoint/model/EndpointLocation.h>
14#include <aws/pinpoint/model/EndpointUser.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint {
26namespace Model {
27
35 public:
36 AWS_PINPOINT_API EndpointRequest() = default;
37 AWS_PINPOINT_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
50 inline const Aws::String& GetAddress() const { return m_address; }
51 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
52 template <typename AddressT = Aws::String>
53 void SetAddress(AddressT&& value) {
54 m_addressHasBeenSet = true;
55 m_address = std::forward<AddressT>(value);
56 }
57 template <typename AddressT = Aws::String>
58 EndpointRequest& WithAddress(AddressT&& value) {
59 SetAddress(std::forward<AddressT>(value));
60 return *this;
61 }
63
65
77 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const { return m_attributes; }
78 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
79 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
80 void SetAttributes(AttributesT&& value) {
81 m_attributesHasBeenSet = true;
82 m_attributes = std::forward<AttributesT>(value);
83 }
84 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
85 EndpointRequest& WithAttributes(AttributesT&& value) {
86 SetAttributes(std::forward<AttributesT>(value));
87 return *this;
88 }
89 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
90 EndpointRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
91 m_attributesHasBeenSet = true;
92 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
93 return *this;
94 }
96
98
102 inline ChannelType GetChannelType() const { return m_channelType; }
103 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
104 inline void SetChannelType(ChannelType value) {
105 m_channelTypeHasBeenSet = true;
106 m_channelType = value;
107 }
109 SetChannelType(value);
110 return *this;
111 }
113
115
119 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
120 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
121 template <typename DemographicT = EndpointDemographic>
122 void SetDemographic(DemographicT&& value) {
123 m_demographicHasBeenSet = true;
124 m_demographic = std::forward<DemographicT>(value);
125 }
126 template <typename DemographicT = EndpointDemographic>
127 EndpointRequest& WithDemographic(DemographicT&& value) {
128 SetDemographic(std::forward<DemographicT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
138 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
139 template <typename EffectiveDateT = Aws::String>
140 void SetEffectiveDate(EffectiveDateT&& value) {
141 m_effectiveDateHasBeenSet = true;
142 m_effectiveDate = std::forward<EffectiveDateT>(value);
143 }
144 template <typename EffectiveDateT = Aws::String>
145 EndpointRequest& WithEffectiveDate(EffectiveDateT&& value) {
146 SetEffectiveDate(std::forward<EffectiveDateT>(value));
147 return *this;
148 }
150
152
160 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
161 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
162 template <typename EndpointStatusT = Aws::String>
163 void SetEndpointStatus(EndpointStatusT&& value) {
164 m_endpointStatusHasBeenSet = true;
165 m_endpointStatus = std::forward<EndpointStatusT>(value);
166 }
167 template <typename EndpointStatusT = Aws::String>
168 EndpointRequest& WithEndpointStatus(EndpointStatusT&& value) {
169 SetEndpointStatus(std::forward<EndpointStatusT>(value));
170 return *this;
171 }
173
175
178 inline const EndpointLocation& GetLocation() const { return m_location; }
179 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
180 template <typename LocationT = EndpointLocation>
181 void SetLocation(LocationT&& value) {
182 m_locationHasBeenSet = true;
183 m_location = std::forward<LocationT>(value);
184 }
185 template <typename LocationT = EndpointLocation>
186 EndpointRequest& WithLocation(LocationT&& value) {
187 SetLocation(std::forward<LocationT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
198 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
199 template <typename MetricsT = Aws::Map<Aws::String, double>>
200 void SetMetrics(MetricsT&& value) {
201 m_metricsHasBeenSet = true;
202 m_metrics = std::forward<MetricsT>(value);
203 }
204 template <typename MetricsT = Aws::Map<Aws::String, double>>
205 EndpointRequest& WithMetrics(MetricsT&& value) {
206 SetMetrics(std::forward<MetricsT>(value));
207 return *this;
208 }
209 inline EndpointRequest& AddMetrics(Aws::String key, double value) {
210 m_metricsHasBeenSet = true;
211 m_metrics.emplace(key, value);
212 return *this;
213 }
215
217
224 inline const Aws::String& GetOptOut() const { return m_optOut; }
225 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
226 template <typename OptOutT = Aws::String>
227 void SetOptOut(OptOutT&& value) {
228 m_optOutHasBeenSet = true;
229 m_optOut = std::forward<OptOutT>(value);
230 }
231 template <typename OptOutT = Aws::String>
232 EndpointRequest& WithOptOut(OptOutT&& value) {
233 SetOptOut(std::forward<OptOutT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetRequestId() const { return m_requestId; }
243 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
244 template <typename RequestIdT = Aws::String>
245 void SetRequestId(RequestIdT&& value) {
246 m_requestIdHasBeenSet = true;
247 m_requestId = std::forward<RequestIdT>(value);
248 }
249 template <typename RequestIdT = Aws::String>
250 EndpointRequest& WithRequestId(RequestIdT&& value) {
251 SetRequestId(std::forward<RequestIdT>(value));
252 return *this;
253 }
255
257
261 inline const EndpointUser& GetUser() const { return m_user; }
262 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
263 template <typename UserT = EndpointUser>
264 void SetUser(UserT&& value) {
265 m_userHasBeenSet = true;
266 m_user = std::forward<UserT>(value);
267 }
268 template <typename UserT = EndpointUser>
269 EndpointRequest& WithUser(UserT&& value) {
270 SetUser(std::forward<UserT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_address;
276
278
279 ChannelType m_channelType{ChannelType::NOT_SET};
280
281 EndpointDemographic m_demographic;
282
283 Aws::String m_effectiveDate;
284
285 Aws::String m_endpointStatus;
286
287 EndpointLocation m_location;
288
290
291 Aws::String m_optOut;
292
293 Aws::String m_requestId;
294
295 EndpointUser m_user;
296 bool m_addressHasBeenSet = false;
297 bool m_attributesHasBeenSet = false;
298 bool m_channelTypeHasBeenSet = false;
299 bool m_demographicHasBeenSet = false;
300 bool m_effectiveDateHasBeenSet = false;
301 bool m_endpointStatusHasBeenSet = false;
302 bool m_locationHasBeenSet = false;
303 bool m_metricsHasBeenSet = false;
304 bool m_optOutHasBeenSet = false;
305 bool m_requestIdHasBeenSet = false;
306 bool m_userHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace Pinpoint
311} // namespace Aws
const Aws::String & GetOptOut() const
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointRequest & WithChannelType(ChannelType value)
const Aws::String & GetAddress() const
const EndpointDemographic & GetDemographic() const
EndpointRequest & WithEffectiveDate(EffectiveDateT &&value)
EndpointRequest & WithDemographic(DemographicT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
EndpointRequest & WithRequestId(RequestIdT &&value)
EndpointRequest & WithMetrics(MetricsT &&value)
EndpointRequest & WithUser(UserT &&value)
EndpointRequest & WithEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAttributes(AttributesT &&value)
EndpointRequest & WithLocation(LocationT &&value)
EndpointRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::String & GetEndpointStatus() const
void SetEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDemographic(DemographicT &&value)
EndpointRequest & AddMetrics(Aws::String key, double value)
const Aws::String & GetEffectiveDate() const
AWS_PINPOINT_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAddress(AddressT &&value)
EndpointRequest & WithOptOut(OptOutT &&value)
const EndpointLocation & GetLocation() const
void SetEffectiveDate(EffectiveDateT &&value)
void SetAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
AWS_PINPOINT_API EndpointRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue