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>
21namespace AppMonetization {
49 template <
typename AppIdT = Aws::String>
51 m_appIdHasBeenSet =
true;
52 m_appId = std::forward<AppIdT>(value);
54 template <
typename AppIdT = Aws::String>
56 SetAppId(std::forward<AppIdT>(value));
69 template <
typename ClientTokenT = Aws::String>
71 m_clientTokenHasBeenSet =
true;
72 m_clientToken = std::forward<ClientTokenT>(value);
74 template <
typename ClientTokenT = Aws::String>
88 template <
typename UserIdT = Aws::String>
90 m_userIdHasBeenSet =
true;
91 m_userId = std::forward<UserIdT>(value);
93 template <
typename UserIdT = Aws::String>
107 template <
typename EventTypeT = Aws::String>
109 m_eventTypeHasBeenSet =
true;
110 m_eventType = std::forward<EventTypeT>(value);
112 template <
typename EventTypeT = Aws::String>
126 template <
typename QuantityT = Aws::String>
128 m_quantityHasBeenSet =
true;
129 m_quantity = std::forward<QuantityT>(value);
131 template <
typename QuantityT = Aws::String>
144 template <
typename TimestampT = Aws::Utils::DateTime>
146 m_timestampHasBeenSet =
true;
147 m_timestamp = std::forward<TimestampT>(value);
149 template <
typename TimestampT = Aws::Utils::DateTime>
166 template <
typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
168 m_propertiesHasBeenSet =
true;
169 m_properties = std::forward<PropertiesT>(value);
171 template <
typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
176 template <
typename PropertiesKeyT = Aws::String,
typename PropertiesValueT = Aws::String>
178 m_propertiesHasBeenSet =
true;
179 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
192 m_scopeHasBeenSet =
true;
216 bool m_appIdHasBeenSet =
false;
217 bool m_clientTokenHasBeenSet =
true;
218 bool m_userIdHasBeenSet =
false;
219 bool m_eventTypeHasBeenSet =
false;
220 bool m_quantityHasBeenSet =
false;
221 bool m_timestampHasBeenSet =
false;
222 bool m_propertiesHasBeenSet =
false;
223 bool m_scopeHasBeenSet =
false;
PutEventRequest & WithProperties(PropertiesT &&value)
void SetEventType(EventTypeT &&value)
void SetAppId(AppIdT &&value)
RequestScope GetScope() const
PutEventRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
bool TimestampHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
virtual const char * GetServiceRequestName() const override
bool ScopeHasBeenSet() const
bool ClientTokenHasBeenSet() const
PutEventRequest & WithTimestamp(TimestampT &&value)
void SetTimestamp(TimestampT &&value)
PutEventRequest & WithScope(RequestScope value)
void SetProperties(PropertiesT &&value)
PutEventRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
bool AppIdHasBeenSet() const
PutEventRequest & WithEventType(EventTypeT &&value)
bool EventTypeHasBeenSet() const
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetQuantity(QuantityT &&value)
const Aws::String & GetAppId() const
PutEventRequest & WithUserId(UserIdT &&value)
PutEventRequest & WithQuantity(QuantityT &&value)
bool PropertiesHasBeenSet() const
bool UserIdHasBeenSet() const
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
const Aws::String & GetQuantity() const
bool QuantityHasBeenSet() const
AWS_APPMONETIZATION_API PutEventRequest()=default
const Aws::String & GetEventType() const
void SetClientToken(ClientTokenT &&value)
PutEventRequest & WithAppId(AppIdT &&value)
void SetUserId(UserIdT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetScope(RequestScope value)
const Aws::String & GetUserId() const
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