AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 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 EndpointRequest& 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 EndpointRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
83 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::Vector<Aws::String>>
84 EndpointRequest& 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 EndpointRequest& 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 EndpointRequest& WithDemographic(DemographicT&& value) { SetDemographic(std::forward<DemographicT>(value)); return *this;}
112
114
117 inline const Aws::String& GetEffectiveDate() const { return m_effectiveDate; }
118 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
119 template<typename EffectiveDateT = Aws::String>
120 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
121 template<typename EffectiveDateT = Aws::String>
122 EndpointRequest& WithEffectiveDate(EffectiveDateT&& value) { SetEffectiveDate(std::forward<EffectiveDateT>(value)); return *this;}
124
126
134 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
135 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
136 template<typename EndpointStatusT = Aws::String>
137 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
138 template<typename EndpointStatusT = Aws::String>
139 EndpointRequest& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
141
143
146 inline const EndpointLocation& GetLocation() const { return m_location; }
147 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
148 template<typename LocationT = EndpointLocation>
149 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
150 template<typename LocationT = EndpointLocation>
151 EndpointRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(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 template<typename MetricsT = Aws::Map<Aws::String, double>>
162 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
163 template<typename MetricsT = Aws::Map<Aws::String, double>>
164 EndpointRequest& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
165 inline EndpointRequest& AddMetrics(Aws::String key, double value) {
166 m_metricsHasBeenSet = true; m_metrics.emplace(key, value); return *this;
167 }
169
171
178 inline const Aws::String& GetOptOut() const { return m_optOut; }
179 inline bool OptOutHasBeenSet() const { return m_optOutHasBeenSet; }
180 template<typename OptOutT = Aws::String>
181 void SetOptOut(OptOutT&& value) { m_optOutHasBeenSet = true; m_optOut = std::forward<OptOutT>(value); }
182 template<typename OptOutT = Aws::String>
183 EndpointRequest& WithOptOut(OptOutT&& value) { SetOptOut(std::forward<OptOutT>(value)); return *this;}
185
187
190 inline const Aws::String& GetRequestId() const { return m_requestId; }
191 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
192 template<typename RequestIdT = Aws::String>
193 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
194 template<typename RequestIdT = Aws::String>
195 EndpointRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
197
199
203 inline const EndpointUser& GetUser() const { return m_user; }
204 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
205 template<typename UserT = EndpointUser>
206 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
207 template<typename UserT = EndpointUser>
208 EndpointRequest& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
210 private:
211
212 Aws::String m_address;
213 bool m_addressHasBeenSet = false;
214
216 bool m_attributesHasBeenSet = false;
217
218 ChannelType m_channelType{ChannelType::NOT_SET};
219 bool m_channelTypeHasBeenSet = false;
220
221 EndpointDemographic m_demographic;
222 bool m_demographicHasBeenSet = false;
223
224 Aws::String m_effectiveDate;
225 bool m_effectiveDateHasBeenSet = false;
226
227 Aws::String m_endpointStatus;
228 bool m_endpointStatusHasBeenSet = false;
229
230 EndpointLocation m_location;
231 bool m_locationHasBeenSet = false;
232
234 bool m_metricsHasBeenSet = false;
235
236 Aws::String m_optOut;
237 bool m_optOutHasBeenSet = false;
238
239 Aws::String m_requestId;
240 bool m_requestIdHasBeenSet = false;
241
242 EndpointUser m_user;
243 bool m_userHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace Pinpoint
248} // namespace Aws
const Aws::String & GetOptOut() const
const Aws::Map< Aws::String, double > & GetMetrics() const
EndpointRequest & WithChannelType(ChannelType value)
const Aws::String & GetAddress() const
const EndpointDemographic & GetDemographic() const
EndpointRequest & WithEffectiveDate(EffectiveDateT &&value)
EndpointRequest & WithDemographic(DemographicT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const EndpointUser & GetUser() const
EndpointRequest & WithRequestId(RequestIdT &&value)
EndpointRequest & WithMetrics(MetricsT &&value)
EndpointRequest & WithUser(UserT &&value)
EndpointRequest & WithEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API EndpointRequest(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAttributes(AttributesT &&value)
EndpointRequest & WithLocation(LocationT &&value)
EndpointRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::String & GetEndpointStatus() const
void SetChannelType(ChannelType value)
void SetEndpointStatus(EndpointStatusT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDemographic(DemographicT &&value)
EndpointRequest & AddMetrics(Aws::String key, double value)
const Aws::String & GetEffectiveDate() const
AWS_PINPOINT_API EndpointRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointRequest & WithAddress(AddressT &&value)
EndpointRequest & WithOptOut(OptOutT &&value)
const EndpointLocation & GetLocation() const
void SetEffectiveDate(EffectiveDateT &&value)
void SetAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAttributes() const
AWS_PINPOINT_API EndpointRequest()=default
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