public FlowNode withType(FlowNodeType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of node. This value must match the name of the key that you provide in the configuration you provide in
the <code>FlowNodeConfiguration</code> field.
</p>

@param type
       The type of node. This value must match the name of the key that you provide in the configuration you
       provide in the <code>FlowNodeConfiguration</code> field.
@return Returns a reference to this object so that method calls can be chained together.
@see FlowNodeType
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/FlowNode.java