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

Describes the authorization configuration for the Amazon Cognito identity * pool, provisioned as a part of your auth resource in the Amplify * project.

See Also:

AWS * API Reference

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

A boolean value that can be set to allow or disallow guest-level * authorization into your Amplify app.

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

A boolean value that can be set to allow or disallow guest-level * authorization into your Amplify app.

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

A boolean value that can be set to allow or disallow guest-level * authorization into your Amplify app.

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

A boolean value that can be set to allow or disallow guest-level * authorization into your Amplify app.

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