AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EndpointResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/ChannelType.h>
11#include <aws/pinpoint/model/EndpointDemographic.h>
12#include <aws/pinpoint/model/EndpointLocation.h>
13#include <aws/pinpoint/model/EndpointUser.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Pinpoint
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_PINPOINT_API EndpointResponse();
42 AWS_PINPOINT_API EndpointResponse(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
57 inline const Aws::String& GetAddress() const{ return m_address; }
58 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
59 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
60 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
61 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
62 inline EndpointResponse& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
63 inline EndpointResponse& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
64 inline EndpointResponse& WithAddress(const char* value) { SetAddress(value); return *this;}
66
68
72 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
73 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
74 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
75 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
76 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
77 inline EndpointResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
78 inline EndpointResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
79 inline EndpointResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
81
83
89 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const{ return m_attributes; }
90 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
91 inline void SetAttributes(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
92 inline void SetAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
94 inline EndpointResponse& WithAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAttributes(std::move(value)); return *this;}
95 inline EndpointResponse& AddAttributes(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
96 inline EndpointResponse& AddAttributes(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
97 inline EndpointResponse& AddAttributes(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
98 inline EndpointResponse& AddAttributes(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
99 inline EndpointResponse& AddAttributes(const char* key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
100 inline EndpointResponse& AddAttributes(const char* key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
102
104
108 inline const ChannelType& GetChannelType() const{ return m_channelType; }
109 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
110 inline void SetChannelType(const ChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
111 inline void SetChannelType(ChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); }
112 inline EndpointResponse& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;}
113 inline EndpointResponse& WithChannelType(ChannelType&& value) { SetChannelType(std::move(value)); return *this;}
115
117
123 inline const Aws::String& GetCohortId() const{ return m_cohortId; }
124 inline bool CohortIdHasBeenSet() const { return m_cohortIdHasBeenSet; }
125 inline void SetCohortId(const Aws::String& value) { m_cohortIdHasBeenSet = true; m_cohortId = value; }
126 inline void SetCohortId(Aws::String&& value) { m_cohortIdHasBeenSet = true; m_cohortId = std::move(value); }
127 inline void SetCohortId(const char* value) { m_cohortIdHasBeenSet = true; m_cohortId.assign(value); }
128 inline EndpointResponse& WithCohortId(const Aws::String& value) { SetCohortId(value); return *this;}
129 inline EndpointResponse& WithCohortId(Aws::String&& value) { SetCohortId(std::move(value)); return *this;}
130 inline EndpointResponse& WithCohortId(const char* value) { SetCohortId(value); return *this;}
132
134
137 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
138 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
139 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
140 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
141 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
142 inline EndpointResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
143 inline EndpointResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
144 inline EndpointResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
146
148
152 inline const EndpointDemographic& GetDemographic() const{ return m_demographic; }
153 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
154 inline void SetDemographic(const EndpointDemographic& value) { m_demographicHasBeenSet = true; m_demographic = value; }
155 inline void SetDemographic(EndpointDemographic&& value) { m_demographicHasBeenSet = true; m_demographic = std::move(value); }
156 inline EndpointResponse& WithDemographic(const EndpointDemographic& value) { SetDemographic(value); return *this;}
157 inline EndpointResponse& WithDemographic(EndpointDemographic&& value) { SetDemographic(std::move(value)); return *this;}
159
161
165 inline const Aws::String& GetEffectiveDate() const{ return m_effectiveDate; }
166 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
167 inline void SetEffectiveDate(const Aws::String& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = value; }
168 inline void SetEffectiveDate(Aws::String&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::move(value); }
169 inline void SetEffectiveDate(const char* value) { m_effectiveDateHasBeenSet = true; m_effectiveDate.assign(value); }
170 inline EndpointResponse& WithEffectiveDate(const Aws::String& value) { SetEffectiveDate(value); return *this;}
171 inline EndpointResponse& WithEffectiveDate(Aws::String&& value) { SetEffectiveDate(std::move(value)); return *this;}
172 inline EndpointResponse& WithEffectiveDate(const char* value) { SetEffectiveDate(value); return *this;}
174
176
184 inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; }
185 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
186 inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
187 inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); }
188 inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); }
189 inline EndpointResponse& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;}
190 inline EndpointResponse& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;}
191 inline EndpointResponse& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;}
193
195
200 inline const Aws::String& GetId() const{ return m_id; }
201 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
202 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
203 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
204 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
205 inline EndpointResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
206 inline EndpointResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
207 inline EndpointResponse& WithId(const char* value) { SetId(value); return *this;}
209
211
214 inline const EndpointLocation& GetLocation() const{ return m_location; }
215 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
216 inline void SetLocation(const EndpointLocation& value) { m_locationHasBeenSet = true; m_location = value; }
217 inline void SetLocation(EndpointLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
218 inline EndpointResponse& WithLocation(const EndpointLocation& value) { SetLocation(value); return *this;}
219 inline EndpointResponse& WithLocation(EndpointLocation&& value) { SetLocation(std::move(value)); return *this;}
221
223
227 inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
228 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
229 inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
230 inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
231 inline EndpointResponse& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
232 inline EndpointResponse& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
233 inline EndpointResponse& AddMetrics(const Aws::String& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
234 inline EndpointResponse& AddMetrics(Aws::String&& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
235 inline EndpointResponse& AddMetrics(const char* key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
237
239
246 inline const Aws::String& GetOptOut() const{ return m_optOut; }
247 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
248 inline void SetOptOut(const Aws::String& value) { m_optOutHasBeenSet = true; m_optOut = value; }
249 inline void SetOptOut(Aws::String&& value) { m_optOutHasBeenSet = true; m_optOut = std::move(value); }
250 inline void SetOptOut(const char* value) { m_optOutHasBeenSet = true; m_optOut.assign(value); }
251 inline EndpointResponse& WithOptOut(const Aws::String& value) { SetOptOut(value); return *this;}
252 inline EndpointResponse& WithOptOut(Aws::String&& value) { SetOptOut(std::move(value)); return *this;}
253 inline EndpointResponse& WithOptOut(const char* value) { SetOptOut(value); return *this;}
255
257
260 inline const Aws::String& GetRequestId() const{ return m_requestId; }
261 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
262 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
263 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
264 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
265 inline EndpointResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
266 inline EndpointResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
267 inline EndpointResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;}
269
271
275 inline const EndpointUser& GetUser() const{ return m_user; }
276 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
277 inline void SetUser(const EndpointUser& value) { m_userHasBeenSet = true; m_user = value; }
278 inline void SetUser(EndpointUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
279 inline EndpointResponse& WithUser(const EndpointUser& value) { SetUser(value); return *this;}
280 inline EndpointResponse& WithUser(EndpointUser&& value) { SetUser(std::move(value)); return *this;}
282 private:
283
284 Aws::String m_address;
285 bool m_addressHasBeenSet = false;
286
287 Aws::String m_applicationId;
288 bool m_applicationIdHasBeenSet = false;
289
291 bool m_attributesHasBeenSet = false;
292
293 ChannelType m_channelType;
294 bool m_channelTypeHasBeenSet = false;
295
296 Aws::String m_cohortId;
297 bool m_cohortIdHasBeenSet = false;
298
299 Aws::String m_creationDate;
300 bool m_creationDateHasBeenSet = false;
301
302 EndpointDemographic m_demographic;
303 bool m_demographicHasBeenSet = false;
304
305 Aws::String m_effectiveDate;
306 bool m_effectiveDateHasBeenSet = false;
307
308 Aws::String m_endpointStatus;
309 bool m_endpointStatusHasBeenSet = false;
310
311 Aws::String m_id;
312 bool m_idHasBeenSet = false;
313
314 EndpointLocation m_location;
315 bool m_locationHasBeenSet = false;
316
318 bool m_metricsHasBeenSet = false;
319
320 Aws::String m_optOut;
321 bool m_optOutHasBeenSet = false;
322
323 Aws::String m_requestId;
324 bool m_requestIdHasBeenSet = false;
325
326 EndpointUser m_user;
327 bool m_userHasBeenSet = false;
328 };
329
330} // namespace Model
331} // namespace Pinpoint
332} // namespace Aws
EndpointResponse & AddAttributes(Aws::String &&key, Aws::Vector< Aws::String > &&value)
EndpointResponse & WithCohortId(const char *value)
EndpointResponse & WithLocation(EndpointLocation &&value)
EndpointResponse & AddAttributes(Aws::String &&key, const Aws::Vector< Aws::String > &value)
const EndpointDemographic & GetDemographic() const
const Aws::String & GetRequestId() const
void SetLocation(const EndpointLocation &value)
const EndpointUser & GetUser() const
EndpointResponse & WithAddress(const Aws::String &value)
EndpointResponse & WithApplicationId(const Aws::String &value)
void SetCreationDate(Aws::String &&value)
const Aws::String & GetCohortId() const
EndpointResponse & WithOptOut(const Aws::String &value)
EndpointResponse & WithRequestId(const char *value)
EndpointResponse & WithCreationDate(Aws::String &&value)
EndpointResponse & WithCohortId(Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
const Aws::String & GetCreationDate() const
void SetCohortId(const Aws::String &value)
const Aws::String & GetEndpointStatus() const
void SetUser(const EndpointUser &value)
void SetApplicationId(const Aws::String &value)
EndpointResponse & WithId(const Aws::String &value)
void SetMetrics(Aws::Map< Aws::String, double > &&value)
EndpointResponse & WithId(const char *value)
void SetLocation(EndpointLocation &&value)
EndpointResponse & WithUser(EndpointUser &&value)
EndpointResponse & WithMetrics(const Aws::Map< Aws::String, double > &value)
EndpointResponse & WithEndpointStatus(const char *value)
EndpointResponse & WithDemographic(EndpointDemographic &&value)
void SetChannelType(ChannelType &&value)
void SetAddress(const Aws::String &value)
void SetMetrics(const Aws::Map< Aws::String, double > &value)
EndpointResponse & WithAddress(const char *value)
EndpointResponse & WithAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
EndpointResponse & AddAttributes(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetEndpointStatus(const Aws::String &value)
void SetApplicationId(Aws::String &&value)
void SetOptOut(const Aws::String &value)
AWS_PINPOINT_API EndpointResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointResponse & WithUser(const EndpointUser &value)
EndpointResponse & WithDemographic(const EndpointDemographic &value)
EndpointResponse & WithOptOut(const char *value)
EndpointResponse & AddAttributes(const char *key, const Aws::Vector< Aws::String > &value)
EndpointResponse & WithChannelType(const ChannelType &value)
void SetEffectiveDate(const Aws::String &value)
EndpointResponse & WithLocation(const EndpointLocation &value)
EndpointResponse & AddAttributes(const char *key, Aws::Vector< Aws::String > &&value)
EndpointResponse & WithCreationDate(const Aws::String &value)
EndpointResponse & AddMetrics(Aws::String &&key, double value)
EndpointResponse & WithEffectiveDate(Aws::String &&value)
EndpointResponse & WithCohortId(const Aws::String &value)
EndpointResponse & AddAttributes(const Aws::String &key, Aws::Vector< Aws::String > &&value)
EndpointResponse & WithAddress(Aws::String &&value)
EndpointResponse & WithId(Aws::String &&value)
EndpointResponse & AddMetrics(const Aws::String &key, double value)
void SetId(const Aws::String &value)
EndpointResponse & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetDemographic(EndpointDemographic &&value)
void SetChannelType(const ChannelType &value)
const Aws::String & GetApplicationId() const
EndpointResponse & WithMetrics(Aws::Map< Aws::String, double > &&value)
void SetEndpointStatus(Aws::String &&value)
EndpointResponse & WithRequestId(const Aws::String &value)
EndpointResponse & WithEndpointStatus(Aws::String &&value)
const Aws::String & GetAddress() const
EndpointResponse & AddMetrics(const char *key, double value)
EndpointResponse & WithEndpointStatus(const Aws::String &value)
EndpointResponse & WithChannelType(ChannelType &&value)
const EndpointLocation & GetLocation() const
EndpointResponse & WithCreationDate(const char *value)
void SetDemographic(const EndpointDemographic &value)
AWS_PINPOINT_API EndpointResponse(Aws::Utils::Json::JsonView jsonValue)
EndpointResponse & WithApplicationId(const char *value)
EndpointResponse & WithEffectiveDate(const char *value)
void SetCreationDate(const Aws::String &value)
EndpointResponse & WithAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
const Aws::String & GetOptOut() const
const Aws::String & GetEffectiveDate() const
void SetEffectiveDate(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointResponse & WithOptOut(Aws::String &&value)
EndpointResponse & WithApplicationId(Aws::String &&value)
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointResponse & WithEffectiveDate(const Aws::String &value)
const ChannelType & GetChannelType() const
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue