AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 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>
61 EndpointBatchItem& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
81 template<typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
82 EndpointBatchItem& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
83 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
84 EndpointBatchItem& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
85 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
86 }
88
90
94 inline ChannelType GetChannelType() const { return m_channelType; }
95 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
96 inline void SetChannelType(ChannelType value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
97 inline EndpointBatchItem& WithChannelType(ChannelType value) { SetChannelType(value); return *this;}
99
101
105 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
106 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
107 template<typename DemographicT = EndpointDemographic>
108 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet = true; m_demographic = std::forward<DemographicT>(value); }
109 template<typename DemographicT = EndpointDemographic>
110 EndpointBatchItem& WithDemographic(DemographicT&& value) { SetDemographic(std::forward<DemographicT>(value)); return *this;}
112
114
118 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
119 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
120 template<typename EffectiveDateT = Aws::String>
121 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
122 template<typename EffectiveDateT = Aws::String>
123 EndpointBatchItem& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
125
127
135 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
136 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
137 template<typename EndpointStatusT = Aws::String>
138 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
139 template<typename EndpointStatusT = Aws::String>
140 EndpointBatchItem& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
142
144
147 inline const Aws::String& GetId() const { return m_id; }
148 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
149 template<typename IdT = Aws::String>
150 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
151 template<typename IdT = Aws::String>
152 EndpointBatchItem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
154
156
159 inline const EndpointLocation& GetLocation() const { return m_location; }
160 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
161 template<typename LocationT = EndpointLocation>
162 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
163 template<typename LocationT = EndpointLocation>
164 EndpointBatchItem& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
166
168
172 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
173 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
174 template<typename MetricsT = Aws::Map<Aws::String, double>>
175 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
176 template<typename MetricsT = Aws::Map<Aws::String, double>>
177 EndpointBatchItem& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
178 inline EndpointBatchItem& AddMetrics(Aws::String key, double value) {
179 m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this;
180 }
182
184
191 inline const Aws::String& GetOptOut() const { return m_optOut; }
192 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
193 template<typename OptOutT = Aws::String>
194 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet = true; m_optOut = std::forward<OptOutT>(value); }
195 template<typename OptOutT = Aws::String>
196 EndpointBatchItem& WithOptOut(OptOutT&& value) { SetOptOut(std::forward<OptOutT>(value)); return *this;}
198
200
203 inline const Aws::String& GetRequestId() const { return m_requestId; }
204 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
205 template<typename RequestIdT = Aws::String>
206 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
207 template<typename RequestIdT = Aws::String>
208 EndpointBatchItem& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
210
212
216 inline const EndpointUser& GetUser() const { return m_user; }
217 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
218 template<typename UserT = EndpointUser>
219 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
220 template<typename UserT = EndpointUser>
221 EndpointBatchItem& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
223 private:
224
225 Aws::String m_address;
226 bool m_addressHasBeenSet = false;
227
229 bool m_attributesHasBeenSet = false;
230
231 ChannelType m_channelType{ChannelType::NOT_SET};
232 bool m_channelTypeHasBeenSet = false;
233
234 EndpointDemographic m_demographic;
235 bool m_demographicHasBeenSet = false;
236
237 Aws::String m_effectiveDate;
238 bool m_effectiveDateHasBeenSet = false;
239
240 Aws::String m_endpointStatus;
241 bool m_endpointStatusHasBeenSet = false;
242
243 Aws::String m_id;
244 bool m_idHasBeenSet = false;
245
246 EndpointLocation m_location;
247 bool m_locationHasBeenSet = false;
248
250 bool m_metricsHasBeenSet = false;
251
252 Aws::String m_optOut;
253 bool m_optOutHasBeenSet = false;
254
255 Aws::String m_requestId;
256 bool m_requestIdHasBeenSet = false;
257
258 EndpointUser m_user;
259 bool m_userHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace Pinpoint
264} // 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