Just set the name as you set the other properties. If the parameter comes with the name populated, just set it.

You don't know if the name is available or not (you don't know where the parameter comes from, people could use this builder method in their app to convert the CookbookDefinition to a mutable object to be able to modify it, for example).