AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetEntitlementDecisionRequest.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/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppMonetization {
17namespace Model {
18
25 public:
26 AWS_APPMONETIZATION_API GetEntitlementDecisionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetEntitlementDecision"; }
33
34 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAppId() const { return m_appId; }
41 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
42 template <typename AppIdT = Aws::String>
43 void SetAppId(AppIdT&& value) {
44 m_appIdHasBeenSet = true;
45 m_appId = std::forward<AppIdT>(value);
46 }
47 template <typename AppIdT = Aws::String>
49 SetAppId(std::forward<AppIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetUserId() const { return m_userId; }
60 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
61 template <typename UserIdT = Aws::String>
62 void SetUserId(UserIdT&& value) {
63 m_userIdHasBeenSet = true;
64 m_userId = std::forward<UserIdT>(value);
65 }
66 template <typename UserIdT = Aws::String>
68 SetUserId(std::forward<UserIdT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetEventType() const { return m_eventType; }
80 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
81 template <typename EventTypeT = Aws::String>
82 void SetEventType(EventTypeT&& value) {
83 m_eventTypeHasBeenSet = true;
84 m_eventType = std::forward<EventTypeT>(value);
85 }
86 template <typename EventTypeT = Aws::String>
88 SetEventType(std::forward<EventTypeT>(value));
89 return *this;
90 }
92
94
98 inline RequestScope GetScope() const { return m_scope; }
99 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
100 inline void SetScope(RequestScope value) {
101 m_scopeHasBeenSet = true;
102 m_scope = value;
103 }
105 SetScope(value);
106 return *this;
107 }
109
111
120 inline const Aws::String& GetQuantity() const { return m_quantity; }
121 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
122 template <typename QuantityT = Aws::String>
123 void SetQuantity(QuantityT&& value) {
124 m_quantityHasBeenSet = true;
125 m_quantity = std::forward<QuantityT>(value);
126 }
127 template <typename QuantityT = Aws::String>
129 SetQuantity(std::forward<QuantityT>(value));
130 return *this;
131 }
133
135
142 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
143 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
144 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
145 void SetProperties(PropertiesT&& value) {
146 m_propertiesHasBeenSet = true;
147 m_properties = std::forward<PropertiesT>(value);
148 }
149 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
151 SetProperties(std::forward<PropertiesT>(value));
152 return *this;
153 }
154 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
155 GetEntitlementDecisionRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
156 m_propertiesHasBeenSet = true;
157 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_appId;
163
164 Aws::String m_userId;
165
166 Aws::String m_eventType;
167
169
170 Aws::String m_quantity;
171
173 bool m_appIdHasBeenSet = false;
174 bool m_userIdHasBeenSet = false;
175 bool m_eventTypeHasBeenSet = false;
176 bool m_scopeHasBeenSet = false;
177 bool m_quantityHasBeenSet = false;
178 bool m_propertiesHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace AppMonetization
183} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
GetEntitlementDecisionRequest & WithEventType(EventTypeT &&value)
AWS_APPMONETIZATION_API GetEntitlementDecisionRequest()=default
GetEntitlementDecisionRequest & WithQuantity(QuantityT &&value)
GetEntitlementDecisionRequest & WithScope(RequestScope value)
GetEntitlementDecisionRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
GetEntitlementDecisionRequest & WithUserId(UserIdT &&value)
GetEntitlementDecisionRequest & WithProperties(PropertiesT &&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