AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublicEndpoint.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 PublicEndpoint();
42 AWS_PINPOINT_API PublicEndpoint(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetAddress() const{ return m_address; }
53 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
54 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
55 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
56 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
57 inline PublicEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
58 inline PublicEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
59 inline PublicEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
61
63
68 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAttributes() const{ return m_attributes; }
69 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
70 inline void SetAttributes(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
71 inline void SetAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
73 inline PublicEndpoint& WithAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAttributes(std::move(value)); return *this;}
74 inline PublicEndpoint& AddAttributes(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
75 inline PublicEndpoint& AddAttributes(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
76 inline PublicEndpoint& AddAttributes(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
77 inline PublicEndpoint& AddAttributes(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
78 inline PublicEndpoint& AddAttributes(const char* key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
79 inline PublicEndpoint& AddAttributes(const char* key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
81
83
87 inline const ChannelType& GetChannelType() const{ return m_channelType; }
88 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
89 inline void SetChannelType(const ChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
90 inline void SetChannelType(ChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); }
91 inline PublicEndpoint& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;}
92 inline PublicEndpoint& WithChannelType(ChannelType&& value) { SetChannelType(std::move(value)); return *this;}
94
96
100 inline const EndpointDemographic& GetDemographic() const{ return m_demographic; }
101 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
102 inline void SetDemographic(const EndpointDemographic& value) { m_demographicHasBeenSet = true; m_demographic = value; }
103 inline void SetDemographic(EndpointDemographic&& value) { m_demographicHasBeenSet = true; m_demographic = std::move(value); }
104 inline PublicEndpoint& WithDemographic(const EndpointDemographic& value) { SetDemographic(value); return *this;}
105 inline PublicEndpoint& WithDemographic(EndpointDemographic&& value) { SetDemographic(std::move(value)); return *this;}
107
109
113 inline const Aws::String& GetEffectiveDate() const{ return m_effectiveDate; }
114 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
115 inline void SetEffectiveDate(const Aws::String& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = value; }
116 inline void SetEffectiveDate(Aws::String&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::move(value); }
117 inline void SetEffectiveDate(const char* value) { m_effectiveDateHasBeenSet = true; m_effectiveDate.assign(value); }
118 inline PublicEndpoint& WithEffectiveDate(const Aws::String& value) { SetEffectiveDate(value); return *this;}
119 inline PublicEndpoint& WithEffectiveDate(Aws::String&& value) { SetEffectiveDate(std::move(value)); return *this;}
120 inline PublicEndpoint& WithEffectiveDate(const char* value) { SetEffectiveDate(value); return *this;}
122
124
132 inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; }
133 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
134 inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
135 inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); }
136 inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); }
137 inline PublicEndpoint& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;}
138 inline PublicEndpoint& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;}
139 inline PublicEndpoint& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;}
141
143
146 inline const EndpointLocation& GetLocation() const{ return m_location; }
147 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
148 inline void SetLocation(const EndpointLocation& value) { m_locationHasBeenSet = true; m_location = value; }
149 inline void SetLocation(EndpointLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
150 inline PublicEndpoint& WithLocation(const EndpointLocation& value) { SetLocation(value); return *this;}
151 inline PublicEndpoint& WithLocation(EndpointLocation&& value) { SetLocation(std::move(value)); return *this;}
153
155
159 inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
160 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
161 inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
162 inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
163 inline PublicEndpoint& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
164 inline PublicEndpoint& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
165 inline PublicEndpoint& AddMetrics(const Aws::String& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
166 inline PublicEndpoint& AddMetrics(Aws::String&& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
167 inline PublicEndpoint& AddMetrics(const char* key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
169
171
178 inline const Aws::String& GetOptOut() const{ return m_optOut; }
179 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
180 inline void SetOptOut(const Aws::String& value) { m_optOutHasBeenSet = true; m_optOut = value; }
181 inline void SetOptOut(Aws::String&& value) { m_optOutHasBeenSet = true; m_optOut = std::move(value); }
182 inline void SetOptOut(const char* value) { m_optOutHasBeenSet = true; m_optOut.assign(value); }
183 inline PublicEndpoint& WithOptOut(const Aws::String& value) { SetOptOut(value); return *this;}
184 inline PublicEndpoint& WithOptOut(Aws::String&& value) { SetOptOut(std::move(value)); return *this;}
185 inline PublicEndpoint& WithOptOut(const char* value) { SetOptOut(value); return *this;}
187
189
192 inline const Aws::String& GetRequestId() const{ return m_requestId; }
193 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
194 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
195 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
196 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
197 inline PublicEndpoint& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
198 inline PublicEndpoint& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
199 inline PublicEndpoint& WithRequestId(const char* value) { SetRequestId(value); return *this;}
201
203
207 inline const EndpointUser& GetUser() const{ return m_user; }
208 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
209 inline void SetUser(const EndpointUser& value) { m_userHasBeenSet = true; m_user = value; }
210 inline void SetUser(EndpointUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
211 inline PublicEndpoint& WithUser(const EndpointUser& value) { SetUser(value); return *this;}
212 inline PublicEndpoint& WithUser(EndpointUser&& value) { SetUser(std::move(value)); return *this;}
214 private:
215
216 Aws::String m_address;
217 bool m_addressHasBeenSet = false;
218
220 bool m_attributesHasBeenSet = false;
221
222 ChannelType m_channelType;
223 bool m_channelTypeHasBeenSet = false;
224
225 EndpointDemographic m_demographic;
226 bool m_demographicHasBeenSet = false;
227
228 Aws::String m_effectiveDate;
229 bool m_effectiveDateHasBeenSet = false;
230
231 Aws::String m_endpointStatus;
232 bool m_endpointStatusHasBeenSet = false;
233
234 EndpointLocation m_location;
235 bool m_locationHasBeenSet = false;
236
238 bool m_metricsHasBeenSet = false;
239
240 Aws::String m_optOut;
241 bool m_optOutHasBeenSet = false;
242
243 Aws::String m_requestId;
244 bool m_requestIdHasBeenSet = false;
245
246 EndpointUser m_user;
247 bool m_userHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace Pinpoint
252} // namespace Aws
PublicEndpoint & WithMetrics(Aws::Map< Aws::String, double > &&value)
PublicEndpoint & AddMetrics(Aws::String &&key, double value)
PublicEndpoint & WithEffectiveDate(const char *value)
const EndpointDemographic & GetDemographic() const
PublicEndpoint & WithAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
PublicEndpoint & WithUser(EndpointUser &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetOptOut(const Aws::String &value)
PublicEndpoint & AddAttributes(Aws::String &&key, Aws::Vector< Aws::String > &&value)
PublicEndpoint & WithRequestId(const Aws::String &value)
PublicEndpoint & WithEffectiveDate(const Aws::String &value)
PublicEndpoint & WithRequestId(const char *value)
PublicEndpoint & WithChannelType(const ChannelType &value)
void SetChannelType(const ChannelType &value)
PublicEndpoint & WithAddress(const Aws::String &value)
PublicEndpoint & WithEndpointStatus(Aws::String &&value)
const Aws::Map< Aws::String, double > & GetMetrics() const
PublicEndpoint & AddAttributes(const Aws::String &key, const Aws::Vector< Aws::String > &value)
PublicEndpoint & AddMetrics(const char *key, double value)
PublicEndpoint & WithLocation(const EndpointLocation &value)
const Aws::String & GetAddress() const
PublicEndpoint & WithChannelType(ChannelType &&value)
const Aws::String & GetEffectiveDate() const
void SetAddress(const char *value)
void SetAddress(Aws::String &&value)
PublicEndpoint & AddAttributes(const char *key, const Aws::Vector< Aws::String > &value)
PublicEndpoint & WithUser(const EndpointUser &value)
AWS_PINPOINT_API PublicEndpoint(Aws::Utils::Json::JsonView jsonValue)
PublicEndpoint & WithOptOut(const Aws::String &value)
void SetEffectiveDate(const Aws::String &value)
const Aws::String & GetOptOut() const
const EndpointUser & GetUser() const
PublicEndpoint & WithAddress(const char *value)
PublicEndpoint & AddMetrics(const Aws::String &key, double value)
void SetLocation(const EndpointLocation &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetrics(const Aws::Map< Aws::String, double > &value)
void SetRequestId(const char *value)
PublicEndpoint & AddAttributes(const char *key, Aws::Vector< Aws::String > &&value)
void SetEndpointStatus(const Aws::String &value)
const ChannelType & GetChannelType() const
const Aws::String & GetEndpointStatus() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
void SetUser(const EndpointUser &value)
const EndpointLocation & GetLocation() const
void SetOptOut(Aws::String &&value)
AWS_PINPOINT_API PublicEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRequestId() const
void SetAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
PublicEndpoint & WithEndpointStatus(const Aws::String &value)
PublicEndpoint & WithEffectiveDate(Aws::String &&value)
void SetEffectiveDate(Aws::String &&value)
PublicEndpoint & WithOptOut(const char *value)
void SetLocation(EndpointLocation &&value)
PublicEndpoint & WithAddress(Aws::String &&value)
PublicEndpoint & WithRequestId(Aws::String &&value)
void SetEndpointStatus(Aws::String &&value)
void SetDemographic(EndpointDemographic &&value)
PublicEndpoint & AddAttributes(const Aws::String &key, Aws::Vector< Aws::String > &&value)
PublicEndpoint & WithEndpointStatus(const char *value)
PublicEndpoint & WithOptOut(Aws::String &&value)
PublicEndpoint & WithAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetDemographic(const EndpointDemographic &value)
void SetRequestId(Aws::String &&value)
PublicEndpoint & AddAttributes(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetEffectiveDate(const char *value)
PublicEndpoint & WithMetrics(const Aws::Map< Aws::String, double > &value)
void SetChannelType(ChannelType &&value)
void SetMetrics(Aws::Map< Aws::String, double > &&value)
PublicEndpoint & WithLocation(EndpointLocation &&value)
PublicEndpoint & WithDemographic(EndpointDemographic &&value)
void SetEndpointStatus(const char *value)
void SetUser(EndpointUser &&value)
void SetAddress(const Aws::String &value)
PublicEndpoint & WithDemographic(const EndpointDemographic &value)
void SetRequestId(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