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;
121 m_refreshTokenValidityHasBeenSet =
true;
122 m_refreshTokenValidity = value;
147 m_accessTokenValidityHasBeenSet =
true;
148 m_accessTokenValidity = value;
173 m_idTokenValidityHasBeenSet =
true;
174 m_idTokenValidity = value;
189 template <
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
191 m_tokenValidityUnitsHasBeenSet =
true;
192 m_tokenValidityUnits = std::forward<TokenValidityUnitsT>(value);
194 template <
typename TokenVal
idityUnitsT = TokenVal
idityUnitsType>
216 template <
typename ReadAttributesT = Aws::Vector<Aws::String>>
218 m_readAttributesHasBeenSet =
true;
219 m_readAttributes = std::forward<ReadAttributesT>(value);
221 template <
typename ReadAttributesT = Aws::Vector<Aws::String>>
226 template <
typename ReadAttributesT = Aws::String>
228 m_readAttributesHasBeenSet =
true;
229 m_readAttributes.emplace_back(std::forward<ReadAttributesT>(value));
255 template <
typename WriteAttributesT = Aws::Vector<Aws::String>>
257 m_writeAttributesHasBeenSet =
true;
258 m_writeAttributes = std::forward<WriteAttributesT>(value);
260 template <
typename WriteAttributesT = Aws::Vector<Aws::String>>
265 template <
typename WriteAttributesT = Aws::String>
267 m_writeAttributesHasBeenSet =
true;
268 m_writeAttributes.emplace_back(std::forward<WriteAttributesT>(value));
318 template <
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
320 m_explicitAuthFlowsHasBeenSet =
true;
321 m_explicitAuthFlows = std::forward<ExplicitAuthFlowsT>(value);
323 template <
typename ExplicitAuthFlowsT = Aws::Vector<ExplicitAuthFlowsType>>
329 m_explicitAuthFlowsHasBeenSet =
true;
330 m_explicitAuthFlows.push_back(value);
353 template <
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
355 m_supportedIdentityProvidersHasBeenSet =
true;
356 m_supportedIdentityProviders = std::forward<SupportedIdentityProvidersT>(value);
358 template <
typename SupportedIdentityProv
idersT = Aws::Vector<Aws::String>>
363 template <
typename SupportedIdentityProv
idersT = Aws::String>
365 m_supportedIdentityProvidersHasBeenSet =
true;
366 m_supportedIdentityProviders.emplace_back(std::forward<SupportedIdentityProvidersT>(value));
390 template <
typename CallbackURLsT = Aws::Vector<Aws::String>>
392 m_callbackURLsHasBeenSet =
true;
393 m_callbackURLs = std::forward<CallbackURLsT>(value);
395 template <
typename CallbackURLsT = Aws::Vector<Aws::String>>
400 template <
typename CallbackURLsT = Aws::String>
402 m_callbackURLsHasBeenSet =
true;
403 m_callbackURLs.emplace_back(std::forward<CallbackURLsT>(value));
422 template <
typename LogoutURLsT = Aws::Vector<Aws::String>>
424 m_logoutURLsHasBeenSet =
true;
425 m_logoutURLs = std::forward<LogoutURLsT>(value);
427 template <
typename LogoutURLsT = Aws::Vector<Aws::String>>
432 template <
typename LogoutURLsT = Aws::String>
434 m_logoutURLsHasBeenSet =
true;
435 m_logoutURLs.emplace_back(std::forward<LogoutURLsT>(value));
448 template <
typename DefaultRedirectURIT = Aws::String>
450 m_defaultRedirectURIHasBeenSet =
true;
451 m_defaultRedirectURI = std::forward<DefaultRedirectURIT>(value);
453 template <
typename DefaultRedirectURIT = Aws::String>
476 template <
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
478 m_allowedOAuthFlowsHasBeenSet =
true;
479 m_allowedOAuthFlows = std::forward<AllowedOAuthFlowsT>(value);
481 template <
typename AllowedOAuthFlowsT = Aws::Vector<OAuthFlowType>>
487 m_allowedOAuthFlowsHasBeenSet =
true;
488 m_allowedOAuthFlows.push_back(value);
506 template <
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
508 m_allowedOAuthScopesHasBeenSet =
true;
509 m_allowedOAuthScopes = std::forward<AllowedOAuthScopesT>(value);
511 template <
typename AllowedOAuthScopesT = Aws::Vector<Aws::String>>
516 template <
typename AllowedOAuthScopesT = Aws::String>
518 m_allowedOAuthScopesHasBeenSet =
true;
519 m_allowedOAuthScopes.emplace_back(std::forward<AllowedOAuthScopesT>(value));
545 m_allowedOAuthFlowsUserPoolClientHasBeenSet =
true;
546 m_allowedOAuthFlowsUserPoolClient = value;
566 template <
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
568 m_analyticsConfigurationHasBeenSet =
true;
569 m_analyticsConfiguration = std::forward<AnalyticsConfigurationT>(value);
571 template <
typename AnalyticsConfigurationT = AnalyticsConfigurationType>
595 m_preventUserExistenceErrorsHasBeenSet =
true;
596 m_preventUserExistenceErrors = value;
615 m_enableTokenRevocationHasBeenSet =
true;
616 m_enableTokenRevocation = value;
639 m_enablePropagateAdditionalUserContextDataHasBeenSet =
true;
640 m_enablePropagateAdditionalUserContextData = value;
658 m_authSessionValidityHasBeenSet =
true;
659 m_authSessionValidity = value;
676 template <
typename RefreshTokenRotationT = RefreshTokenRotationType>
678 m_refreshTokenRotationHasBeenSet =
true;
679 m_refreshTokenRotation = std::forward<RefreshTokenRotationT>(value);
681 template <
typename RefreshTokenRotationT = RefreshTokenRotationType>
692 bool m_generateSecret{
false};
694 int m_refreshTokenValidity{0};
696 int m_accessTokenValidity{0};
698 int m_idTokenValidity{0};
700 TokenValidityUnitsType m_tokenValidityUnits;
720 bool m_allowedOAuthFlowsUserPoolClient{
false};
722 AnalyticsConfigurationType m_analyticsConfiguration;
726 bool m_enableTokenRevocation{
false};
728 bool m_enablePropagateAdditionalUserContextData{
false};
730 int m_authSessionValidity{0};
732 RefreshTokenRotationType m_refreshTokenRotation;
733 bool m_userPoolIdHasBeenSet =
false;
734 bool m_clientNameHasBeenSet =
false;
735 bool m_generateSecretHasBeenSet =
false;
736 bool m_refreshTokenValidityHasBeenSet =
false;
737 bool m_accessTokenValidityHasBeenSet =
false;
738 bool m_idTokenValidityHasBeenSet =
false;
739 bool m_tokenValidityUnitsHasBeenSet =
false;
740 bool m_readAttributesHasBeenSet =
false;
741 bool m_writeAttributesHasBeenSet =
false;
742 bool m_explicitAuthFlowsHasBeenSet =
false;
743 bool m_supportedIdentityProvidersHasBeenSet =
false;
744 bool m_callbackURLsHasBeenSet =
false;
745 bool m_logoutURLsHasBeenSet =
false;
746 bool m_defaultRedirectURIHasBeenSet =
false;
747 bool m_allowedOAuthFlowsHasBeenSet =
false;
748 bool m_allowedOAuthScopesHasBeenSet =
false;
749 bool m_allowedOAuthFlowsUserPoolClientHasBeenSet =
false;
750 bool m_analyticsConfigurationHasBeenSet =
false;
751 bool m_preventUserExistenceErrorsHasBeenSet =
false;
752 bool m_enableTokenRevocationHasBeenSet =
false;
753 bool m_enablePropagateAdditionalUserContextDataHasBeenSet =
false;
754 bool m_authSessionValidityHasBeenSet =
false;
755 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