public void setAccountRecoverySetting(AccountRecoverySettingType accountRecoverySetting) {
        this.accountRecoverySetting = accountRecoverySetting;
    }
<p>
The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>
. You can use this setting to define a preferred method when a user has more than one method available. With this
setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor
authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to
determine the recovery method where SMS is preferred through email.
</p>

@param accountRecoverySetting
       The available verified method a user can use to recover their password when they call
       <code>ForgotPassword</code>. You can use this setting to define a preferred method when a user has more
       than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism
       if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting,
       Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through
       email.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/CreateUserPoolRequest.java