public void setNodes(java.util.Collection<FlowNode> nodes) {
        if (nodes == null) {
            this.nodes = null;
            return;
        }

        this.nodes = new java.util.ArrayList<FlowNode>(nodes);
    }
<p>
An array of node definitions in the flow.
</p>

@param nodes
       An array of node definitions in the flow.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/FlowDefinition.java