AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EndpointResponse.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 EndpointResponse() = default;
37 AWS_PINPOINT_API EndpointResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
51 inline const Aws::String& GetAddress() const { return m_address; }
52 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
53 template <typename AddressT = Aws::String>
54 void SetAddress(AddressT&& value) {
55 m_addressHasBeenSet = true;
56 m_address = std::forward<AddressT>(value);
57 }
58 template <typename AddressT = Aws::String>
59 EndpointResponse& WithAddress(AddressT&& value) {
60 SetAddress(std::forward<AddressT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
71 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
72 template <typename ApplicationIdT = Aws::String>
73 void SetApplicationId(ApplicationIdT&& value) {
74 m_applicationIdHasBeenSet = true;
75 m_applicationId = std::forward<ApplicationIdT>(value);
76 }
77 template <typename ApplicationIdT = Aws::String>
78 EndpointResponse& WithApplicationId(ApplicationIdT&& value) {
79 SetApplicationId(std::forward<ApplicationIdT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const { return m_attributes; }
92 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
93 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
94 void SetAttributes(AttributesT&& value) {
95 m_attributesHasBeenSet = true;
96 m_attributes = std::forward<AttributesT>(value);
97 }
98 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
99 EndpointResponse& WithAttributes(AttributesT&& value) {
100 SetAttributes(std::forward<AttributesT>(value));
101 return *this;
102 }
103 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
104 EndpointResponse& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
105 m_attributesHasBeenSet = true;
106 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
107 return *this;
108 }
110
112
116 inline ChannelType GetChannelType() const { return m_channelType; }
117 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
118 inline void SetChannelType(ChannelType value) {
119 m_channelTypeHasBeenSet = true;
120 m_channelType = value;
121 }
123 SetChannelType(value);
124 return *this;
125 }
127
129
135 inline const Aws::String& GetCohortId() const { return m_cohortId; }
136 inline bool CohortIdHasBeenSet() const { return m_cohortIdHasBeenSet; }
137 template <typename CohortIdT = Aws::String>
138 void SetCohortId(CohortIdT&& value) {
139 m_cohortIdHasBeenSet = true;
140 m_cohortId = std::forward<CohortIdT>(value);
141 }
142 template <typename CohortIdT = Aws::String>
143 EndpointResponse& WithCohortId(CohortIdT&& value) {
144 SetCohortId(std::forward<CohortIdT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
154 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
155 template <typename CreationDateT = Aws::String>
156 void SetCreationDate(CreationDateT&& value) {
157 m_creationDateHasBeenSet = true;
158 m_creationDate = std::forward<CreationDateT>(value);
159 }
160 template <typename CreationDateT = Aws::String>
161 EndpointResponse& WithCreationDate(CreationDateT&& value) {
162 SetCreationDate(std::forward<CreationDateT>(value));
163 return *this;
164 }
166
168
172 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
173 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
174 template <typename DemographicT = EndpointDemographic>
175 void SetDemographic(DemographicT&& value) {
176 m_demographicHasBeenSet = true;
177 m_demographic = std::forward<DemographicT>(value);
178 }
179 template <typename DemographicT = EndpointDemographic>
180 EndpointResponse& WithDemographic(DemographicT&& value) {
181 SetDemographic(std::forward<DemographicT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
192 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
193 template <typename EffectiveDateT = Aws::String>
194 void SetEffectiveDate(EffectiveDateT&& value) {
195 m_effectiveDateHasBeenSet = true;
196 m_effectiveDate = std::forward<EffectiveDateT>(value);
197 }
198 template <typename EffectiveDateT = Aws::String>
199 EndpointResponse& WithEffectiveDate(EffectiveDateT&& value) {
200 SetEffectiveDate(std::forward<EffectiveDateT>(value));
201 return *this;
202 }
204
206
214 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
215 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
216 template <typename EndpointStatusT = Aws::String>
217 void SetEndpointStatus(EndpointStatusT&& value) {
218 m_endpointStatusHasBeenSet = true;
219 m_endpointStatus = std::forward<EndpointStatusT>(value);
220 }
221 template <typename EndpointStatusT = Aws::String>
222 EndpointResponse& WithEndpointStatus(EndpointStatusT&& value) {
223 SetEndpointStatus(std::forward<EndpointStatusT>(value));
224 return *this;
225 }
227
229
234 inline const Aws::String& GetId() const { return m_id; }
235 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
236 template <typename IdT = Aws::String>
237 void SetId(IdT&& value) {
238 m_idHasBeenSet = true;
239 m_id = std::forward<IdT>(value);
240 }
241 template <typename IdT = Aws::String>
242 EndpointResponse& WithId(IdT&& value) {
243 SetId(std::forward<IdT>(value));
244 return *this;
245 }
247
249
252 inline const EndpointLocation& GetLocation() const { return m_location; }
253 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
254 template <typename LocationT = EndpointLocation>
255 void SetLocation(LocationT&& value) {
256 m_locationHasBeenSet = true;
257 m_location = std::forward<LocationT>(value);
258 }
259 template <typename LocationT = EndpointLocation>
260 EndpointResponse& WithLocation(LocationT&& value) {
261 SetLocation(std::forward<LocationT>(value));
262 return *this;
263 }
265
267
271 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
272 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
273 template <typename MetricsT = Aws::Map<Aws::String, double>>
274 void SetMetrics(MetricsT&& value) {
275 m_metricsHasBeenSet = true;
276 m_metrics = std::forward<MetricsT>(value);
277 }
278 template <typename MetricsT = Aws::Map<Aws::String, double>>
279 EndpointResponse& WithMetrics(MetricsT&& value) {
280 SetMetrics(std::forward<MetricsT>(value));
281 return *this;
282 }
283 inline EndpointResponse& AddMetrics(Aws::String key, double value) {
284 m_metricsHasBeenSet = true;
285 m_metrics.emplace(key, value);
286 return *this;
287 }
289
291
298 inline const Aws::String& GetOptOut() const { return m_optOut; }
299 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
300 template <typename OptOutT = Aws::String>
301 void SetOptOut(OptOutT&& value) {
302 m_optOutHasBeenSet = true;
303 m_optOut = std::forward<OptOutT>(value);
304 }
305 template <typename OptOutT = Aws::String>
306 EndpointResponse& WithOptOut(OptOutT&& value) {
307 SetOptOut(std::forward<OptOutT>(value));
308 return *this;
309 }
311
313
316 inline const Aws::String& GetRequestId() const { return m_requestId; }
317 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
318 template <typename RequestIdT = Aws::String>
319 void SetRequestId(RequestIdT&& value) {
320 m_requestIdHasBeenSet = true;
321 m_requestId = std::forward<RequestIdT>(value);
322 }
323 template <typename RequestIdT = Aws::String>
324 EndpointResponse& WithRequestId(RequestIdT&& value) {
325 SetRequestId(std::forward<RequestIdT>(value));
326 return *this;
327 }
329
331
335 inline const EndpointUser& GetUser() const { return m_user; }
336 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
337 template <typename UserT = EndpointUser>
338 void SetUser(UserT&& value) {
339 m_userHasBeenSet = true;
340 m_user = std::forward<UserT>(value);
341 }
342 template <typename UserT = EndpointUser>
343 EndpointResponse& WithUser(UserT&& value) {
344 SetUser(std::forward<UserT>(value));
345 return *this;
346 }
348 private:
349 Aws::String m_address;
350
351 Aws::String m_applicationId;
352
354
355 ChannelType m_channelType{ChannelType::NOT_SET};
356
357 Aws::String m_cohortId;
358
359 Aws::String m_creationDate;
360
361 EndpointDemographic m_demographic;
362
363 Aws::String m_effectiveDate;
364
365 Aws::String m_endpointStatus;
366
367 Aws::String m_id;
368
369 EndpointLocation m_location;
370
372
373 Aws::String m_optOut;
374
375 Aws::String m_requestId;
376
377 EndpointUser m_user;
378 bool m_addressHasBeenSet = false;
379 bool m_applicationIdHasBeenSet = false;
380 bool m_attributesHasBeenSet = false;
381 bool m_channelTypeHasBeenSet = false;
382 bool m_cohortIdHasBeenSet = false;
383 bool m_creationDateHasBeenSet = false;
384 bool m_demographicHasBeenSet = false;
385 bool m_effectiveDateHasBeenSet = false;
386 bool m_endpointStatusHasBeenSet = false;
387 bool m_idHasBeenSet = false;
388 bool m_locationHasBeenSet = false;
389 bool m_metricsHasBeenSet = false;
390 bool m_optOutHasBeenSet = false;
391 bool m_requestIdHasBeenSet = false;
392 bool m_userHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace Pinpoint
397} // namespace Aws
EndpointResponse & WithChannelType(ChannelType value)
EndpointResponse & WithOptOut(OptOutT &&value)
EndpointResponse & WithLocation(LocationT &&value)
const EndpointDemographic & GetDemographic() const
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
EndpointResponse & AddMetrics(Aws::String key, double value)
const Aws::String & GetCohortId() const
EndpointResponse & WithDemographic(DemographicT &&value)
EndpointResponse & WithMetrics(MetricsT &&value)
const Aws::String & GetCreationDate() const
EndpointResponse & WithId(IdT &&value)
const Aws::String & GetEndpointStatus() const
void SetEndpointStatus(EndpointStatusT &&value)
EndpointResponse & WithApplicationId(ApplicationIdT &&value)
EndpointResponse & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
EndpointResponse & WithCreationDate(CreationDateT &&value)
void SetDemographic(DemographicT &&value)
EndpointResponse & WithEffectiveDate(EffectiveDateT &&value)
AWS_PINPOINT_API EndpointResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointResponse & WithAddress(AddressT &&value)
void SetEffectiveDate(EffectiveDateT &&value)
EndpointResponse & WithCohortId(CohortIdT &&value)
EndpointResponse & WithAttributes(AttributesT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetApplicationId() const
void SetAttributes(AttributesT &&value)
const Aws::String & GetAddress() const
const EndpointLocation & GetLocation() const
void SetApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API EndpointResponse(Aws::Utils::Json::JsonView jsonValue)
EndpointResponse & WithUser(UserT &&value)
EndpointResponse & WithRequestId(RequestIdT &&value)
EndpointResponse & WithEndpointStatus(EndpointStatusT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
const Aws::String & GetOptOut() const
const Aws::String & GetEffectiveDate() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, double > & GetMetrics() const
AWS_PINPOINT_API EndpointResponse()=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