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>
58 template<
typename AddressT = Aws::String>
59 void SetAddress(AddressT&& value) { m_addressHasBeenSet =
true; m_address = std::forward<AddressT>(value); }
60 template<
typename AddressT = Aws::String>
79 template<
typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
80 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
81 template<
typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
83 template<
typename AttributesKeyT = Aws::String,
typename AttributesValueT = Aws::Vector<Aws::String>>
85 m_attributesHasBeenSet =
true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
return *
this;
107 template<
typename DemographicT = Endpo
intDemographic>
108 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet =
true; m_demographic = std::forward<DemographicT>(value); }
109 template<
typename DemographicT = Endpo
intDemographic>
119 template<
typename EffectiveDateT = Aws::String>
120 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet =
true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
121 template<
typename EffectiveDateT = Aws::String>
136 template<
typename Endpo
intStatusT = Aws::String>
137 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet =
true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
138 template<
typename Endpo
intStatusT = Aws::String>
148 template<
typename LocationT = Endpo
intLocation>
149 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
150 template<
typename LocationT = Endpo
intLocation>
161 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
162 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet =
true; m_metrics = std::forward<MetricsT>(value); }
163 template<
typename MetricsT = Aws::Map<Aws::String,
double>>
166 m_metricsHasBeenSet =
true; m_metrics.emplace(key, value);
return *
this;
180 template<
typename OptOutT = Aws::String>
181 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet =
true; m_optOut = std::forward<OptOutT>(value); }
182 template<
typename OptOutT = Aws::String>
192 template<
typename RequestIdT = Aws::String>
193 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
194 template<
typename RequestIdT = Aws::String>
205 template<
typename UserT = Endpo
intUser>
206 void SetUser(UserT&& value) { m_userHasBeenSet =
true; m_user = std::forward<UserT>(value); }
207 template<
typename UserT = Endpo
intUser>
213 bool m_addressHasBeenSet =
false;
216 bool m_attributesHasBeenSet =
false;
219 bool m_channelTypeHasBeenSet =
false;
221 EndpointDemographic m_demographic;
222 bool m_demographicHasBeenSet =
false;
225 bool m_effectiveDateHasBeenSet =
false;
228 bool m_endpointStatusHasBeenSet =
false;
230 EndpointLocation m_location;
231 bool m_locationHasBeenSet =
false;
234 bool m_metricsHasBeenSet =
false;
237 bool m_optOutHasBeenSet =
false;
240 bool m_requestIdHasBeenSet =
false;
243 bool m_userHasBeenSet =
false;
const Aws::String & GetOptOut() const
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointRequest & WithChannelType(ChannelType value)
void SetOptOut(OptOutT &&value)
const Aws::String & GetAddress() const
const EndpointDemographic & GetDemographic() const
EndpointRequest & WithEffectiveDate(EffectiveDateT &&value)
EndpointRequest & WithDemographic(DemographicT &&value)
bool UserHasBeenSet() const
void SetRequestId(RequestIdT &&value)
bool EffectiveDateHasBeenSet() const
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
void SetUser(UserT &&value)
EndpointRequest & WithRequestId(RequestIdT &&value)
bool RequestIdHasBeenSet() const
bool AddressHasBeenSet() const
EndpointRequest & WithMetrics(MetricsT &&value)
EndpointRequest & WithUser(UserT &&value)
EndpointRequest & WithEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAttributes(AttributesT &&value)
EndpointRequest & WithLocation(LocationT &&value)
EndpointRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
bool AttributesHasBeenSet() const
bool EndpointStatusHasBeenSet() const
const Aws::String & GetEndpointStatus() const
bool MetricsHasBeenSet() const
void SetChannelType(ChannelType value)
void SetEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetrics(MetricsT &&value)
bool ChannelTypeHasBeenSet() const
void SetDemographic(DemographicT &&value)
EndpointRequest & AddMetrics(Aws::String key, double value)
bool LocationHasBeenSet() const
void SetAddress(AddressT &&value)
void SetLocation(LocationT &&value)
bool DemographicHasBeenSet() const
const Aws::String & GetEffectiveDate() const
ChannelType GetChannelType() const
AWS_PINPOINT_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAddress(AddressT &&value)
EndpointRequest & WithOptOut(OptOutT &&value)
bool OptOutHasBeenSet() const
const EndpointLocation & GetLocation() const
void SetEffectiveDate(EffectiveDateT &&value)
void SetAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
AWS_PINPOINT_API EndpointRequest()=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