/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Creates the OAuth configuration for your Amplify project.See
* Also:
AWS
* API Reference
The domain prefix for your Amplify app.
*/ inline const Aws::String& GetDomainPrefix() const{ return m_domainPrefix; } /** *The domain prefix for your Amplify app.
*/ inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; } /** *The domain prefix for your Amplify app.
*/ inline void SetDomainPrefix(const Aws::String& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = value; } /** *The domain prefix for your Amplify app.
*/ inline void SetDomainPrefix(Aws::String&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::move(value); } /** *The domain prefix for your Amplify app.
*/ inline void SetDomainPrefix(const char* value) { m_domainPrefixHasBeenSet = true; m_domainPrefix.assign(value); } /** *The domain prefix for your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithDomainPrefix(const Aws::String& value) { SetDomainPrefix(value); return *this;} /** *The domain prefix for your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithDomainPrefix(Aws::String&& value) { SetDomainPrefix(std::move(value)); return *this;} /** *The domain prefix for your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithDomainPrefix(const char* value) { SetDomainPrefix(value); return *this;} /** *The OAuth grant type that you use to allow app users to authenticate from * your Amplify app.
*/ inline const OAuthGrantType& GetOAuthGrantType() const{ return m_oAuthGrantType; } /** *The OAuth grant type that you use to allow app users to authenticate from * your Amplify app.
*/ inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; } /** *The OAuth grant type that you use 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 that you use 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 that you use to allow app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithOAuthGrantType(const OAuthGrantType& value) { SetOAuthGrantType(value); return *this;} /** *The OAuth grant type that you use to allow app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithOAuthGrantType(OAuthGrantType&& value) { SetOAuthGrantType(std::move(value)); return *this;} /** *List of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline const Aws::VectorList of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; } /** *List of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline void SetOAuthScopes(const Aws::VectorList of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline void SetOAuthScopes(Aws::VectorList of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithOAuthScopes(const Aws::VectorList of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithOAuthScopes(Aws::VectorList of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& AddOAuthScopes(const OAuthScopesElement& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; } /** *List of OAuth-related flows used to allow your app users to authenticate from * your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; } /** *The redirected URI for signing in to your Amplify app.
*/ inline const Aws::VectorThe redirected URI for signing in to your Amplify app.
*/ inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; } /** *The redirected URI for signing in to your Amplify app.
*/ inline void SetRedirectSignInURIs(const Aws::VectorThe redirected URI for signing in to your Amplify app.
*/ inline void SetRedirectSignInURIs(Aws::VectorThe redirected URI for signing in to your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithRedirectSignInURIs(const Aws::VectorThe redirected URI for signing in to your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithRedirectSignInURIs(Aws::VectorThe redirected URI for signing in to your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(const Aws::String& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; } /** *The redirected URI for signing in to your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(Aws::String&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(std::move(value)); return *this; } /** *The redirected URI for signing in to your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& 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 CreateBackendAuthOAuthConfig& WithRedirectSignOutURIs(const Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithRedirectSignOutURIs(Aws::VectorRedirect URLs that OAuth uses when a user signs out of an Amplify app.
*/ inline CreateBackendAuthOAuthConfig& 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 CreateBackendAuthOAuthConfig& 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 CreateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const char* value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; } /** *The settings for using social providers to access your Amplify app.
*/ inline const SocialProviderSettings& GetSocialProviderSettings() const{ return m_socialProviderSettings; } /** *The settings for using social providers to access your Amplify app.
*/ inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; } /** *The settings for using social providers to access your Amplify app.
*/ inline void SetSocialProviderSettings(const SocialProviderSettings& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = value; } /** *The settings for using social providers to access your Amplify app.
*/ inline void SetSocialProviderSettings(SocialProviderSettings&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::move(value); } /** *The settings for using social providers to access your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& WithSocialProviderSettings(const SocialProviderSettings& value) { SetSocialProviderSettings(value); return *this;} /** *The settings for using social providers to access your Amplify app.
*/ inline CreateBackendAuthOAuthConfig& 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