7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-idp/model/TokenValidityUnitsType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cognito-idp/model/AnalyticsConfigurationType.h>
13#include <aws/cognito-idp/model/PreventUserExistenceErrorTypes.h>
14#include <aws/cognito-idp/model/RefreshTokenRotationType.h>
15#include <aws/cognito-idp/model/ExplicitAuthFlowsType.h>
16#include <aws/cognito-idp/model/OAuthFlowType.h>
21namespace CognitoIdentityProvider
54 template<
typename UserPoolIdT = Aws::String>
55 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet =
true; m_userPoolId = std::forward<UserPoolIdT>(value); }
56 template<
typename UserPoolIdT = Aws::String>
66 template<
typename ClientNameT = Aws::String>
67 void SetClientName(ClientNameT&& value) { m_clientNameHasBeenSet =
true; m_clientName = std::forward<ClientNameT>(value); }
68 template<
typename ClientNameT = Aws::String>
83 inline void SetGenerateSecret(
bool value) { m_generateSecretHasBeenSet =
true; m_generateSecret = value; }
146 inline void SetIdTokenValidity(
int value) { m_idTokenValidityHasBeenSet =
true; m_idTokenValidity = value; }
157 template<
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
158 void SetTokenValidityUnits(TokenValidityUnitsT&& value) { m_tokenValidityUnitsHasBeenSet =
true; m_tokenValidityUnits = std::forward<TokenValidityUnitsT>(value); }
159 template<
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
178 template<
typename ReadAttributesT = Aws::Vector<Aws::String>>
179 void SetReadAttributes(ReadAttributesT&& value) { m_readAttributesHasBeenSet =
true; m_readAttributes = std::forward<ReadAttributesT>(value); }
180 template<
typename ReadAttributesT = Aws::Vector<Aws::String>>
182 template<
typename ReadAttributesT = Aws::String>
207 template<
typename WriteAttributesT = Aws::Vector<Aws::String>>
208 void SetWriteAttributes(WriteAttributesT&& value) { m_writeAttributesHasBeenSet =
true; m_writeAttributes = std::forward<WriteAttributesT>(value); }
209 template<
typename WriteAttributesT = Aws::Vector<Aws::String>>
211 template<
typename WriteAttributesT = Aws::String>
260 template<
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
261 void SetExplicitAuthFlows(ExplicitAuthFlowsT&& value) { m_explicitAuthFlowsHasBeenSet =
true; m_explicitAuthFlows = std::forward<ExplicitAuthFlowsT>(value); }
262 template<
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
285 template<
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
286 void SetSupportedIdentityProviders(SupportedIdentityProvidersT&& value) { m_supportedIdentityProvidersHasBeenSet =
true; m_supportedIdentityProviders = std::forward<SupportedIdentityProvidersT>(value); }
287 template<
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
289 template<
typename SupportedIdentityProv
idersT = Aws::String>
312 template<
typename CallbackURLsT = Aws::Vector<Aws::String>>
313 void SetCallbackURLs(CallbackURLsT&& value) { m_callbackURLsHasBeenSet =
true; m_callbackURLs = std::forward<CallbackURLsT>(value); }
314 template<
typename CallbackURLsT = Aws::Vector<Aws::String>>
316 template<
typename CallbackURLsT = Aws::String>
334 template<
typename LogoutURLsT = Aws::Vector<Aws::String>>
335 void SetLogoutURLs(LogoutURLsT&& value) { m_logoutURLsHasBeenSet =
true; m_logoutURLs = std::forward<LogoutURLsT>(value); }
336 template<
typename LogoutURLsT = Aws::Vector<Aws::String>>
338 template<
typename LogoutURLsT = Aws::String>
350 template<
typename DefaultRedirectURIT = Aws::String>
351 void SetDefaultRedirectURI(DefaultRedirectURIT&& value) { m_defaultRedirectURIHasBeenSet =
true; m_defaultRedirectURI = std::forward<DefaultRedirectURIT>(value); }
352 template<
typename DefaultRedirectURIT = Aws::String>
372 template<
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
373 void SetAllowedOAuthFlows(AllowedOAuthFlowsT&& value) { m_allowedOAuthFlowsHasBeenSet =
true; m_allowedOAuthFlows = std::forward<AllowedOAuthFlowsT>(value); }
374 template<
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
392 template<
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
393 void SetAllowedOAuthScopes(AllowedOAuthScopesT&& value) { m_allowedOAuthScopesHasBeenSet =
true; m_allowedOAuthScopes = std::forward<AllowedOAuthScopesT>(value); }
394 template<
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
396 template<
typename AllowedOAuthScopesT = Aws::String>
436 template<
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
437 void SetAnalyticsConfiguration(AnalyticsConfigurationT&& value) { m_analyticsConfigurationHasBeenSet =
true; m_analyticsConfiguration = std::forward<AnalyticsConfigurationT>(value); }
438 template<
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
516 template<
typename RefreshTokenRotationT = RefreshTokenRotationType>
517 void SetRefreshTokenRotation(RefreshTokenRotationT&& value) { m_refreshTokenRotationHasBeenSet =
true; m_refreshTokenRotation = std::forward<RefreshTokenRotationT>(value); }
518 template<
typename RefreshTokenRotationT = RefreshTokenRotationType>
524 bool m_userPoolIdHasBeenSet =
false;
527 bool m_clientNameHasBeenSet =
false;
529 bool m_generateSecret{
false};
530 bool m_generateSecretHasBeenSet =
false;
532 int m_refreshTokenValidity{0};
533 bool m_refreshTokenValidityHasBeenSet =
false;
535 int m_accessTokenValidity{0};
536 bool m_accessTokenValidityHasBeenSet =
false;
538 int m_idTokenValidity{0};
539 bool m_idTokenValidityHasBeenSet =
false;
541 TokenValidityUnitsType m_tokenValidityUnits;
542 bool m_tokenValidityUnitsHasBeenSet =
false;
545 bool m_readAttributesHasBeenSet =
false;
548 bool m_writeAttributesHasBeenSet =
false;
551 bool m_explicitAuthFlowsHasBeenSet =
false;
554 bool m_supportedIdentityProvidersHasBeenSet =
false;
557 bool m_callbackURLsHasBeenSet =
false;
560 bool m_logoutURLsHasBeenSet =
false;
563 bool m_defaultRedirectURIHasBeenSet =
false;
566 bool m_allowedOAuthFlowsHasBeenSet =
false;
569 bool m_allowedOAuthScopesHasBeenSet =
false;
571 bool m_allowedOAuthFlowsUserPoolClient{
false};
572 bool m_allowedOAuthFlowsUserPoolClientHasBeenSet =
false;
574 AnalyticsConfigurationType m_analyticsConfiguration;
575 bool m_analyticsConfigurationHasBeenSet =
false;
578 bool m_preventUserExistenceErrorsHasBeenSet =
false;
580 bool m_enableTokenRevocation{
false};
581 bool m_enableTokenRevocationHasBeenSet =
false;
583 bool m_enablePropagateAdditionalUserContextData{
false};
584 bool m_enablePropagateAdditionalUserContextDataHasBeenSet =
false;
586 int m_authSessionValidity{0};
587 bool m_authSessionValidityHasBeenSet =
false;
589 RefreshTokenRotationType m_refreshTokenRotation;
590 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)
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
const Aws::Vector< Aws::String > & GetAllowedOAuthScopes() const
CreateUserPoolClientRequest & AddSupportedIdentityProviders(SupportedIdentityProvidersT &&value)
void SetExplicitAuthFlows(ExplicitAuthFlowsT &&value)
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)
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