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>
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>
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>
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>>>
91 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::Vector<Aws::String>>
93 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
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>
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>
142 template<
typename DemographicT = Endpo
intDemographic>
143 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet =
true; m_demographic = std::forward<DemographicT>(value); }
144 template<
typename DemographicT = Endpo
intDemographic>
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>
172 template<
typename Endpo
intStatusT = Aws::String>
173 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet =
true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
174 template<
typename Endpo
intStatusT = Aws::String>
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>
198 template<
typename LocationT = Endpo
intLocation>
199 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
200 template<
typename LocationT = Endpo
intLocation>
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>>
216 m_metricsHasBeenSet =
true; m_metrics.emplace(key, value);
return *
this;
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>
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>
255 template<
typename UserT = Endpo
intUser>
256 void SetUser(UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
257 template<
typename UserT = Endpo
intUser>
263 bool m_addressHasBeenSet =
false;
266 bool m_applicationIdHasBeenSet =
false;
269 bool m_attributesHasBeenSet =
false;
272 bool m_channelTypeHasBeenSet =
false;
275 bool m_cohortIdHasBeenSet =
false;
278 bool m_creationDateHasBeenSet =
false;
280 EndpointDemographic m_demographic;
281 bool m_demographicHasBeenSet =
false;
284 bool m_effectiveDateHasBeenSet =
false;
287 bool m_endpointStatusHasBeenSet =
false;
290 bool m_idHasBeenSet =
false;
292 EndpointLocation m_location;
293 bool m_locationHasBeenSet =
false;
296 bool m_metricsHasBeenSet =
false;
299 bool m_optOutHasBeenSet =
false;
302 bool m_requestIdHasBeenSet =
false;
305 bool m_userHasBeenSet =
false;
EndpointResponse & WithChannelType(ChannelType value)
EndpointResponse & WithOptOut(OptOutT &&value)
void SetRequestId(RequestIdT &&value)
EndpointResponse & WithLocation(LocationT &&value)
const EndpointDemographic & GetDemographic() const
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
bool AddressHasBeenSet() const
EndpointResponse & AddMetrics(Aws::String key, double value)
const Aws::String & GetCohortId() const
bool EffectiveDateHasBeenSet() const
EndpointResponse & WithDemographic(DemographicT &&value)
EndpointResponse & WithMetrics(MetricsT &&value)
const Aws::String & GetCreationDate() const
EndpointResponse & WithId(IdT &&value)
bool LocationHasBeenSet() const
bool CreationDateHasBeenSet() const
const Aws::String & GetId() const
const Aws::String & GetEndpointStatus() const
bool UserHasBeenSet() const
void SetUser(UserT &&value)
void SetEndpointStatus(EndpointStatusT &&value)
EndpointResponse & WithApplicationId(ApplicationIdT &&value)
bool OptOutHasBeenSet() const
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)
bool CohortIdHasBeenSet() const
void SetEffectiveDate(EffectiveDateT &&value)
EndpointResponse & WithCohortId(CohortIdT &&value)
void SetOptOut(OptOutT &&value)
void SetCohortId(CohortIdT &&value)
void SetAddress(AddressT &&value)
bool ApplicationIdHasBeenSet() const
EndpointResponse & WithAttributes(AttributesT &&value)
bool DemographicHasBeenSet() const
bool AttributesHasBeenSet() const
bool RequestIdHasBeenSet() const
bool ChannelTypeHasBeenSet() const
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetApplicationId() const
void SetAttributes(AttributesT &&value)
bool IdHasBeenSet() const
const Aws::String & GetAddress() const
bool EndpointStatusHasBeenSet() const
bool MetricsHasBeenSet() const
void SetChannelType(ChannelType value)
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)
void SetLocation(LocationT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
const Aws::String & GetOptOut() const
const Aws::String & GetEffectiveDate() const
ChannelType GetChannelType() const
void SetMetrics(MetricsT &&value)
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