All flow elements (including connections) offer at least one property: the name of the flow element as displayed in the canvas. When you add a new flow element Switch provides it with a default name inspired by the flow element type. By default a connection does not contain a name.
You can edit the Name property in the Properties pane, just like other properties. However you can also edit the flow element name directly on the canvas as shown here:
To edit the name of a flow element directly on the canvas, perform the following steps: