public FlowDefinition withConnections(java.util.Collection<FlowConnection> connections) {
        setConnections(connections);
        return this;
    }
<p>
An array of connection definitions in the flow.
</p>

@param connections
       An array of connection definitions in the flow.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/FlowDefinition.java