AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EndpointBatchItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/ChannelType.h>
12#include <aws/pinpoint/model/EndpointDemographic.h>
13#include <aws/pinpoint/model/EndpointLocation.h>
14#include <aws/pinpoint/model/EndpointUser.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint {
26namespace Model {
27
35 public:
36 AWS_PINPOINT_API EndpointBatchItem() = default;
37 AWS_PINPOINT_API EndpointBatchItem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
50 inline const Aws::String& GetAddress() const { return m_address; }
51 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
52 template <typename AddressT = Aws::String>
53 void SetAddress(AddressT&& value) {
54 m_addressHasBeenSet = true;
55 m_address = std::forward<AddressT>(value);
56 }
57 template <typename AddressT = Aws::String>
58 EndpointBatchItem& WithAddress(AddressT&& value) {
59 SetAddress(std::forward<AddressT>(value));
60 return *this;
61 }
63
65
77 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const { return m_attributes; }
78 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
79 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
80 void SetAttributes(AttributesT&& value) {
81 m_attributesHasBeenSet = true;
82 m_attributes = std::forward<AttributesT>(value);
83 }
84 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
85 EndpointBatchItem& WithAttributes(AttributesT&& value) {
86 SetAttributes(std::forward<AttributesT>(value));
87 return *this;
88 }
89 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
90 EndpointBatchItem& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
91 m_attributesHasBeenSet = true;
92 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
93 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) {
105 m_channelTypeHasBeenSet = true;
106 m_channelType = value;
107 }
109 SetChannelType(value);
110 return *this;
111 }
113
115
119 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
120 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
121 template <typename DemographicT = EndpointDemographic>
122 void SetDemographic(DemographicT&& value) {
123 m_demographicHasBeenSet = true;
124 m_demographic = std::forward<DemographicT>(value);
125 }
126 template <typename DemographicT = EndpointDemographic>
127 EndpointBatchItem& WithDemographic(DemographicT&& value) {
128 SetDemographic(std::forward<DemographicT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
139 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
140 template <typename EffectiveDateT = Aws::String>
141 void SetEffectiveDate(EffectiveDateT&& value) {
142 m_effectiveDateHasBeenSet = true;
143 m_effectiveDate = std::forward<EffectiveDateT>(value);
144 }
145 template <typename EffectiveDateT = Aws::String>
146 EndpointBatchItem& WithEffectiveDate(EffectiveDateT&& value) {
147 SetEffectiveDate(std::forward<EffectiveDateT>(value));
148 return *this;
149 }
151
153
161 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
162 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
163 template <typename EndpointStatusT = Aws::String>
164 void SetEndpointStatus(EndpointStatusT&& value) {
165 m_endpointStatusHasBeenSet = true;
166 m_endpointStatus = std::forward<EndpointStatusT>(value);
167 }
168 template <typename EndpointStatusT = Aws::String>
169 EndpointBatchItem& WithEndpointStatus(EndpointStatusT&& value) {
170 SetEndpointStatus(std::forward<EndpointStatusT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetId() const { return m_id; }
180 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
181 template <typename IdT = Aws::String>
182 void SetId(IdT&& value) {
183 m_idHasBeenSet = true;
184 m_id = std::forward<IdT>(value);
185 }
186 template <typename IdT = Aws::String>
187 EndpointBatchItem& WithId(IdT&& value) {
188 SetId(std::forward<IdT>(value));
189 return *this;
190 }
192
194
197 inline const EndpointLocation& GetLocation() const { return m_location; }
198 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
199 template <typename LocationT = EndpointLocation>
200 void SetLocation(LocationT&& value) {
201 m_locationHasBeenSet = true;
202 m_location = std::forward<LocationT>(value);
203 }
204 template <typename LocationT = EndpointLocation>
205 EndpointBatchItem& WithLocation(LocationT&& value) {
206 SetLocation(std::forward<LocationT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
217 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
218 template <typename MetricsT = Aws::Map<Aws::String, double>>
219 void SetMetrics(MetricsT&& value) {
220 m_metricsHasBeenSet = true;
221 m_metrics = std::forward<MetricsT>(value);
222 }
223 template <typename MetricsT = Aws::Map<Aws::String, double>>
224 EndpointBatchItem& WithMetrics(MetricsT&& value) {
225 SetMetrics(std::forward<MetricsT>(value));
226 return *this;
227 }
228 inline EndpointBatchItem& AddMetrics(Aws::String key, double value) {
229 m_metricsHasBeenSet = true;
230 m_metrics.emplace(key, value);
231 return *this;
232 }
234
236
243 inline const Aws::String& GetOptOut() const { return m_optOut; }
244 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
245 template <typename OptOutT = Aws::String>
246 void SetOptOut(OptOutT&& value) {
247 m_optOutHasBeenSet = true;
248 m_optOut = std::forward<OptOutT>(value);
249 }
250 template <typename OptOutT = Aws::String>
251 EndpointBatchItem& WithOptOut(OptOutT&& value) {
252 SetOptOut(std::forward<OptOutT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetRequestId() const { return m_requestId; }
262 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
263 template <typename RequestIdT = Aws::String>
264 void SetRequestId(RequestIdT&& value) {
265 m_requestIdHasBeenSet = true;
266 m_requestId = std::forward<RequestIdT>(value);
267 }
268 template <typename RequestIdT = Aws::String>
269 EndpointBatchItem& WithRequestId(RequestIdT&& value) {
270 SetRequestId(std::forward<RequestIdT>(value));
271 return *this;
272 }
274
276
280 inline const EndpointUser& GetUser() const { return m_user; }
281 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
282 template <typename UserT = EndpointUser>
283 void SetUser(UserT&& value) {
284 m_userHasBeenSet = true;
285 m_user = std::forward<UserT>(value);
286 }
287 template <typename UserT = EndpointUser>
288 EndpointBatchItem& WithUser(UserT&& value) {
289 SetUser(std::forward<UserT>(value));
290 return *this;
291 }
293 private:
294 Aws::String m_address;
295
297
298 ChannelType m_channelType{ChannelType::NOT_SET};
299
300 EndpointDemographic m_demographic;
301
302 Aws::String m_effectiveDate;
303
304 Aws::String m_endpointStatus;
305
306 Aws::String m_id;
307
308 EndpointLocation m_location;
309
311
312 Aws::String m_optOut;
313
314 Aws::String m_requestId;
315
316 EndpointUser m_user;
317 bool m_addressHasBeenSet = false;
318 bool m_attributesHasBeenSet = false;
319 bool m_channelTypeHasBeenSet = false;
320 bool m_demographicHasBeenSet = false;
321 bool m_effectiveDateHasBeenSet = false;
322 bool m_endpointStatusHasBeenSet = false;
323 bool m_idHasBeenSet = false;
324 bool m_locationHasBeenSet = false;
325 bool m_metricsHasBeenSet = false;
326 bool m_optOutHasBeenSet = false;
327 bool m_requestIdHasBeenSet = false;
328 bool m_userHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace Pinpoint
333} // namespace Aws
const Aws::String & GetAddress() const
EndpointBatchItem & WithEndpointStatus(EndpointStatusT &&value)
EndpointBatchItem & WithChannelType(ChannelType value)
EndpointBatchItem & WithRequestId(RequestIdT &&value)
const EndpointLocation & GetLocation() const
const Aws::String & GetEffectiveDate() const
EndpointBatchItem & WithUser(UserT &&value)
void SetEffectiveDate(EffectiveDateT &&value)
EndpointBatchItem & WithAttributes(AttributesT &&value)
EndpointBatchItem & WithEffectiveDate(EffectiveDateT &&value)
EndpointBatchItem & WithDemographic(DemographicT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
AWS_PINPOINT_API EndpointBatchItem & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointBatchItem & AddMetrics(Aws::String key, double value)
const Aws::String & GetRequestId() const
EndpointBatchItem & WithLocation(LocationT &&value)
AWS_PINPOINT_API EndpointBatchItem()=default
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointBatchItem & WithAddress(AddressT &&value)
EndpointBatchItem & WithId(IdT &&value)
AWS_PINPOINT_API EndpointBatchItem(Aws::Utils::Json::JsonView jsonValue)
void SetDemographic(DemographicT &&value)
const Aws::String & GetEndpointStatus() const
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointBatchItem & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
EndpointBatchItem & WithOptOut(OptOutT &&value)
const EndpointDemographic & GetDemographic() const
void SetEndpointStatus(EndpointStatusT &&value)
EndpointBatchItem & WithMetrics(MetricsT &&value)
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