public CreateFlowResult withDefinition(FlowDefinition definition) {
        setDefinition(definition);
        return this;
    }
<p>
A definition of the nodes and connections between nodes in the flow.
</p>

@param definition
       A definition of the nodes and connections between nodes 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/CreateFlowResult.java