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

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