In a coffee machine, coffee beans are ground. The grind (fineness of the ground coffee) largely determines the final result of your coffee. It should be noted here that not every bean reacts the same way. So this means that when using different coffee beans, you might need a different grind.
Of course, the amount of coffee you use per cup also affects your cup of coffee. The amount is determined in part by the recipe you choose such as espresso, cappuccino, but of course the cup size is also influential.