7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/AnalyticsConfigurationType.h>
10#include <aws/cognito-idp/model/ExplicitAuthFlowsType.h>
11#include <aws/cognito-idp/model/OAuthFlowType.h>
12#include <aws/cognito-idp/model/PreventUserExistenceErrorTypes.h>
13#include <aws/cognito-idp/model/RefreshTokenRotationType.h>
14#include <aws/cognito-idp/model/TokenValidityUnitsType.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace CognitoIdentityProvider {
50 template <
typename UserPoolIdT = Aws::String>
52 m_userPoolIdHasBeenSet =
true;
53 m_userPoolId = std::forward<UserPoolIdT>(value);
55 template <
typename UserPoolIdT = Aws::String>
68 template <
typename ClientNameT = Aws::String>
70 m_clientNameHasBeenSet =
true;
71 m_clientName = std::forward<ClientNameT>(value);
73 template <
typename ClientNameT = Aws::String>
92 m_generateSecretHasBeenSet =
true;
93 m_generateSecret = value;
108 template <
typename ClientSecretT = Aws::String>
110 m_clientSecretHasBeenSet =
true;
111 m_clientSecret = std::forward<ClientSecretT>(value);
113 template <
typename ClientSecretT = Aws::String>
140 m_refreshTokenValidityHasBeenSet =
true;
141 m_refreshTokenValidity = value;
166 m_accessTokenValidityHasBeenSet =
true;
167 m_accessTokenValidity = value;
192 m_idTokenValidityHasBeenSet =
true;
193 m_idTokenValidity = value;
208 template <
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
210 m_tokenValidityUnitsHasBeenSet =
true;
211 m_tokenValidityUnits = std::forward<TokenValidityUnitsT>(value);
213 template <
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
235 template <
typename ReadAttributesT = Aws::Vector<Aws::String>>
237 m_readAttributesHasBeenSet =
true;
238 m_readAttributes = std::forward<ReadAttributesT>(value);
240 template <
typename ReadAttributesT = Aws::Vector<Aws::String>>
245 template <
typename ReadAttributesT = Aws::String>
247 m_readAttributesHasBeenSet =
true;
248 m_readAttributes.emplace_back(std::forward<ReadAttributesT>(value));
274 template <
typename WriteAttributesT = Aws::Vector<Aws::String>>
276 m_writeAttributesHasBeenSet =
true;
277 m_writeAttributes = std::forward<WriteAttributesT>(value);
279 template <
typename WriteAttributesT = Aws::Vector<Aws::String>>
284 template <
typename WriteAttributesT = Aws::String>
286 m_writeAttributesHasBeenSet =
true;
287 m_writeAttributes.emplace_back(std::forward<WriteAttributesT>(value));
337 template <
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
339 m_explicitAuthFlowsHasBeenSet =
true;
340 m_explicitAuthFlows = std::forward<ExplicitAuthFlowsT>(value);
342 template <
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
348 m_explicitAuthFlowsHasBeenSet =
true;
349 m_explicitAuthFlows.push_back(value);
372 template <
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
374 m_supportedIdentityProvidersHasBeenSet =
true;
375 m_supportedIdentityProviders = std::forward<SupportedIdentityProvidersT>(value);
377 template <
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
382 template <
typename SupportedIdentityProv
idersT = Aws::String>
384 m_supportedIdentityProvidersHasBeenSet =
true;
385 m_supportedIdentityProviders.emplace_back(std::forward<SupportedIdentityProvidersT>(value));
411 template <
typename CallbackURLsT = Aws::Vector<Aws::String>>
413 m_callbackURLsHasBeenSet =
true;
414 m_callbackURLs = std::forward<CallbackURLsT>(value);
416 template <
typename CallbackURLsT = Aws::Vector<Aws::String>>
421 template <
typename CallbackURLsT = Aws::String>
423 m_callbackURLsHasBeenSet =
true;
424 m_callbackURLs.emplace_back(std::forward<CallbackURLsT>(value));
443 template <
typename LogoutURLsT = Aws::Vector<Aws::String>>
445 m_logoutURLsHasBeenSet =
true;
446 m_logoutURLs = std::forward<LogoutURLsT>(value);
448 template <
typename LogoutURLsT = Aws::Vector<Aws::String>>
453 template <
typename LogoutURLsT = Aws::String>
455 m_logoutURLsHasBeenSet =
true;
456 m_logoutURLs.emplace_back(std::forward<LogoutURLsT>(value));
469 template <
typename DefaultRedirectURIT = Aws::String>
471 m_defaultRedirectURIHasBeenSet =
true;
472 m_defaultRedirectURI = std::forward<DefaultRedirectURIT>(value);
474 template <
typename DefaultRedirectURIT = Aws::String>
497 template <
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
499 m_allowedOAuthFlowsHasBeenSet =
true;
500 m_allowedOAuthFlows = std::forward<AllowedOAuthFlowsT>(value);
502 template <
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
508 m_allowedOAuthFlowsHasBeenSet =
true;
509 m_allowedOAuthFlows.push_back(value);
527 template <
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
529 m_allowedOAuthScopesHasBeenSet =
true;
530 m_allowedOAuthScopes = std::forward<AllowedOAuthScopesT>(value);
532 template <
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
537 template <
typename AllowedOAuthScopesT = Aws::String>
539 m_allowedOAuthScopesHasBeenSet =
true;
540 m_allowedOAuthScopes.emplace_back(std::forward<AllowedOAuthScopesT>(value));
566 m_allowedOAuthFlowsUserPoolClientHasBeenSet =
true;
567 m_allowedOAuthFlowsUserPoolClient = value;
587 template <
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
589 m_analyticsConfigurationHasBeenSet =
true;
590 m_analyticsConfiguration = std::forward<AnalyticsConfigurationT>(value);
592 template <
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
616 m_preventUserExistenceErrorsHasBeenSet =
true;
617 m_preventUserExistenceErrors = value;
636 m_enableTokenRevocationHasBeenSet =
true;
637 m_enableTokenRevocation = value;
660 m_enablePropagateAdditionalUserContextDataHasBeenSet =
true;
661 m_enablePropagateAdditionalUserContextData = value;
679 m_authSessionValidityHasBeenSet =
true;
680 m_authSessionValidity = value;
697 template <
typename RefreshTokenRotationT = RefreshTokenRotationType>
699 m_refreshTokenRotationHasBeenSet =
true;
700 m_refreshTokenRotation = std::forward<RefreshTokenRotationT>(value);
702 template <
typename RefreshTokenRotationT = RefreshTokenRotationType>
713 bool m_generateSecret{
false};
717 int m_refreshTokenValidity{0};
719 int m_accessTokenValidity{0};
721 int m_idTokenValidity{0};
723 TokenValidityUnitsType m_tokenValidityUnits;
743 bool m_allowedOAuthFlowsUserPoolClient{
false};
745 AnalyticsConfigurationType m_analyticsConfiguration;
749 bool m_enableTokenRevocation{
false};
751 bool m_enablePropagateAdditionalUserContextData{
false};
753 int m_authSessionValidity{0};
755 RefreshTokenRotationType m_refreshTokenRotation;
756 bool m_userPoolIdHasBeenSet =
false;
757 bool m_clientNameHasBeenSet =
false;
758 bool m_generateSecretHasBeenSet =
false;
759 bool m_clientSecretHasBeenSet =
false;
760 bool m_refreshTokenValidityHasBeenSet =
false;
761 bool m_accessTokenValidityHasBeenSet =
false;
762 bool m_idTokenValidityHasBeenSet =
false;
763 bool m_tokenValidityUnitsHasBeenSet =
false;
764 bool m_readAttributesHasBeenSet =
false;
765 bool m_writeAttributesHasBeenSet =
false;
766 bool m_explicitAuthFlowsHasBeenSet =
false;
767 bool m_supportedIdentityProvidersHasBeenSet =
false;
768 bool m_callbackURLsHasBeenSet =
false;
769 bool m_logoutURLsHasBeenSet =
false;
770 bool m_defaultRedirectURIHasBeenSet =
false;
771 bool m_allowedOAuthFlowsHasBeenSet =
false;
772 bool m_allowedOAuthScopesHasBeenSet =
false;
773 bool m_allowedOAuthFlowsUserPoolClientHasBeenSet =
false;
774 bool m_analyticsConfigurationHasBeenSet =
false;
775 bool m_preventUserExistenceErrorsHasBeenSet =
false;
776 bool m_enableTokenRevocationHasBeenSet =
false;
777 bool m_enablePropagateAdditionalUserContextDataHasBeenSet =
false;
778 bool m_authSessionValidityHasBeenSet =
false;
779 bool m_refreshTokenRotationHasBeenSet =
false;
int GetAuthSessionValidity() const
const Aws::Vector< ExplicitAuthFlowsType > & GetExplicitAuthFlows() const
bool SupportedIdentityProvidersHasBeenSet() const
bool GetEnablePropagateAdditionalUserContextData() const
CreateUserPoolClientRequest & WithPreventUserExistenceErrors(PreventUserExistenceErrorTypes value)
void SetAuthSessionValidity(int value)
const Aws::String & GetClientSecret() const
bool AccessTokenValidityHasBeenSet() const
void SetPreventUserExistenceErrors(PreventUserExistenceErrorTypes value)
void SetReadAttributes(ReadAttributesT &&value)
const RefreshTokenRotationType & GetRefreshTokenRotation() const
const Aws::Vector< OAuthFlowType > & GetAllowedOAuthFlows() const
bool AnalyticsConfigurationHasBeenSet() const
CreateUserPoolClientRequest & WithCallbackURLs(CallbackURLsT &&value)
const Aws::String & GetUserPoolId() const
int GetAccessTokenValidity() const
CreateUserPoolClientRequest & WithAuthSessionValidity(int value)
bool RefreshTokenValidityHasBeenSet() const
bool UserPoolIdHasBeenSet() const
bool GetEnableTokenRevocation() const
bool AllowedOAuthFlowsHasBeenSet() const
CreateUserPoolClientRequest & WithGenerateSecret(bool value)
const Aws::Vector< Aws::String > & GetSupportedIdentityProviders() const
CreateUserPoolClientRequest & WithAccessTokenValidity(int value)
void SetAllowedOAuthFlowsUserPoolClient(bool value)
void SetRefreshTokenRotation(RefreshTokenRotationT &&value)
bool AuthSessionValidityHasBeenSet() const
void SetAnalyticsConfiguration(AnalyticsConfigurationT &&value)
bool RefreshTokenRotationHasBeenSet() const
CreateUserPoolClientRequest & AddCallbackURLs(CallbackURLsT &&value)
bool CallbackURLsHasBeenSet() const
void SetCallbackURLs(CallbackURLsT &&value)
CreateUserPoolClientRequest & WithSupportedIdentityProviders(SupportedIdentityProvidersT &&value)
CreateUserPoolClientRequest & WithClientName(ClientNameT &&value)
CreateUserPoolClientRequest & WithAllowedOAuthFlows(AllowedOAuthFlowsT &&value)
const AnalyticsConfigurationType & GetAnalyticsConfiguration() const
CreateUserPoolClientRequest & AddWriteAttributes(WriteAttributesT &&value)
CreateUserPoolClientRequest & AddReadAttributes(ReadAttributesT &&value)
virtual const char * GetServiceRequestName() const override
CreateUserPoolClientRequest & WithAnalyticsConfiguration(AnalyticsConfigurationT &&value)
CreateUserPoolClientRequest & WithEnableTokenRevocation(bool value)
bool DefaultRedirectURIHasBeenSet() const
const Aws::Vector< Aws::String > & GetReadAttributes() const
PreventUserExistenceErrorTypes GetPreventUserExistenceErrors() const
void SetClientSecret(ClientSecretT &&value)
const Aws::Vector< Aws::String > & GetAllowedOAuthScopes() const
CreateUserPoolClientRequest & AddSupportedIdentityProviders(SupportedIdentityProvidersT &&value)
void SetExplicitAuthFlows(ExplicitAuthFlowsT &&value)
bool ClientSecretHasBeenSet() const
void SetRefreshTokenValidity(int value)
CreateUserPoolClientRequest & WithAllowedOAuthScopes(AllowedOAuthScopesT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
void SetGenerateSecret(bool value)
CreateUserPoolClientRequest & WithRefreshTokenValidity(int value)
CreateUserPoolClientRequest & AddExplicitAuthFlows(ExplicitAuthFlowsType value)
bool TokenValidityUnitsHasBeenSet() const
CreateUserPoolClientRequest & AddAllowedOAuthFlows(OAuthFlowType value)
void SetEnablePropagateAdditionalUserContextData(bool value)
void SetAllowedOAuthFlows(AllowedOAuthFlowsT &&value)
bool GetAllowedOAuthFlowsUserPoolClient() const
const Aws::Vector< Aws::String > & GetLogoutURLs() const
const TokenValidityUnitsType & GetTokenValidityUnits() const
void SetClientName(ClientNameT &&value)
bool AllowedOAuthScopesHasBeenSet() const
int GetRefreshTokenValidity() const
bool WriteAttributesHasBeenSet() const
CreateUserPoolClientRequest & WithAllowedOAuthFlowsUserPoolClient(bool value)
void SetWriteAttributes(WriteAttributesT &&value)
bool IdTokenValidityHasBeenSet() const
bool EnableTokenRevocationHasBeenSet() const
void SetDefaultRedirectURI(DefaultRedirectURIT &&value)
const Aws::String & GetClientName() const
CreateUserPoolClientRequest & WithUserPoolId(UserPoolIdT &&value)
CreateUserPoolClientRequest & WithTokenValidityUnits(TokenValidityUnitsT &&value)
void SetSupportedIdentityProviders(SupportedIdentityProvidersT &&value)
CreateUserPoolClientRequest & WithClientSecret(ClientSecretT &&value)
void SetEnableTokenRevocation(bool value)
CreateUserPoolClientRequest & WithWriteAttributes(WriteAttributesT &&value)
bool GetGenerateSecret() const
CreateUserPoolClientRequest & WithIdTokenValidity(int value)
bool ExplicitAuthFlowsHasBeenSet() const
bool ClientNameHasBeenSet() const
bool AllowedOAuthFlowsUserPoolClientHasBeenSet() const
void SetAllowedOAuthScopes(AllowedOAuthScopesT &&value)
bool PreventUserExistenceErrorsHasBeenSet() const
void SetAccessTokenValidity(int value)
CreateUserPoolClientRequest & AddLogoutURLs(LogoutURLsT &&value)
CreateUserPoolClientRequest & WithDefaultRedirectURI(DefaultRedirectURIT &&value)
CreateUserPoolClientRequest & WithEnablePropagateAdditionalUserContextData(bool value)
bool ReadAttributesHasBeenSet() const
void SetIdTokenValidity(int value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetWriteAttributes() const
int GetIdTokenValidity() const
bool LogoutURLsHasBeenSet() const
void SetUserPoolId(UserPoolIdT &&value)
void SetTokenValidityUnits(TokenValidityUnitsT &&value)
const Aws::Vector< Aws::String > & GetCallbackURLs() const
CreateUserPoolClientRequest & WithReadAttributes(ReadAttributesT &&value)
void SetLogoutURLs(LogoutURLsT &&value)
AWS_COGNITOIDENTITYPROVIDER_API CreateUserPoolClientRequest()=default
CreateUserPoolClientRequest & AddAllowedOAuthScopes(AllowedOAuthScopesT &&value)
const Aws::String & GetDefaultRedirectURI() const
CreateUserPoolClientRequest & WithExplicitAuthFlows(ExplicitAuthFlowsT &&value)
CreateUserPoolClientRequest & WithRefreshTokenRotation(RefreshTokenRotationT &&value)
CreateUserPoolClientRequest & WithLogoutURLs(LogoutURLsT &&value)
bool GenerateSecretHasBeenSet() const
bool EnablePropagateAdditionalUserContextDataHasBeenSet() const
PreventUserExistenceErrorTypes
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector