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

(DEPRECATED) Describes the forgot password policy for authenticating * into the Amplify app.

See Also:

AWS * API Reference

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

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline const DeliveryMethod& GetDeliveryMethod() const{ return m_deliveryMethod; } /** *

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline bool DeliveryMethodHasBeenSet() const { return m_deliveryMethodHasBeenSet; } /** *

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline void SetDeliveryMethod(const DeliveryMethod& value) { m_deliveryMethodHasBeenSet = true; m_deliveryMethod = value; } /** *

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline void SetDeliveryMethod(DeliveryMethod&& value) { m_deliveryMethodHasBeenSet = true; m_deliveryMethod = std::move(value); } /** *

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithDeliveryMethod(const DeliveryMethod& value) { SetDeliveryMethod(value); return *this;} /** *

(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users that want to recover their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithDeliveryMethod(DeliveryMethod&& value) { SetDeliveryMethod(std::move(value)); return *this;} /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline const EmailSettings& GetEmailSettings() const{ return m_emailSettings; } /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline bool EmailSettingsHasBeenSet() const { return m_emailSettingsHasBeenSet; } /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline void SetEmailSettings(const EmailSettings& value) { m_emailSettingsHasBeenSet = true; m_emailSettings = value; } /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline void SetEmailSettings(EmailSettings&& value) { m_emailSettingsHasBeenSet = true; m_emailSettings = std::move(value); } /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithEmailSettings(const EmailSettings& value) { SetEmailSettings(value); return *this;} /** *

(DEPRECATED) The configuration for the email sent when an app user * forgets their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithEmailSettings(EmailSettings&& value) { SetEmailSettings(std::move(value)); return *this;} /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline const SmsSettings& GetSmsSettings() const{ return m_smsSettings; } /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline bool SmsSettingsHasBeenSet() const { return m_smsSettingsHasBeenSet; } /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline void SetSmsSettings(const SmsSettings& value) { m_smsSettingsHasBeenSet = true; m_smsSettings = value; } /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline void SetSmsSettings(SmsSettings&& value) { m_smsSettingsHasBeenSet = true; m_smsSettings = std::move(value); } /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithSmsSettings(const SmsSettings& value) { SetSmsSettings(value); return *this;} /** *

(DEPRECATED) The configuration for the SMS message sent when an * Amplify app user forgets their password.

*/ inline UpdateBackendAuthForgotPasswordConfig& WithSmsSettings(SmsSettings&& value) { SetSmsSettings(std::move(value)); return *this;} private: DeliveryMethod m_deliveryMethod; bool m_deliveryMethodHasBeenSet = false; EmailSettings m_emailSettings; bool m_emailSettingsHasBeenSet = false; SmsSettings m_smsSettings; bool m_smsSettingsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws