/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the amplifybackend-2020-08-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AmplifyBackend.Model { /// /// Creates the OAuth configuration for your Amplify project. /// public partial class CreateBackendAuthOAuthConfig { private string _domainPrefix; private OAuthGrantType _oAuthGrantType; private List _oAuthScopes = new List(); private List _redirectSignInURIs = new List(); private List _redirectSignOutURIs = new List(); private SocialProviderSettings _socialProviderSettings; /// /// Gets and sets the property DomainPrefix. /// /// The domain prefix for your Amplify app. /// /// public string DomainPrefix { get { return this._domainPrefix; } set { this._domainPrefix = value; } } // Check to see if DomainPrefix property is set internal bool IsSetDomainPrefix() { return this._domainPrefix != null; } /// /// Gets and sets the property OAuthGrantType. /// /// The OAuth grant type that you use to allow app users to authenticate from your Amplify /// app. /// /// [AWSProperty(Required=true)] public OAuthGrantType OAuthGrantType { get { return this._oAuthGrantType; } set { this._oAuthGrantType = value; } } // Check to see if OAuthGrantType property is set internal bool IsSetOAuthGrantType() { return this._oAuthGrantType != null; } /// /// Gets and sets the property OAuthScopes. /// /// List of OAuth-related flows used to allow your app users to authenticate from your /// Amplify app. /// /// [AWSProperty(Required=true)] public List OAuthScopes { get { return this._oAuthScopes; } set { this._oAuthScopes = value; } } // Check to see if OAuthScopes property is set internal bool IsSetOAuthScopes() { return this._oAuthScopes != null && this._oAuthScopes.Count > 0; } /// /// Gets and sets the property RedirectSignInURIs. /// /// The redirected URI for signing in to your Amplify app. /// /// [AWSProperty(Required=true)] public List RedirectSignInURIs { get { return this._redirectSignInURIs; } set { this._redirectSignInURIs = value; } } // Check to see if RedirectSignInURIs property is set internal bool IsSetRedirectSignInURIs() { return this._redirectSignInURIs != null && this._redirectSignInURIs.Count > 0; } /// /// Gets and sets the property RedirectSignOutURIs. /// /// Redirect URLs that OAuth uses when a user signs out of an Amplify app. /// /// [AWSProperty(Required=true)] public List RedirectSignOutURIs { get { return this._redirectSignOutURIs; } set { this._redirectSignOutURIs = value; } } // Check to see if RedirectSignOutURIs property is set internal bool IsSetRedirectSignOutURIs() { return this._redirectSignOutURIs != null && this._redirectSignOutURIs.Count > 0; } /// /// Gets and sets the property SocialProviderSettings. /// /// The settings for using social providers to access your Amplify app. /// /// public SocialProviderSettings SocialProviderSettings { get { return this._socialProviderSettings; } set { this._socialProviderSettings = value; } } // Check to see if SocialProviderSettings property is set internal bool IsSetSocialProviderSettings() { return this._socialProviderSettings != null; } } }