AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AddressT = Aws::String>
60 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
61 template<typename AddressT = Aws::String>
62 EndpointResponse& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
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) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
74 template<typename ApplicationIdT = Aws::String>
75 EndpointResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
77
79
85 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const { return m_attributes; }
86 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
87 template<typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
88 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
89 template<typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
90 EndpointResponse& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
91 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
92 EndpointResponse& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
93 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); 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) { m_channelTypeHasBeenSet = true; m_channelType = value; }
105 inline EndpointResponse& WithChannelType(ChannelType value) { SetChannelType(value); return *this;}
107
109
115 inline const Aws::String& GetCohortId() const { return m_cohortId; }
116 inline bool CohortIdHasBeenSet() const { return m_cohortIdHasBeenSet; }
117 template<typename CohortIdT = Aws::String>
118 void SetCohortId(CohortIdT&& value) { m_cohortIdHasBeenSet = true; m_cohortId = std::forward<CohortIdT>(value); }
119 template<typename CohortIdT = Aws::String>
120 EndpointResponse& WithCohortId(CohortIdT&& value) { SetCohortId(std::forward<CohortIdT>(value)); return *this;}
122
124
127 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
128 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
129 template<typename CreationDateT = Aws::String>
130 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
131 template<typename CreationDateT = Aws::String>
132 EndpointResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
134
136
140 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
141 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
142 template<typename DemographicT = EndpointDemographic>
143 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet = true; m_demographic = std::forward<DemographicT>(value); }
144 template<typename DemographicT = EndpointDemographic>
145 EndpointResponse& WithDemographic(DemographicT&& value) { SetDemographic(std::forward<DemographicT>(value)); return *this;}
147
149
153 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
154 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
155 template<typename EffectiveDateT = Aws::String>
156 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
157 template<typename EffectiveDateT = Aws::String>
158 EndpointResponse& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
160
162
170 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
171 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
172 template<typename EndpointStatusT = Aws::String>
173 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
174 template<typename EndpointStatusT = Aws::String>
175 EndpointResponse& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
177
179
184 inline const Aws::String& GetId() const { return m_id; }
185 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
186 template<typename IdT = Aws::String>
187 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
188 template<typename IdT = Aws::String>
189 EndpointResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
191
193
196 inline const EndpointLocation& GetLocation() const { return m_location; }
197 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
198 template<typename LocationT = EndpointLocation>
199 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
200 template<typename LocationT = EndpointLocation>
201 EndpointResponse& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
203
205
209 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
210 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
211 template<typename MetricsT = Aws::Map<Aws::String, double>>
212 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
213 template<typename MetricsT = Aws::Map<Aws::String, double>>
214 EndpointResponse& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
215 inline EndpointResponse& AddMetrics(Aws::String key, double value) {
216 m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this;
217 }
219
221
228 inline const Aws::String& GetOptOut() const { return m_optOut; }
229 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
230 template<typename OptOutT = Aws::String>
231 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet = true; m_optOut = std::forward<OptOutT>(value); }
232 template<typename OptOutT = Aws::String>
233 EndpointResponse& WithOptOut(OptOutT&& value) { SetOptOut(std::forward<OptOutT>(value)); return *this;}
235
237
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
242 template<typename RequestIdT = Aws::String>
243 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
244 template<typename RequestIdT = Aws::String>
245 EndpointResponse& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
247
249
253 inline const EndpointUser& GetUser() const { return m_user; }
254 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
255 template<typename UserT = EndpointUser>
256 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
257 template<typename UserT = EndpointUser>
258 EndpointResponse& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
260 private:
261
262 Aws::String m_address;
263 bool m_addressHasBeenSet = false;
264
265 Aws::String m_applicationId;
266 bool m_applicationIdHasBeenSet = false;
267
269 bool m_attributesHasBeenSet = false;
270
271 ChannelType m_channelType{ChannelType::NOT_SET};
272 bool m_channelTypeHasBeenSet = false;
273
274 Aws::String m_cohortId;
275 bool m_cohortIdHasBeenSet = false;
276
277 Aws::String m_creationDate;
278 bool m_creationDateHasBeenSet = false;
279
280 EndpointDemographic m_demographic;
281 bool m_demographicHasBeenSet = false;
282
283 Aws::String m_effectiveDate;
284 bool m_effectiveDateHasBeenSet = false;
285
286 Aws::String m_endpointStatus;
287 bool m_endpointStatusHasBeenSet = false;
288
289 Aws::String m_id;
290 bool m_idHasBeenSet = false;
291
292 EndpointLocation m_location;
293 bool m_locationHasBeenSet = false;
294
296 bool m_metricsHasBeenSet = false;
297
298 Aws::String m_optOut;
299 bool m_optOutHasBeenSet = false;
300
301 Aws::String m_requestId;
302 bool m_requestIdHasBeenSet = false;
303
304 EndpointUser m_user;
305 bool m_userHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace Pinpoint
310} // 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