AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EndpointBatchItem.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 EndpointBatchItem();
42 AWS_PINPOINT_API EndpointBatchItem(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
56 inline const Aws::String& GetAddress() const{ return m_address; }
57 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
58 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
59 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
60 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
61 inline EndpointBatchItem& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
62 inline EndpointBatchItem& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
63 inline EndpointBatchItem& WithAddress(const char* value) { SetAddress(value); return *this;}
65
67
79 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const{ return m_attributes; }
80 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
81 inline void SetAttributes(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
82 inline void SetAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
84 inline EndpointBatchItem& WithAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAttributes(std::move(value)); return *this;}
85 inline EndpointBatchItem& AddAttributes(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
86 inline EndpointBatchItem& AddAttributes(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
87 inline EndpointBatchItem& AddAttributes(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
88 inline EndpointBatchItem& AddAttributes(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
89 inline EndpointBatchItem& AddAttributes(const char* key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
90 inline EndpointBatchItem& AddAttributes(const char* key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
92
94
98 inline const ChannelType& GetChannelType() const{ return m_channelType; }
99 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
100 inline void SetChannelType(const ChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
101 inline void SetChannelType(ChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); }
102 inline EndpointBatchItem& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;}
103 inline EndpointBatchItem& WithChannelType(ChannelType&& value) { SetChannelType(std::move(value)); return *this;}
105
107
111 inline const EndpointDemographic& GetDemographic() const{ return m_demographic; }
112 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
113 inline void SetDemographic(const EndpointDemographic& value) { m_demographicHasBeenSet = true; m_demographic = value; }
114 inline void SetDemographic(EndpointDemographic&& value) { m_demographicHasBeenSet = true; m_demographic = std::move(value); }
115 inline EndpointBatchItem& WithDemographic(const EndpointDemographic& value) { SetDemographic(value); return *this;}
116 inline EndpointBatchItem& WithDemographic(EndpointDemographic&& value) { SetDemographic(std::move(value)); return *this;}
118
120
124 inline const Aws::String& GetEffectiveDate() const{ return m_effectiveDate; }
125 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
126 inline void SetEffectiveDate(const Aws::String& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = value; }
127 inline void SetEffectiveDate(Aws::String&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::move(value); }
128 inline void SetEffectiveDate(const char* value) { m_effectiveDateHasBeenSet = true; m_effectiveDate.assign(value); }
129 inline EndpointBatchItem& WithEffectiveDate(const Aws::String& value) { SetEffectiveDate(value); return *this;}
130 inline EndpointBatchItem& WithEffectiveDate(Aws::String&& value) { SetEffectiveDate(std::move(value)); return *this;}
131 inline EndpointBatchItem& WithEffectiveDate(const char* value) { SetEffectiveDate(value); return *this;}
133
135
143 inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; }
144 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
145 inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
146 inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); }
147 inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); }
148 inline EndpointBatchItem& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;}
149 inline EndpointBatchItem& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;}
150 inline EndpointBatchItem& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;}
152
154
157 inline const Aws::String& GetId() const{ return m_id; }
158 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
159 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
160 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
161 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
162 inline EndpointBatchItem& WithId(const Aws::String& value) { SetId(value); return *this;}
163 inline EndpointBatchItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
164 inline EndpointBatchItem& WithId(const char* value) { SetId(value); return *this;}
166
168
171 inline const EndpointLocation& GetLocation() const{ return m_location; }
172 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
173 inline void SetLocation(const EndpointLocation& value) { m_locationHasBeenSet = true; m_location = value; }
174 inline void SetLocation(EndpointLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
175 inline EndpointBatchItem& WithLocation(const EndpointLocation& value) { SetLocation(value); return *this;}
176 inline EndpointBatchItem& WithLocation(EndpointLocation&& value) { SetLocation(std::move(value)); return *this;}
178
180
184 inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
185 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
186 inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
187 inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
188 inline EndpointBatchItem& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
189 inline EndpointBatchItem& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
190 inline EndpointBatchItem& AddMetrics(const Aws::String& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
191 inline EndpointBatchItem& AddMetrics(Aws::String&& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
192 inline EndpointBatchItem& AddMetrics(const char* key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
194
196
203 inline const Aws::String& GetOptOut() const{ return m_optOut; }
204 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
205 inline void SetOptOut(const Aws::String& value) { m_optOutHasBeenSet = true; m_optOut = value; }
206 inline void SetOptOut(Aws::String&& value) { m_optOutHasBeenSet = true; m_optOut = std::move(value); }
207 inline void SetOptOut(const char* value) { m_optOutHasBeenSet = true; m_optOut.assign(value); }
208 inline EndpointBatchItem& WithOptOut(const Aws::String& value) { SetOptOut(value); return *this;}
209 inline EndpointBatchItem& WithOptOut(Aws::String&& value) { SetOptOut(std::move(value)); return *this;}
210 inline EndpointBatchItem& WithOptOut(const char* value) { SetOptOut(value); return *this;}
212
214
217 inline const Aws::String& GetRequestId() const{ return m_requestId; }
218 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
219 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
220 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
221 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
222 inline EndpointBatchItem& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
223 inline EndpointBatchItem& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
224 inline EndpointBatchItem& WithRequestId(const char* value) { SetRequestId(value); return *this;}
226
228
232 inline const EndpointUser& GetUser() const{ return m_user; }
233 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
234 inline void SetUser(const EndpointUser& value) { m_userHasBeenSet = true; m_user = value; }
235 inline void SetUser(EndpointUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
236 inline EndpointBatchItem& WithUser(const EndpointUser& value) { SetUser(value); return *this;}
237 inline EndpointBatchItem& WithUser(EndpointUser&& value) { SetUser(std::move(value)); return *this;}
239 private:
240
241 Aws::String m_address;
242 bool m_addressHasBeenSet = false;
243
245 bool m_attributesHasBeenSet = false;
246
247 ChannelType m_channelType;
248 bool m_channelTypeHasBeenSet = false;
249
250 EndpointDemographic m_demographic;
251 bool m_demographicHasBeenSet = false;
252
253 Aws::String m_effectiveDate;
254 bool m_effectiveDateHasBeenSet = false;
255
256 Aws::String m_endpointStatus;
257 bool m_endpointStatusHasBeenSet = false;
258
259 Aws::String m_id;
260 bool m_idHasBeenSet = false;
261
262 EndpointLocation m_location;
263 bool m_locationHasBeenSet = false;
264
266 bool m_metricsHasBeenSet = false;
267
268 Aws::String m_optOut;
269 bool m_optOutHasBeenSet = false;
270
271 Aws::String m_requestId;
272 bool m_requestIdHasBeenSet = false;
273
274 EndpointUser m_user;
275 bool m_userHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace Pinpoint
280} // namespace Aws
const Aws::String & GetAddress() const
EndpointBatchItem & WithLocation(EndpointLocation &&value)
EndpointBatchItem & WithEffectiveDate(const char *value)
EndpointBatchItem & WithAddress(Aws::String &&value)
EndpointBatchItem & WithId(const Aws::String &value)
void SetEndpointStatus(const Aws::String &value)
EndpointBatchItem & WithEndpointStatus(Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EndpointBatchItem & AddAttributes(Aws::String &&key, Aws::Vector< Aws::String > &&value)
EndpointBatchItem & WithMetrics(const Aws::Map< Aws::String, double > &value)
const EndpointLocation & GetLocation() const
const Aws::String & GetEffectiveDate() const
EndpointBatchItem & WithEffectiveDate(const Aws::String &value)
EndpointBatchItem & WithAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetChannelType(const ChannelType &value)
void SetMetrics(Aws::Map< Aws::String, double > &&value)
EndpointBatchItem & AddAttributes(Aws::String &&key, const Aws::Vector< Aws::String > &value)
EndpointBatchItem & WithRequestId(const Aws::String &value)
EndpointBatchItem & WithEndpointStatus(const Aws::String &value)
void SetLocation(const EndpointLocation &value)
void SetDemographic(EndpointDemographic &&value)
EndpointBatchItem & WithUser(EndpointUser &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
AWS_PINPOINT_API EndpointBatchItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
EndpointBatchItem & WithId(Aws::String &&value)
EndpointBatchItem & WithOptOut(const char *value)
EndpointBatchItem & WithAddress(const Aws::String &value)
void SetUser(const EndpointUser &value)
EndpointBatchItem & WithEffectiveDate(Aws::String &&value)
EndpointBatchItem & AddAttributes(const char *key, Aws::Vector< Aws::String > &&value)
const Aws::String & GetRequestId() const
EndpointBatchItem & WithRequestId(Aws::String &&value)
void SetDemographic(const EndpointDemographic &value)
EndpointBatchItem & WithRequestId(const char *value)
void SetEffectiveDate(const Aws::String &value)
EndpointBatchItem & WithDemographic(const EndpointDemographic &value)
void SetRequestId(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointBatchItem & WithEndpointStatus(const char *value)
EndpointBatchItem & WithDemographic(EndpointDemographic &&value)
EndpointBatchItem & WithId(const char *value)
EndpointBatchItem & AddMetrics(Aws::String &&key, double value)
EndpointBatchItem & AddMetrics(const Aws::String &key, double value)
void SetMetrics(const Aws::Map< Aws::String, double > &value)
EndpointBatchItem & WithOptOut(const Aws::String &value)
EndpointBatchItem & WithOptOut(Aws::String &&value)
EndpointBatchItem & AddAttributes(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetEndpointStatus(Aws::String &&value)
EndpointBatchItem & AddAttributes(const Aws::String &key, Aws::Vector< Aws::String > &&value)
EndpointBatchItem & WithLocation(const EndpointLocation &value)
EndpointBatchItem & AddAttributes(const char *key, const Aws::Vector< Aws::String > &value)
AWS_PINPOINT_API EndpointBatchItem(Aws::Utils::Json::JsonView jsonValue)
EndpointBatchItem & WithChannelType(const ChannelType &value)
const Aws::String & GetEndpointStatus() const
const Aws::Map< Aws::String, double > & GetMetrics() const
void SetLocation(EndpointLocation &&value)
EndpointBatchItem & WithAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
EndpointBatchItem & WithChannelType(ChannelType &&value)
const ChannelType & GetChannelType() const
EndpointBatchItem & WithAddress(const char *value)
EndpointBatchItem & WithUser(const EndpointUser &value)
void SetAddress(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const EndpointDemographic & GetDemographic() const
EndpointBatchItem & AddMetrics(const char *key, double value)
EndpointBatchItem & WithMetrics(Aws::Map< Aws::String, double > &&value)
void SetOptOut(const Aws::String &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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue