/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include (DEPRECATED) Describes the forgot password policy for authenticating
* into the Amplify app.See Also:
AWS
* API Reference
(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users who 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 who 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 who 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 who 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 who want to recover their password.
*/ inline CreateBackendAuthForgotPasswordConfig& WithDeliveryMethod(const DeliveryMethod& value) { SetDeliveryMethod(value); return *this;} /** *(DEPRECATED) Describes which mode to use (either SMS or email) to * deliver messages to app users who want to recover their password.
*/ inline CreateBackendAuthForgotPasswordConfig& 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 CreateBackendAuthForgotPasswordConfig& WithEmailSettings(const EmailSettings& value) { SetEmailSettings(value); return *this;} /** *(DEPRECATED) The configuration for the email sent when an app user * forgets their password.
*/ inline CreateBackendAuthForgotPasswordConfig& WithEmailSettings(EmailSettings&& value) { SetEmailSettings(std::move(value)); return *this;} /** *(DEPRECATED) The configuration for the SMS message sent when an app * user forgets their password.
*/ inline const SmsSettings& GetSmsSettings() const{ return m_smsSettings; } /** *(DEPRECATED) The configuration for the SMS message sent when an app * user forgets their password.
*/ inline bool SmsSettingsHasBeenSet() const { return m_smsSettingsHasBeenSet; } /** *(DEPRECATED) The configuration for the SMS message sent when an 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 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 app * user forgets their password.
*/ inline CreateBackendAuthForgotPasswordConfig& WithSmsSettings(const SmsSettings& value) { SetSmsSettings(value); return *this;} /** *(DEPRECATED) The configuration for the SMS message sent when an app * user forgets their password.
*/ inline CreateBackendAuthForgotPasswordConfig& 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