AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PutAwsServiceEventRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/RequestScope.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace AppMonetization {
22namespace Model {
23
30 public:
31 AWS_APPMONETIZATION_API PutAwsServiceEventRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutAwsServiceEvent"; }
38
39 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
40
41 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
47 inline const Aws::String& GetAppId() const { return m_appId; }
48 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
49 template <typename AppIdT = Aws::String>
50 void SetAppId(AppIdT&& value) {
51 m_appIdHasBeenSet = true;
52 m_appId = std::forward<AppIdT>(value);
53 }
54 template <typename AppIdT = Aws::String>
56 SetAppId(std::forward<AppIdT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetClientToken() const { return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 template <typename ClientTokenT = Aws::String>
70 void SetClientToken(ClientTokenT&& value) {
71 m_clientTokenHasBeenSet = true;
72 m_clientToken = std::forward<ClientTokenT>(value);
73 }
74 template <typename ClientTokenT = Aws::String>
76 SetClientToken(std::forward<ClientTokenT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetUserId() const { return m_userId; }
87 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
88 template <typename UserIdT = Aws::String>
89 void SetUserId(UserIdT&& value) {
90 m_userIdHasBeenSet = true;
91 m_userId = std::forward<UserIdT>(value);
92 }
93 template <typename UserIdT = Aws::String>
95 SetUserId(std::forward<UserIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetService() const { return m_service; }
105 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
106 template <typename ServiceT = Aws::String>
107 void SetService(ServiceT&& value) {
108 m_serviceHasBeenSet = true;
109 m_service = std::forward<ServiceT>(value);
110 }
111 template <typename ServiceT = Aws::String>
113 SetService(std::forward<ServiceT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetOperation() const { return m_operation; }
123 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
124 template <typename OperationT = Aws::String>
125 void SetOperation(OperationT&& value) {
126 m_operationHasBeenSet = true;
127 m_operation = std::forward<OperationT>(value);
128 }
129 template <typename OperationT = Aws::String>
131 SetOperation(std::forward<OperationT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetQuantity() const { return m_quantity; }
142 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
143 template <typename QuantityT = Aws::String>
144 void SetQuantity(QuantityT&& value) {
145 m_quantityHasBeenSet = true;
146 m_quantity = std::forward<QuantityT>(value);
147 }
148 template <typename QuantityT = Aws::String>
150 SetQuantity(std::forward<QuantityT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
161 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
162 template <typename TimestampT = Aws::Utils::DateTime>
163 void SetTimestamp(TimestampT&& value) {
164 m_timestampHasBeenSet = true;
165 m_timestamp = std::forward<TimestampT>(value);
166 }
167 template <typename TimestampT = Aws::Utils::DateTime>
169 SetTimestamp(std::forward<TimestampT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
179 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
180 template <typename AwsRegionT = Aws::String>
181 void SetAwsRegion(AwsRegionT&& value) {
182 m_awsRegionHasBeenSet = true;
183 m_awsRegion = std::forward<AwsRegionT>(value);
184 }
185 template <typename AwsRegionT = Aws::String>
187 SetAwsRegion(std::forward<AwsRegionT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
198 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
199 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
200 void SetProperties(PropertiesT&& value) {
201 m_propertiesHasBeenSet = true;
202 m_properties = std::forward<PropertiesT>(value);
203 }
204 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
206 SetProperties(std::forward<PropertiesT>(value));
207 return *this;
208 }
209 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
210 PutAwsServiceEventRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
211 m_propertiesHasBeenSet = true;
212 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
213 return *this;
214 }
216
218
222 inline RequestScope GetScope() const { return m_scope; }
223 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
224 inline void SetScope(RequestScope value) {
225 m_scopeHasBeenSet = true;
226 m_scope = value;
227 }
229 SetScope(value);
230 return *this;
231 }
233 private:
234 Aws::String m_appId;
235
237
238 Aws::String m_userId;
239
240 Aws::String m_service;
241
242 Aws::String m_operation;
243
244 Aws::String m_quantity;
245
246 Aws::Utils::DateTime m_timestamp{};
247
248 Aws::String m_awsRegion;
249
251
253 bool m_appIdHasBeenSet = false;
254 bool m_clientTokenHasBeenSet = true;
255 bool m_userIdHasBeenSet = false;
256 bool m_serviceHasBeenSet = false;
257 bool m_operationHasBeenSet = false;
258 bool m_quantityHasBeenSet = false;
259 bool m_timestampHasBeenSet = false;
260 bool m_awsRegionHasBeenSet = false;
261 bool m_propertiesHasBeenSet = false;
262 bool m_scopeHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace AppMonetization
267} // namespace Aws
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutAwsServiceEventRequest & WithOperation(OperationT &&value)
PutAwsServiceEventRequest & WithScope(RequestScope value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
PutAwsServiceEventRequest & WithQuantity(QuantityT &&value)
PutAwsServiceEventRequest & WithTimestamp(TimestampT &&value)
PutAwsServiceEventRequest & WithAppId(AppIdT &&value)
PutAwsServiceEventRequest & WithAwsRegion(AwsRegionT &&value)
PutAwsServiceEventRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_APPMONETIZATION_API PutAwsServiceEventRequest()=default
PutAwsServiceEventRequest & WithService(ServiceT &&value)
PutAwsServiceEventRequest & WithClientToken(ClientTokenT &&value)
PutAwsServiceEventRequest & WithProperties(PropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
PutAwsServiceEventRequest & WithUserId(UserIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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