/** * 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 SageMaker { namespace Model { /** *

Use this parameter to configure your Amazon Cognito workforce. A single * Cognito workforce is created using and corresponds to a single * Amazon Cognito user pool.

See Also:

AWS * API Reference

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

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline const Aws::String& GetUserPool() const{ return m_userPool; } /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline bool UserPoolHasBeenSet() const { return m_userPoolHasBeenSet; } /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline void SetUserPool(const Aws::String& value) { m_userPoolHasBeenSet = true; m_userPool = value; } /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline void SetUserPool(Aws::String&& value) { m_userPoolHasBeenSet = true; m_userPool = std::move(value); } /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline void SetUserPool(const char* value) { m_userPoolHasBeenSet = true; m_userPool.assign(value); } /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline CognitoConfig& WithUserPool(const Aws::String& value) { SetUserPool(value); return *this;} /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline CognitoConfig& WithUserPool(Aws::String&& value) { SetUserPool(std::move(value)); return *this;} /** *

A * user pool is a user directory in Amazon Cognito. With a user pool, your * users can sign in to your web or mobile app through Amazon Cognito. Your users * can also sign in through social identity providers like Google, Facebook, * Amazon, or Apple, and through SAML identity providers.

*/ inline CognitoConfig& WithUserPool(const char* value) { SetUserPool(value); return *this;} /** *

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

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

The client ID for your Amazon Cognito user pool.

*/ inline CognitoConfig& WithClientId(const char* value) { SetClientId(value); return *this;} private: Aws::String m_userPool; bool m_userPoolHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws