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>
54 template<
typename AddressT = Aws::String>
55 void SetAddress(AddressT&& value) { m_addressHasBeenSet =
true; m_address = std::forward<AddressT>(value); }
56 template<
typename AddressT = Aws::String>
68 template<
typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
69 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
70 template<
typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
72 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::Vector<Aws::String>>
74 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
96 template<
typename DemographicT = Endpo
intDemographic>
97 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet =
true; m_demographic = std::forward<DemographicT>(value); }
98 template<
typename DemographicT = Endpo
intDemographic>
109 template<
typename EffectiveDateT = Aws::String>
110 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet =
true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
111 template<
typename EffectiveDateT = Aws::String>
126 template<
typename Endpo
intStatusT = Aws::String>
127 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet =
true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
128 template<
typename Endpo
intStatusT = Aws::String>
138 template<
typename LocationT = Endpo
intLocation>
139 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
140 template<
typename LocationT = Endpo
intLocation>
151 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
152 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet =
true; m_metrics = std::forward<MetricsT>(value); }
153 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
156 m_metricsHasBeenSet =
true; m_metrics.emplace(key, value);
return *
this;
170 template<
typename OptOutT = Aws::String>
171 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet =
true; m_optOut = std::forward<OptOutT>(value); }
172 template<
typename OptOutT = Aws::String>
182 template<
typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
184 template<
typename RequestIdT = Aws::String>
195 template<
typename UserT = Endpo
intUser>
196 void SetUser(UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
197 template<
typename UserT = Endpo
intUser>
203 bool m_addressHasBeenSet =
false;
206 bool m_attributesHasBeenSet =
false;
209 bool m_channelTypeHasBeenSet =
false;
211 EndpointDemographic m_demographic;
212 bool m_demographicHasBeenSet =
false;
215 bool m_effectiveDateHasBeenSet =
false;
218 bool m_endpointStatusHasBeenSet =
false;
220 EndpointLocation m_location;
221 bool m_locationHasBeenSet =
false;
224 bool m_metricsHasBeenSet =
false;
227 bool m_optOutHasBeenSet =
false;
230 bool m_requestIdHasBeenSet =
false;
233 bool m_userHasBeenSet =
false;
void SetDemographic(DemographicT &&value)
const EndpointDemographic & GetDemographic() const
PublicEndpoint & WithLocation(LocationT &&value)
void SetMetrics(MetricsT &&value)
void SetOptOut(OptOutT &&value)
PublicEndpoint & WithMetrics(MetricsT &&value)
PublicEndpoint & WithDemographic(DemographicT &&value)
const Aws::Map< Aws::String, double > & GetMetrics() const
bool UserHasBeenSet() const
const Aws::String & GetAddress() const
PublicEndpoint & WithAddress(AddressT &&value)
const Aws::String & GetEffectiveDate() const
void SetAttributes(AttributesT &&value)
ChannelType GetChannelType() const
AWS_PINPOINT_API PublicEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOptOut() const
void SetUser(UserT &&value)
const EndpointUser & GetUser() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
bool DemographicHasBeenSet() const
PublicEndpoint & WithOptOut(OptOutT &&value)
PublicEndpoint & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
bool EffectiveDateHasBeenSet() const
void SetEffectiveDate(EffectiveDateT &&value)
const Aws::String & GetEndpointStatus() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
void SetRequestId(RequestIdT &&value)
const EndpointLocation & GetLocation() const
bool ChannelTypeHasBeenSet() const
PublicEndpoint & WithUser(UserT &&value)
AWS_PINPOINT_API PublicEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
PublicEndpoint & WithEffectiveDate(EffectiveDateT &&value)
const Aws::String & GetRequestId() const
void SetEndpointStatus(EndpointStatusT &&value)
bool LocationHasBeenSet() const
AWS_PINPOINT_API PublicEndpoint()=default
void SetAddress(AddressT &&value)
bool EndpointStatusHasBeenSet() const
bool RequestIdHasBeenSet() const
void SetLocation(LocationT &&value)
bool AddressHasBeenSet() const
PublicEndpoint & WithChannelType(ChannelType value)
bool OptOutHasBeenSet() const
bool AttributesHasBeenSet() const
PublicEndpoint & AddMetrics(Aws::String key, double value)
PublicEndpoint & WithAttributes(AttributesT &&value)
PublicEndpoint & WithEndpointStatus(EndpointStatusT &&value)
void SetChannelType(ChannelType value)
PublicEndpoint & WithRequestId(RequestIdT &&value)
bool MetricsHasBeenSet() 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
Aws::Utils::Json::JsonValue JsonValue