AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EndpointRequest.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 EndpointRequest();
42 AWS_PINPOINT_API EndpointRequest(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 EndpointRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
62 inline EndpointRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
63 inline EndpointRequest& 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 EndpointRequest& WithAttributes(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAttributes(std::move(value)); return *this;}
85 inline EndpointRequest& AddAttributes(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
86 inline EndpointRequest& AddAttributes(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
87 inline EndpointRequest& AddAttributes(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
88 inline EndpointRequest& 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 EndpointRequest& AddAttributes(const char* key, Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
90 inline EndpointRequest& 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 EndpointRequest& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;}
103 inline EndpointRequest& 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 EndpointRequest& WithDemographic(const EndpointDemographic& value) { SetDemographic(value); return *this;}
116 inline EndpointRequest& WithDemographic(EndpointDemographic&& value) { SetDemographic(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetEffectiveDate() const{ return m_effectiveDate; }
124 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
125 inline void SetEffectiveDate(const Aws::String& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = value; }
126 inline void SetEffectiveDate(Aws::String&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::move(value); }
127 inline void SetEffectiveDate(const char* value) { m_effectiveDateHasBeenSet = true; m_effectiveDate.assign(value); }
128 inline EndpointRequest& WithEffectiveDate(const Aws::String& value) { SetEffectiveDate(value); return *this;}
129 inline EndpointRequest& WithEffectiveDate(Aws::String&& value) { SetEffectiveDate(std::move(value)); return *this;}
130 inline EndpointRequest& WithEffectiveDate(const char* value) { SetEffectiveDate(value); return *this;}
132
134
142 inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; }
143 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
144 inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
145 inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); }
146 inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); }
147 inline EndpointRequest& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;}
148 inline EndpointRequest& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;}
149 inline EndpointRequest& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;}
151
153
156 inline const EndpointLocation& GetLocation() const{ return m_location; }
157 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
158 inline void SetLocation(const EndpointLocation& value) { m_locationHasBeenSet = true; m_location = value; }
159 inline void SetLocation(EndpointLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
160 inline EndpointRequest& WithLocation(const EndpointLocation& value) { SetLocation(value); return *this;}
161 inline EndpointRequest& WithLocation(EndpointLocation&& value) { SetLocation(std::move(value)); return *this;}
163
165
169 inline const Aws::Map<Aws::String, double>& GetMetrics() const{ return m_metrics; }
170 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
171 inline void SetMetrics(const Aws::Map<Aws::String, double>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
172 inline void SetMetrics(Aws::Map<Aws::String, double>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
173 inline EndpointRequest& WithMetrics(const Aws::Map<Aws::String, double>& value) { SetMetrics(value); return *this;}
174 inline EndpointRequest& WithMetrics(Aws::Map<Aws::String, double>&& value) { SetMetrics(std::move(value)); return *this;}
175 inline EndpointRequest& AddMetrics(const Aws::String& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
176 inline EndpointRequest& AddMetrics(Aws::String&& key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(std::move(key), value); return *this; }
177 inline EndpointRequest& AddMetrics(const char* key, double value) { m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this; }
179
181
188 inline const Aws::String& GetOptOut() const{ return m_optOut; }
189 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
190 inline void SetOptOut(const Aws::String& value) { m_optOutHasBeenSet = true; m_optOut = value; }
191 inline void SetOptOut(Aws::String&& value) { m_optOutHasBeenSet = true; m_optOut = std::move(value); }
192 inline void SetOptOut(const char* value) { m_optOutHasBeenSet = true; m_optOut.assign(value); }
193 inline EndpointRequest& WithOptOut(const Aws::String& value) { SetOptOut(value); return *this;}
194 inline EndpointRequest& WithOptOut(Aws::String&& value) { SetOptOut(std::move(value)); return *this;}
195 inline EndpointRequest& WithOptOut(const char* value) { SetOptOut(value); return *this;}
197
199
202 inline const Aws::String& GetRequestId() const{ return m_requestId; }
203 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
204 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
205 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
206 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
207 inline EndpointRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
208 inline EndpointRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
209 inline EndpointRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
211
213
217 inline const EndpointUser& GetUser() const{ return m_user; }
218 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
219 inline void SetUser(const EndpointUser& value) { m_userHasBeenSet = true; m_user = value; }
220 inline void SetUser(EndpointUser&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
221 inline EndpointRequest& WithUser(const EndpointUser& value) { SetUser(value); return *this;}
222 inline EndpointRequest& WithUser(EndpointUser&& value) { SetUser(std::move(value)); return *this;}
224 private:
225
226 Aws::String m_address;
227 bool m_addressHasBeenSet = false;
228
230 bool m_attributesHasBeenSet = false;
231
232 ChannelType m_channelType;
233 bool m_channelTypeHasBeenSet = false;
234
235 EndpointDemographic m_demographic;
236 bool m_demographicHasBeenSet = false;
237
238 Aws::String m_effectiveDate;
239 bool m_effectiveDateHasBeenSet = false;
240
241 Aws::String m_endpointStatus;
242 bool m_endpointStatusHasBeenSet = false;
243
244 EndpointLocation m_location;
245 bool m_locationHasBeenSet = false;
246
248 bool m_metricsHasBeenSet = false;
249
250 Aws::String m_optOut;
251 bool m_optOutHasBeenSet = false;
252
253 Aws::String m_requestId;
254 bool m_requestIdHasBeenSet = false;
255
256 EndpointUser m_user;
257 bool m_userHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace Pinpoint
262} // namespace Aws
void SetUser(EndpointUser &&value)
EndpointRequest & WithEndpointStatus(const Aws::String &value)
void SetEffectiveDate(const char *value)
const Aws::String & GetOptOut() const
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointRequest & WithLocation(const EndpointLocation &value)
void SetMetrics(Aws::Map< Aws::String, double > &&value)
void SetChannelType(const ChannelType &value)
EndpointRequest & WithOptOut(Aws::String &&value)
EndpointRequest & WithChannelType(const ChannelType &value)
void SetAddress(const Aws::String &value)
EndpointRequest & WithUser(const EndpointUser &value)
EndpointRequest & WithLocation(EndpointLocation &&value)
const Aws::String & GetAddress() const
const EndpointDemographic & GetDemographic() const
void SetRequestId(const Aws::String &value)
void SetEffectiveDate(const Aws::String &value)
EndpointRequest & AddAttributes(const char *key, const Aws::Vector< Aws::String > &value)
void SetOptOut(Aws::String &&value)
void SetEndpointStatus(Aws::String &&value)
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
EndpointRequest & AddAttributes(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetDemographic(const EndpointDemographic &value)
void SetLocation(EndpointLocation &&value)
void SetAddress(Aws::String &&value)
EndpointRequest & WithEndpointStatus(Aws::String &&value)
EndpointRequest & AddAttributes(const Aws::String &key, Aws::Vector< Aws::String > &&value)
EndpointRequest & WithAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
AWS_PINPOINT_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithDemographic(const EndpointDemographic &value)
const Aws::String & GetEndpointStatus() const
EndpointRequest & AddMetrics(Aws::String &&key, double value)
void SetEndpointStatus(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
EndpointRequest & WithAddress(const char *value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EndpointRequest & WithEffectiveDate(Aws::String &&value)
EndpointRequest & WithAddress(Aws::String &&value)
EndpointRequest & WithAttributes(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
EndpointRequest & WithMetrics(const Aws::Map< Aws::String, double > &value)
void SetOptOut(const Aws::String &value)
EndpointRequest & AddAttributes(Aws::String &&key, Aws::Vector< Aws::String > &&value)
EndpointRequest & WithEndpointStatus(const char *value)
EndpointRequest & WithOptOut(const char *value)
EndpointRequest & AddMetrics(const Aws::String &key, double value)
EndpointRequest & WithDemographic(EndpointDemographic &&value)
EndpointRequest & WithAddress(const Aws::String &value)
EndpointRequest & WithMetrics(Aws::Map< Aws::String, double > &&value)
EndpointRequest & WithRequestId(const char *value)
EndpointRequest & AddMetrics(const char *key, double value)
EndpointRequest & WithEffectiveDate(const Aws::String &value)
EndpointRequest & WithRequestId(Aws::String &&value)
const Aws::String & GetEffectiveDate() const
EndpointRequest & WithRequestId(const Aws::String &value)
void SetUser(const EndpointUser &value)
const ChannelType & GetChannelType() const
AWS_PINPOINT_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocation(const EndpointLocation &value)
EndpointRequest & WithOptOut(const Aws::String &value)
EndpointRequest & AddAttributes(const char *key, Aws::Vector< Aws::String > &&value)
void SetChannelType(ChannelType &&value)
void SetEffectiveDate(Aws::String &&value)
void SetDemographic(EndpointDemographic &&value)
void SetEndpointStatus(const char *value)
const EndpointLocation & GetLocation() const
EndpointRequest & AddAttributes(Aws::String &&key, const Aws::Vector< Aws::String > &value)
EndpointRequest & WithUser(EndpointUser &&value)
EndpointRequest & WithChannelType(ChannelType &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
void SetRequestId(Aws::String &&value)
void SetMetrics(const Aws::Map< Aws::String, double > &value)
EndpointRequest & WithEffectiveDate(const char *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