AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateSubscriptionCheckoutSessionRequest.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/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API CreateSubscriptionCheckoutSessionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionCheckoutSession"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetAppId() const { return m_appId; }
46 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 template <typename AppIdT = Aws::String>
48 void SetAppId(AppIdT&& value) {
49 m_appIdHasBeenSet = true;
50 m_appId = std::forward<AppIdT>(value);
51 }
52 template <typename AppIdT = Aws::String>
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetPlanId() const { return m_planId; }
85 inline bool PlanIdHasBeenSet() const { return m_planIdHasBeenSet; }
86 template <typename PlanIdT = Aws::String>
87 void SetPlanId(PlanIdT&& value) {
88 m_planIdHasBeenSet = true;
89 m_planId = std::forward<PlanIdT>(value);
90 }
91 template <typename PlanIdT = Aws::String>
93 SetPlanId(std::forward<PlanIdT>(value));
94 return *this;
95 }
97
99
106 inline const Aws::String& GetReturnUrl() const { return m_returnUrl; }
107 inline bool ReturnUrlHasBeenSet() const { return m_returnUrlHasBeenSet; }
108 template <typename ReturnUrlT = Aws::String>
109 void SetReturnUrl(ReturnUrlT&& value) {
110 m_returnUrlHasBeenSet = true;
111 m_returnUrl = std::forward<ReturnUrlT>(value);
112 }
113 template <typename ReturnUrlT = Aws::String>
115 SetReturnUrl(std::forward<ReturnUrlT>(value));
116 return *this;
117 }
119
121
128 inline const Aws::String& GetRefreshUrl() const { return m_refreshUrl; }
129 inline bool RefreshUrlHasBeenSet() const { return m_refreshUrlHasBeenSet; }
130 template <typename RefreshUrlT = Aws::String>
131 void SetRefreshUrl(RefreshUrlT&& value) {
132 m_refreshUrlHasBeenSet = true;
133 m_refreshUrl = std::forward<RefreshUrlT>(value);
134 }
135 template <typename RefreshUrlT = Aws::String>
137 SetRefreshUrl(std::forward<RefreshUrlT>(value));
138 return *this;
139 }
141
143
148 inline int GetSessionDurationSeconds() const { return m_sessionDurationSeconds; }
149 inline bool SessionDurationSecondsHasBeenSet() const { return m_sessionDurationSecondsHasBeenSet; }
150 inline void SetSessionDurationSeconds(int value) {
151 m_sessionDurationSecondsHasBeenSet = true;
152 m_sessionDurationSeconds = value;
153 }
159
161
166 inline const Aws::String& GetClientToken() const { return m_clientToken; }
167 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
168 template <typename ClientTokenT = Aws::String>
169 void SetClientToken(ClientTokenT&& value) {
170 m_clientTokenHasBeenSet = true;
171 m_clientToken = std::forward<ClientTokenT>(value);
172 }
173 template <typename ClientTokenT = Aws::String>
175 SetClientToken(std::forward<ClientTokenT>(value));
176 return *this;
177 }
179
181
184 inline RequestScope GetScope() const { return m_scope; }
185 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
186 inline void SetScope(RequestScope value) {
187 m_scopeHasBeenSet = true;
188 m_scope = value;
189 }
191 SetScope(value);
192 return *this;
193 }
195 private:
196 Aws::String m_appId;
197
198 Aws::String m_userId;
199
200 Aws::String m_planId;
201
202 Aws::String m_returnUrl;
203
204 Aws::String m_refreshUrl;
205
206 int m_sessionDurationSeconds{0};
207
209
211 bool m_appIdHasBeenSet = false;
212 bool m_userIdHasBeenSet = false;
213 bool m_planIdHasBeenSet = false;
214 bool m_returnUrlHasBeenSet = false;
215 bool m_refreshUrlHasBeenSet = false;
216 bool m_sessionDurationSecondsHasBeenSet = false;
217 bool m_clientTokenHasBeenSet = true;
218 bool m_scopeHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace AppMonetization
223} // namespace Aws
AWS_APPMONETIZATION_API CreateSubscriptionCheckoutSessionRequest()=default
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateSubscriptionCheckoutSessionRequest & WithReturnUrl(ReturnUrlT &&value)
CreateSubscriptionCheckoutSessionRequest & WithClientToken(ClientTokenT &&value)
CreateSubscriptionCheckoutSessionRequest & WithRefreshUrl(RefreshUrlT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String