public void setPasswords(java.util.Collection<String> passwords) {
        if (passwords == null) {
            this.passwords = null;
            return;
        }

        this.passwords = new com.amazonaws.internal.SdkInternalList<String>(passwords);
    }
<p>
The passwords belonging to the user. You are allowed up to two.
</p>

@param passwords
       The passwords belonging to the user. You are allowed up to two.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyUserRequest.java