AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PublicEndpoint.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 PublicEndpoint() = default;
37 AWS_PINPOINT_API PublicEndpoint(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetAddress() const { return m_address; }
47 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
48 template <typename AddressT = Aws::String>
49 void SetAddress(AddressT&& value) {
50 m_addressHasBeenSet = true;
51 m_address = std::forward<AddressT>(value);
52 }
53 template <typename AddressT = Aws::String>
54 PublicEndpoint& WithAddress(AddressT&& value) {
55 SetAddress(std::forward<AddressT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const { return m_attributes; }
67 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
68 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
69 void SetAttributes(AttributesT&& value) {
70 m_attributesHasBeenSet = true;
71 m_attributes = std::forward<AttributesT>(value);
72 }
73 template <typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
74 PublicEndpoint& WithAttributes(AttributesT&& value) {
75 SetAttributes(std::forward<AttributesT>(value));
76 return *this;
77 }
78 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
79 PublicEndpoint& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
80 m_attributesHasBeenSet = true;
81 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
82 return *this;
83 }
85
87
91 inline ChannelType GetChannelType() const { return m_channelType; }
92 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
93 inline void SetChannelType(ChannelType value) {
94 m_channelTypeHasBeenSet = true;
95 m_channelType = value;
96 }
98 SetChannelType(value);
99 return *this;
100 }
102
104
108 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
109 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
110 template <typename DemographicT = EndpointDemographic>
111 void SetDemographic(DemographicT&& value) {
112 m_demographicHasBeenSet = true;
113 m_demographic = std::forward<DemographicT>(value);
114 }
115 template <typename DemographicT = EndpointDemographic>
116 PublicEndpoint& WithDemographic(DemographicT&& value) {
117 SetDemographic(std::forward<DemographicT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
128 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
129 template <typename EffectiveDateT = Aws::String>
130 void SetEffectiveDate(EffectiveDateT&& value) {
131 m_effectiveDateHasBeenSet = true;
132 m_effectiveDate = std::forward<EffectiveDateT>(value);
133 }
134 template <typename EffectiveDateT = Aws::String>
135 PublicEndpoint& WithEffectiveDate(EffectiveDateT&& value) {
136 SetEffectiveDate(std::forward<EffectiveDateT>(value));
137 return *this;
138 }
140
142
150 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
151 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
152 template <typename EndpointStatusT = Aws::String>
153 void SetEndpointStatus(EndpointStatusT&& value) {
154 m_endpointStatusHasBeenSet = true;
155 m_endpointStatus = std::forward<EndpointStatusT>(value);
156 }
157 template <typename EndpointStatusT = Aws::String>
158 PublicEndpoint& WithEndpointStatus(EndpointStatusT&& value) {
159 SetEndpointStatus(std::forward<EndpointStatusT>(value));
160 return *this;
161 }
163
165
168 inline const EndpointLocation& GetLocation() const { return m_location; }
169 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
170 template <typename LocationT = EndpointLocation>
171 void SetLocation(LocationT&& value) {
172 m_locationHasBeenSet = true;
173 m_location = std::forward<LocationT>(value);
174 }
175 template <typename LocationT = EndpointLocation>
176 PublicEndpoint& WithLocation(LocationT&& value) {
177 SetLocation(std::forward<LocationT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
188 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
189 template <typename MetricsT = Aws::Map<Aws::String, double>>
190 void SetMetrics(MetricsT&& value) {
191 m_metricsHasBeenSet = true;
192 m_metrics = std::forward<MetricsT>(value);
193 }
194 template <typename MetricsT = Aws::Map<Aws::String, double>>
195 PublicEndpoint& WithMetrics(MetricsT&& value) {
196 SetMetrics(std::forward<MetricsT>(value));
197 return *this;
198 }
199 inline PublicEndpoint& AddMetrics(Aws::String key, double value) {
200 m_metricsHasBeenSet = true;
201 m_metrics.emplace(key, value);
202 return *this;
203 }
205
207
214 inline const Aws::String& GetOptOut() const { return m_optOut; }
215 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
216 template <typename OptOutT = Aws::String>
217 void SetOptOut(OptOutT&& value) {
218 m_optOutHasBeenSet = true;
219 m_optOut = std::forward<OptOutT>(value);
220 }
221 template <typename OptOutT = Aws::String>
222 PublicEndpoint& WithOptOut(OptOutT&& value) {
223 SetOptOut(std::forward<OptOutT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
234 template <typename RequestIdT = Aws::String>
235 void SetRequestId(RequestIdT&& value) {
236 m_requestIdHasBeenSet = true;
237 m_requestId = std::forward<RequestIdT>(value);
238 }
239 template <typename RequestIdT = Aws::String>
240 PublicEndpoint& WithRequestId(RequestIdT&& value) {
241 SetRequestId(std::forward<RequestIdT>(value));
242 return *this;
243 }
245
247
251 inline const EndpointUser& GetUser() const { return m_user; }
252 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
253 template <typename UserT = EndpointUser>
254 void SetUser(UserT&& value) {
255 m_userHasBeenSet = true;
256 m_user = std::forward<UserT>(value);
257 }
258 template <typename UserT = EndpointUser>
259 PublicEndpoint& WithUser(UserT&& value) {
260 SetUser(std::forward<UserT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_address;
266
268
269 ChannelType m_channelType{ChannelType::NOT_SET};
270
271 EndpointDemographic m_demographic;
272
273 Aws::String m_effectiveDate;
274
275 Aws::String m_endpointStatus;
276
277 EndpointLocation m_location;
278
280
281 Aws::String m_optOut;
282
283 Aws::String m_requestId;
284
285 EndpointUser m_user;
286 bool m_addressHasBeenSet = false;
287 bool m_attributesHasBeenSet = false;
288 bool m_channelTypeHasBeenSet = false;
289 bool m_demographicHasBeenSet = false;
290 bool m_effectiveDateHasBeenSet = false;
291 bool m_endpointStatusHasBeenSet = false;
292 bool m_locationHasBeenSet = false;
293 bool m_metricsHasBeenSet = false;
294 bool m_optOutHasBeenSet = false;
295 bool m_requestIdHasBeenSet = false;
296 bool m_userHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace Pinpoint
301} // namespace Aws
void SetDemographic(DemographicT &&value)
const EndpointDemographic & GetDemographic() const
PublicEndpoint & WithLocation(LocationT &&value)
PublicEndpoint & WithMetrics(MetricsT &&value)
PublicEndpoint & WithDemographic(DemographicT &&value)
const Aws::Map< Aws::String, double > & GetMetrics() const
const Aws::String & GetAddress() const
PublicEndpoint & WithAddress(AddressT &&value)
const Aws::String & GetEffectiveDate() const
void SetAttributes(AttributesT &&value)
AWS_PINPOINT_API PublicEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOptOut() const
const EndpointUser & GetUser() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
PublicEndpoint & WithOptOut(OptOutT &&value)
PublicEndpoint & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
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
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)
AWS_PINPOINT_API PublicEndpoint()=default
void SetLocation(LocationT &&value)
PublicEndpoint & WithChannelType(ChannelType value)
PublicEndpoint & AddMetrics(Aws::String key, double value)
PublicEndpoint & WithAttributes(AttributesT &&value)
PublicEndpoint & WithEndpointStatus(EndpointStatusT &&value)
void SetChannelType(ChannelType value)
PublicEndpoint & WithRequestId(RequestIdT &&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