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

Describes an Amazon Cognito user pool configuration.

See Also:

* AWS * API Reference

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

The user pool ID.

*/ inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; } /** *

The user pool ID.

*/ inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; } /** *

The user pool ID.

*/ inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; } /** *

The user pool ID.

*/ inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); } /** *

The user pool ID.

*/ inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); } /** *

The user pool ID.

*/ inline CognitoUserPoolConfig& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;} /** *

The user pool ID.

*/ inline CognitoUserPoolConfig& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;} /** *

The user pool ID.

*/ inline CognitoUserPoolConfig& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;} /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; } /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); } /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline CognitoUserPoolConfig& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;} /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline CognitoUserPoolConfig& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region in which the user pool was created.

*/ inline CognitoUserPoolConfig& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;} /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline const Aws::String& GetAppIdClientRegex() const{ return m_appIdClientRegex; } /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; } /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline void SetAppIdClientRegex(const Aws::String& value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex = value; } /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline void SetAppIdClientRegex(Aws::String&& value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex = std::move(value); } /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline void SetAppIdClientRegex(const char* value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex.assign(value); } /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline CognitoUserPoolConfig& WithAppIdClientRegex(const Aws::String& value) { SetAppIdClientRegex(value); return *this;} /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline CognitoUserPoolConfig& WithAppIdClientRegex(Aws::String&& value) { SetAppIdClientRegex(std::move(value)); return *this;} /** *

A regular expression for validating the incoming Amazon Cognito user pool app * client ID. If this value isn't set, no filtering is applied.

*/ inline CognitoUserPoolConfig& WithAppIdClientRegex(const char* value) { SetAppIdClientRegex(value); return *this;} private: Aws::String m_userPoolId; bool m_userPoolIdHasBeenSet = false; Aws::String m_awsRegion; bool m_awsRegionHasBeenSet = false; Aws::String m_appIdClientRegex; bool m_appIdClientRegexHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws