/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The OAuth configurations for authenticating users into your Amplify
* app.See Also:
AWS
* API Reference
The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline const Aws::String& GetDomainPrefix() const{ return m_domainPrefix; } /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; } /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline void SetDomainPrefix(const Aws::String& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = value; } /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline void SetDomainPrefix(Aws::String&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::move(value); } /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline void SetDomainPrefix(const char* value) { m_domainPrefixHasBeenSet = true; m_domainPrefix.assign(value); } /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(const Aws::String& value) { SetDomainPrefix(value); return *this;} /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(Aws::String&& value) { SetDomainPrefix(std::move(value)); return *this;} /** *The Amazon Cognito domain prefix used to create a hosted UI for * authentication.
*/ inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(const char* value) { SetDomainPrefix(value); return *this;} /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline const OAuthGrantType& GetOAuthGrantType() const{ return m_oAuthGrantType; } /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; } /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline void SetOAuthGrantType(const OAuthGrantType& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = value; } /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline void SetOAuthGrantType(OAuthGrantType&& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = std::move(value); } /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline UpdateBackendAuthOAuthConfig& WithOAuthGrantType(const OAuthGrantType& value) { SetOAuthGrantType(value); return *this;} /** *The OAuth grant type to allow app users to authenticate from your Amplify * app.
*/ inline UpdateBackendAuthOAuthConfig& WithOAuthGrantType(OAuthGrantType&& value) { SetOAuthGrantType(std::move(value)); return *this;} /** *The list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline const Aws::VectorThe list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; } /** *The list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline void SetOAuthScopes(const Aws::VectorThe list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline void SetOAuthScopes(Aws::VectorThe list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithOAuthScopes(const Aws::VectorThe list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithOAuthScopes(Aws::VectorThe list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddOAuthScopes(const OAuthScopesElement& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; } /** *The list of OAuth-related flows that can allow users to authenticate from * your Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; } /** *Redirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline const Aws::VectorRedirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; } /** *Redirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline void SetRedirectSignInURIs(const Aws::VectorRedirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline void SetRedirectSignInURIs(Aws::VectorRedirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithRedirectSignInURIs(const Aws::VectorRedirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithRedirectSignInURIs(Aws::VectorRedirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(const Aws::String& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; } /** *Redirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(Aws::String&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(std::move(value)); return *this; } /** *Redirect URLs that OAuth uses when a user signs in to an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(const char* value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; } /** *Redirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline const Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline bool RedirectSignOutURIsHasBeenSet() const { return m_redirectSignOutURIsHasBeenSet; } /** *Redirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline void SetRedirectSignOutURIs(const Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline void SetRedirectSignOutURIs(Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithRedirectSignOutURIs(const Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& WithRedirectSignOutURIs(Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const Aws::String& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; } /** *Redirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(Aws::String&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(std::move(value)); return *this; } /** *Redirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const char* value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; } /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline const SocialProviderSettings& GetSocialProviderSettings() const{ return m_socialProviderSettings; } /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; } /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline void SetSocialProviderSettings(const SocialProviderSettings& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = value; } /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline void SetSocialProviderSettings(SocialProviderSettings&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::move(value); } /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline UpdateBackendAuthOAuthConfig& WithSocialProviderSettings(const SocialProviderSettings& value) { SetSocialProviderSettings(value); return *this;} /** *Describes third-party social federation configurations for allowing your * users to sign in with OAuth.
*/ inline UpdateBackendAuthOAuthConfig& WithSocialProviderSettings(SocialProviderSettings&& value) { SetSocialProviderSettings(std::move(value)); return *this;} private: Aws::String m_domainPrefix; bool m_domainPrefixHasBeenSet = false; OAuthGrantType m_oAuthGrantType; bool m_oAuthGrantTypeHasBeenSet = false; Aws::Vector