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

Defines the resource configuration when updating an authentication resource * in your Amplify project.

See Also:

AWS * API Reference

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

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline const AuthResources& GetAuthResources() const{ return m_authResources; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline bool AuthResourcesHasBeenSet() const { return m_authResourcesHasBeenSet; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline void SetAuthResources(const AuthResources& value) { m_authResourcesHasBeenSet = true; m_authResources = value; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline void SetAuthResources(AuthResources&& value) { m_authResourcesHasBeenSet = true; m_authResources = std::move(value); } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline UpdateBackendAuthResourceConfig& WithAuthResources(const AuthResources& value) { SetAuthResources(value); return *this;} /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline UpdateBackendAuthResourceConfig& WithAuthResources(AuthResources&& value) { SetAuthResources(std::move(value)); return *this;} /** *

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

*/ inline const UpdateBackendAuthIdentityPoolConfig& GetIdentityPoolConfigs() const{ return m_identityPoolConfigs; } /** *

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

*/ inline bool IdentityPoolConfigsHasBeenSet() const { return m_identityPoolConfigsHasBeenSet; } /** *

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

*/ inline void SetIdentityPoolConfigs(const UpdateBackendAuthIdentityPoolConfig& value) { m_identityPoolConfigsHasBeenSet = true; m_identityPoolConfigs = value; } /** *

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

*/ inline void SetIdentityPoolConfigs(UpdateBackendAuthIdentityPoolConfig&& value) { m_identityPoolConfigsHasBeenSet = true; m_identityPoolConfigs = std::move(value); } /** *

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

*/ inline UpdateBackendAuthResourceConfig& WithIdentityPoolConfigs(const UpdateBackendAuthIdentityPoolConfig& value) { SetIdentityPoolConfigs(value); return *this;} /** *

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

*/ inline UpdateBackendAuthResourceConfig& WithIdentityPoolConfigs(UpdateBackendAuthIdentityPoolConfig&& value) { SetIdentityPoolConfigs(std::move(value)); return *this;} /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline const Service& GetService() const{ return m_service; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline void SetService(const Service& value) { m_serviceHasBeenSet = true; m_service = value; } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline void SetService(Service&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline UpdateBackendAuthResourceConfig& WithService(const Service& value) { SetService(value); return *this;} /** *

Defines the service name to use when configuring an authentication resource * in your Amplify project.

*/ inline UpdateBackendAuthResourceConfig& WithService(Service&& value) { SetService(std::move(value)); return *this;} /** *

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

*/ inline const UpdateBackendAuthUserPoolConfig& GetUserPoolConfigs() const{ return m_userPoolConfigs; } /** *

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

*/ inline bool UserPoolConfigsHasBeenSet() const { return m_userPoolConfigsHasBeenSet; } /** *

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

*/ inline void SetUserPoolConfigs(const UpdateBackendAuthUserPoolConfig& value) { m_userPoolConfigsHasBeenSet = true; m_userPoolConfigs = value; } /** *

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

*/ inline void SetUserPoolConfigs(UpdateBackendAuthUserPoolConfig&& value) { m_userPoolConfigsHasBeenSet = true; m_userPoolConfigs = std::move(value); } /** *

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

*/ inline UpdateBackendAuthResourceConfig& WithUserPoolConfigs(const UpdateBackendAuthUserPoolConfig& value) { SetUserPoolConfigs(value); return *this;} /** *

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

*/ inline UpdateBackendAuthResourceConfig& WithUserPoolConfigs(UpdateBackendAuthUserPoolConfig&& value) { SetUserPoolConfigs(std::move(value)); return *this;} private: AuthResources m_authResources; bool m_authResourcesHasBeenSet = false; UpdateBackendAuthIdentityPoolConfig m_identityPoolConfigs; bool m_identityPoolConfigsHasBeenSet = false; Service m_service; bool m_serviceHasBeenSet = false; UpdateBackendAuthUserPoolConfig m_userPoolConfigs; bool m_userPoolConfigsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws