/** * 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 authorization configurations for the auth resources, configured as * a part of your Amplify project.

See Also:

AWS * API Reference

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

Name of the Amazon Cognito identity pool used for authorization.

*/ inline const Aws::String& GetIdentityPoolName() const{ return m_identityPoolName; } /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline bool IdentityPoolNameHasBeenSet() const { return m_identityPoolNameHasBeenSet; } /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline void SetIdentityPoolName(const Aws::String& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = value; } /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline void SetIdentityPoolName(Aws::String&& value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName = std::move(value); } /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline void SetIdentityPoolName(const char* value) { m_identityPoolNameHasBeenSet = true; m_identityPoolName.assign(value); } /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline CreateBackendAuthIdentityPoolConfig& WithIdentityPoolName(const Aws::String& value) { SetIdentityPoolName(value); return *this;} /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline CreateBackendAuthIdentityPoolConfig& WithIdentityPoolName(Aws::String&& value) { SetIdentityPoolName(std::move(value)); return *this;} /** *

Name of the Amazon Cognito identity pool used for authorization.

*/ inline CreateBackendAuthIdentityPoolConfig& WithIdentityPoolName(const char* value) { SetIdentityPoolName(value); return *this;} /** *

Set to true or false based on whether you want to enable guest authorization * to your Amplify app.

*/ inline bool GetUnauthenticatedLogin() const{ return m_unauthenticatedLogin; } /** *

Set to true or false based on whether you want to enable guest authorization * to your Amplify app.

*/ inline bool UnauthenticatedLoginHasBeenSet() const { return m_unauthenticatedLoginHasBeenSet; } /** *

Set to true or false based on whether you want to enable guest authorization * to your Amplify app.

*/ inline void SetUnauthenticatedLogin(bool value) { m_unauthenticatedLoginHasBeenSet = true; m_unauthenticatedLogin = value; } /** *

Set to true or false based on whether you want to enable guest authorization * to your Amplify app.

*/ inline CreateBackendAuthIdentityPoolConfig& WithUnauthenticatedLogin(bool value) { SetUnauthenticatedLogin(value); return *this;} private: Aws::String m_identityPoolName; bool m_identityPoolNameHasBeenSet = false; bool m_unauthenticatedLogin; bool m_unauthenticatedLoginHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws