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

The configuration for an identity source that represents a connection to an * Amazon Cognito user pool used as an identity provider for Verified * Permissions.

This data type is used as a field that is part of an Configuration * structure that is used as a parameter to the Configuration.

*

Example:"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": * ["a1b2c3d4e5f6g7h8i9j0kalbmc"]}

See Also:

AWS * API Reference

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

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline const Aws::String& GetUserPoolArn() const{ return m_userPoolArn; } /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline bool UserPoolArnHasBeenSet() const { return m_userPoolArnHasBeenSet; } /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline void SetUserPoolArn(const Aws::String& value) { m_userPoolArnHasBeenSet = true; m_userPoolArn = value; } /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline void SetUserPoolArn(Aws::String&& value) { m_userPoolArnHasBeenSet = true; m_userPoolArn = std::move(value); } /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline void SetUserPoolArn(const char* value) { m_userPoolArnHasBeenSet = true; m_userPoolArn.assign(value); } /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline CognitoUserPoolConfiguration& WithUserPoolArn(const Aws::String& value) { SetUserPoolArn(value); return *this;} /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline CognitoUserPoolConfiguration& WithUserPoolArn(Aws::String&& value) { SetUserPoolArn(std::move(value)); return *this;} /** *

The Amazon * Resource Name (ARN) of the Amazon Cognito user pool that contains the * identities to be authorized.

Example: "UserPoolArn": * "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" *

*/ inline CognitoUserPoolConfiguration& WithUserPoolArn(const char* value) { SetUserPoolArn(value); return *this;} /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline const Aws::Vector& GetClientIds() const{ return m_clientIds; } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline bool ClientIdsHasBeenSet() const { return m_clientIdsHasBeenSet; } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline void SetClientIds(const Aws::Vector& value) { m_clientIdsHasBeenSet = true; m_clientIds = value; } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline void SetClientIds(Aws::Vector&& value) { m_clientIdsHasBeenSet = true; m_clientIds = std::move(value); } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline CognitoUserPoolConfiguration& WithClientIds(const Aws::Vector& value) { SetClientIds(value); return *this;} /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline CognitoUserPoolConfiguration& WithClientIds(Aws::Vector&& value) { SetClientIds(std::move(value)); return *this;} /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline CognitoUserPoolConfiguration& AddClientIds(const Aws::String& value) { m_clientIdsHasBeenSet = true; m_clientIds.push_back(value); return *this; } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline CognitoUserPoolConfiguration& AddClientIds(Aws::String&& value) { m_clientIdsHasBeenSet = true; m_clientIds.push_back(std::move(value)); return *this; } /** *

The unique application client IDs that are associated with the specified * Amazon Cognito user pool.

Example: "ClientIds": * ["&ExampleCogClientId;"]

*/ inline CognitoUserPoolConfiguration& AddClientIds(const char* value) { m_clientIdsHasBeenSet = true; m_clientIds.push_back(value); return *this; } private: Aws::String m_userPoolArn; bool m_userPoolArnHasBeenSet = false; Aws::Vector m_clientIds; bool m_clientIdsHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws