/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { /** *

Describes third-party social federation configurations for allowing your app * users to sign in using OAuth.

See Also:

AWS * API Reference

*/ class BackendAuthSocialProviderConfig { public: AWS_AMPLIFYBACKEND_API BackendAuthSocialProviderConfig(); AWS_AMPLIFYBACKEND_API BackendAuthSocialProviderConfig(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API BackendAuthSocialProviderConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline BackendAuthSocialProviderConfig& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline BackendAuthSocialProviderConfig& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

Describes the client_id, which can be obtained from the third-party social * federation provider.

*/ inline BackendAuthSocialProviderConfig& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline BackendAuthSocialProviderConfig& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline BackendAuthSocialProviderConfig& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *

Describes the client_secret, which can be obtained from third-party social * federation providers.

*/ inline BackendAuthSocialProviderConfig& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} private: Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws