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>
19namespace AppMonetization {
35 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateSubscriptionCheckoutSession"; }
47 template <
typename AppIdT = Aws::String>
49 m_appIdHasBeenSet =
true;
50 m_appId = std::forward<AppIdT>(value);
52 template <
typename AppIdT = Aws::String>
54 SetAppId(std::forward<AppIdT>(value));
66 template <
typename UserIdT = Aws::String>
68 m_userIdHasBeenSet =
true;
69 m_userId = std::forward<UserIdT>(value);
71 template <
typename UserIdT = Aws::String>
86 template <
typename PlanIdT = Aws::String>
88 m_planIdHasBeenSet =
true;
89 m_planId = std::forward<PlanIdT>(value);
91 template <
typename PlanIdT = Aws::String>
108 template <
typename ReturnUrlT = Aws::String>
110 m_returnUrlHasBeenSet =
true;
111 m_returnUrl = std::forward<ReturnUrlT>(value);
113 template <
typename ReturnUrlT = Aws::String>
130 template <
typename RefreshUrlT = Aws::String>
132 m_refreshUrlHasBeenSet =
true;
133 m_refreshUrl = std::forward<RefreshUrlT>(value);
135 template <
typename RefreshUrlT = Aws::String>
151 m_sessionDurationSecondsHasBeenSet =
true;
152 m_sessionDurationSeconds = value;
168 template <
typename ClientTokenT = Aws::String>
170 m_clientTokenHasBeenSet =
true;
171 m_clientToken = std::forward<ClientTokenT>(value);
173 template <
typename ClientTokenT = Aws::String>
187 m_scopeHasBeenSet =
true;
206 int m_sessionDurationSeconds{0};
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;
void SetReturnUrl(ReturnUrlT &&value)
RequestScope GetScope() const
int GetSessionDurationSeconds() const
const Aws::String & GetUserId() const
void SetScope(RequestScope value)
bool RefreshUrlHasBeenSet() const
bool PlanIdHasBeenSet() const
AWS_APPMONETIZATION_API CreateSubscriptionCheckoutSessionRequest()=default
CreateSubscriptionCheckoutSessionRequest & WithAppId(AppIdT &&value)
const Aws::String & GetRefreshUrl() const
void SetRefreshUrl(RefreshUrlT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
bool ReturnUrlHasBeenSet() const
bool SessionDurationSecondsHasBeenSet() const
bool ScopeHasBeenSet() const
CreateSubscriptionCheckoutSessionRequest & WithPlanId(PlanIdT &&value)
const Aws::String & GetPlanId() const
CreateSubscriptionCheckoutSessionRequest & WithSessionDurationSeconds(int value)
CreateSubscriptionCheckoutSessionRequest & WithReturnUrl(ReturnUrlT &&value)
const Aws::String & GetReturnUrl() const
bool UserIdHasBeenSet() const
CreateSubscriptionCheckoutSessionRequest & WithUserId(UserIdT &&value)
bool ClientTokenHasBeenSet() const
CreateSubscriptionCheckoutSessionRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetAppId() const
void SetAppId(AppIdT &&value)
void SetSessionDurationSeconds(int value)
void SetUserId(UserIdT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
CreateSubscriptionCheckoutSessionRequest & WithRefreshUrl(RefreshUrlT &&value)
bool AppIdHasBeenSet() const
void SetPlanId(PlanIdT &&value)
CreateSubscriptionCheckoutSessionRequest & WithScope(RequestScope value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String