public FlowDefinition withNodes(java.util.Collection<FlowNode> nodes) {
        setNodes(nodes);
        return this;
    }
<p>
An array of node definitions in the flow.
</p>

@param nodes
       An array of node 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