Set the type to permanent which will give an HTTP 301 status code.
Choose your main domain in this drop down.
Leave the path empty, you want to redirect the entire domain.
Specify the URL to redirect to with the “www” part in it.
Choose “Do Not Redirect www“.