public AccountRecoverySettingType withRecoveryMechanisms(RecoveryOptionType... recoveryMechanisms) {
        if (this.recoveryMechanisms == null) {
            setRecoveryMechanisms(new java.util.ArrayList<RecoveryOptionType>(recoveryMechanisms.length));
        }
        for (RecoveryOptionType ele : recoveryMechanisms) {
            this.recoveryMechanisms.add(ele);
        }
        return this;
    }
<p>
The list of <code>RecoveryOptionTypes</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRecoveryMechanisms(java.util.Collection)} or {@link #withRecoveryMechanisms(java.util.Collection)} if
you want to override the existing values.
</p>

@param recoveryMechanisms
       The list of <code>RecoveryOptionTypes</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AccountRecoverySettingType.java