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

Describes the Amazon Cognito user pool configuration for the authorization * resource to be configured for your Amplify project on an update.

See * Also:

AWS * API Reference

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

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline const UpdateBackendAuthForgotPasswordConfig& GetForgotPassword() const{ return m_forgotPassword; } /** *

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline bool ForgotPasswordHasBeenSet() const { return m_forgotPasswordHasBeenSet; } /** *

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline void SetForgotPassword(const UpdateBackendAuthForgotPasswordConfig& value) { m_forgotPasswordHasBeenSet = true; m_forgotPassword = value; } /** *

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline void SetForgotPassword(UpdateBackendAuthForgotPasswordConfig&& value) { m_forgotPasswordHasBeenSet = true; m_forgotPassword = std::move(value); } /** *

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithForgotPassword(const UpdateBackendAuthForgotPasswordConfig& value) { SetForgotPassword(value); return *this;} /** *

(DEPRECATED) Describes the forgot password policy for your Amazon * Cognito user pool, configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithForgotPassword(UpdateBackendAuthForgotPasswordConfig&& value) { SetForgotPassword(std::move(value)); return *this;} /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline const UpdateBackendAuthMFAConfig& GetMfa() const{ return m_mfa; } /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline bool MfaHasBeenSet() const { return m_mfaHasBeenSet; } /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline void SetMfa(const UpdateBackendAuthMFAConfig& value) { m_mfaHasBeenSet = true; m_mfa = value; } /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline void SetMfa(UpdateBackendAuthMFAConfig&& value) { m_mfaHasBeenSet = true; m_mfa = std::move(value); } /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithMfa(const UpdateBackendAuthMFAConfig& value) { SetMfa(value); return *this;} /** *

Describes whether to apply multi-factor authentication policies for your * Amazon Cognito user pool configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithMfa(UpdateBackendAuthMFAConfig&& value) { SetMfa(std::move(value)); return *this;} /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline const UpdateBackendAuthOAuthConfig& GetOAuth() const{ return m_oAuth; } /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline bool OAuthHasBeenSet() const { return m_oAuthHasBeenSet; } /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline void SetOAuth(const UpdateBackendAuthOAuthConfig& value) { m_oAuthHasBeenSet = true; m_oAuth = value; } /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline void SetOAuth(UpdateBackendAuthOAuthConfig&& value) { m_oAuthHasBeenSet = true; m_oAuth = std::move(value); } /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithOAuth(const UpdateBackendAuthOAuthConfig& value) { SetOAuth(value); return *this;} /** *

Describes the OAuth policy and rules for your Amazon Cognito user pool, * configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithOAuth(UpdateBackendAuthOAuthConfig&& value) { SetOAuth(std::move(value)); return *this;} /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline const UpdateBackendAuthPasswordPolicyConfig& GetPasswordPolicy() const{ return m_passwordPolicy; } /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline bool PasswordPolicyHasBeenSet() const { return m_passwordPolicyHasBeenSet; } /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline void SetPasswordPolicy(const UpdateBackendAuthPasswordPolicyConfig& value) { m_passwordPolicyHasBeenSet = true; m_passwordPolicy = value; } /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline void SetPasswordPolicy(UpdateBackendAuthPasswordPolicyConfig&& value) { m_passwordPolicyHasBeenSet = true; m_passwordPolicy = std::move(value); } /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithPasswordPolicy(const UpdateBackendAuthPasswordPolicyConfig& value) { SetPasswordPolicy(value); return *this;} /** *

Describes the password policy for your Amazon Cognito user pool, configured * as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithPasswordPolicy(UpdateBackendAuthPasswordPolicyConfig&& value) { SetPasswordPolicy(std::move(value)); return *this;} /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline const UpdateBackendAuthVerificationMessageConfig& GetVerificationMessage() const{ return m_verificationMessage; } /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline bool VerificationMessageHasBeenSet() const { return m_verificationMessageHasBeenSet; } /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline void SetVerificationMessage(const UpdateBackendAuthVerificationMessageConfig& value) { m_verificationMessageHasBeenSet = true; m_verificationMessage = value; } /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline void SetVerificationMessage(UpdateBackendAuthVerificationMessageConfig&& value) { m_verificationMessageHasBeenSet = true; m_verificationMessage = std::move(value); } /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithVerificationMessage(const UpdateBackendAuthVerificationMessageConfig& value) { SetVerificationMessage(value); return *this;} /** *

Describes the email or SMS verification message for your Amazon Cognito user * pool, configured as a part of your Amplify project.

*/ inline UpdateBackendAuthUserPoolConfig& WithVerificationMessage(UpdateBackendAuthVerificationMessageConfig&& value) { SetVerificationMessage(std::move(value)); return *this;} private: UpdateBackendAuthForgotPasswordConfig m_forgotPassword; bool m_forgotPasswordHasBeenSet = false; UpdateBackendAuthMFAConfig m_mfa; bool m_mfaHasBeenSet = false; UpdateBackendAuthOAuthConfig m_oAuth; bool m_oAuthHasBeenSet = false; UpdateBackendAuthPasswordPolicyConfig m_passwordPolicy; bool m_passwordPolicyHasBeenSet = false; UpdateBackendAuthVerificationMessageConfig m_verificationMessage; bool m_verificationMessageHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws