AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AddressT = Aws::String>
55 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
56 template<typename AddressT = Aws::String>
57 PublicEndpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
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) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
70 template<typename AttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
71 PublicEndpoint& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
72 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
73 PublicEndpoint& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
74 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
75 }
77
79
83 inline ChannelType GetChannelType() const { return m_channelType; }
84 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
85 inline void SetChannelType(ChannelType value) { m_channelTypeHasBeenSet = true; m_channelType = value; }
86 inline PublicEndpoint& WithChannelType(ChannelType value) { SetChannelType(value); return *this;}
88
90
94 inline const EndpointDemographic& GetDemographic() const { return m_demographic; }
95 inline bool DemographicHasBeenSet() const { return m_demographicHasBeenSet; }
96 template<typename DemographicT = EndpointDemographic>
97 void SetDemographic(DemographicT&& value) { m_demographicHasBeenSet = true; m_demographic = std::forward<DemographicT>(value); }
98 template<typename DemographicT = EndpointDemographic>
99 PublicEndpoint& WithDemographic(DemographicT&& value) { SetDemographic(std::forward<DemographicT>(value)); return *this;}
101
103
107 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
108 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
109 template<typename EffectiveDateT = Aws::String>
110 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
111 template<typename EffectiveDateT = Aws::String>
112 PublicEndpoint& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
114
116
124 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
125 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
126 template<typename EndpointStatusT = Aws::String>
127 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
128 template<typename EndpointStatusT = Aws::String>
129 PublicEndpoint& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
131
133
136 inline const EndpointLocation& GetLocation() const { return m_location; }
137 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
138 template<typename LocationT = EndpointLocation>
139 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
140 template<typename LocationT = EndpointLocation>
141 PublicEndpoint& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
143
145
149 inline const Aws::Map<Aws::String, double>& GetMetrics() const { return m_metrics; }
150 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
151 template<typename MetricsT = Aws::Map<Aws::String, double>>
152 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
153 template<typename MetricsT = Aws::Map<Aws::String, double>>
154 PublicEndpoint& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
155 inline PublicEndpoint& AddMetrics(Aws::String key, double value) {
156 m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this;
157 }
159
161
168 inline const Aws::String& GetOptOut() const { return m_optOut; }
169 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
170 template<typename OptOutT = Aws::String>
171 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet = true; m_optOut = std::forward<OptOutT>(value); }
172 template<typename OptOutT = Aws::String>
173 PublicEndpoint& WithOptOut(OptOutT&& value) { SetOptOut(std::forward<OptOutT>(value)); return *this;}
175
177
180 inline const Aws::String& GetRequestId() const { return m_requestId; }
181 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
182 template<typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
184 template<typename RequestIdT = Aws::String>
185 PublicEndpoint& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
187
189
193 inline const EndpointUser& GetUser() const { return m_user; }
194 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
195 template<typename UserT = EndpointUser>
196 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
197 template<typename UserT = EndpointUser>
198 PublicEndpoint& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
200 private:
201
202 Aws::String m_address;
203 bool m_addressHasBeenSet = false;
204
206 bool m_attributesHasBeenSet = false;
207
208 ChannelType m_channelType{ChannelType::NOT_SET};
209 bool m_channelTypeHasBeenSet = false;
210
211 EndpointDemographic m_demographic;
212 bool m_demographicHasBeenSet = false;
213
214 Aws::String m_effectiveDate;
215 bool m_effectiveDateHasBeenSet = false;
216
217 Aws::String m_endpointStatus;
218 bool m_endpointStatusHasBeenSet = false;
219
220 EndpointLocation m_location;
221 bool m_locationHasBeenSet = false;
222
224 bool m_metricsHasBeenSet = false;
225
226 Aws::String m_optOut;
227 bool m_optOutHasBeenSet = false;
228
229 Aws::String m_requestId;
230 bool m_requestIdHasBeenSet = false;
231
232 EndpointUser m_user;
233 bool m_userHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace Pinpoint
238} // 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