public KnowledgeBaseConfiguration withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of data that the data source is converted into for the knowledge base.
</p>

@param type
       The type of data that the data source is converted into for the knowledge base.
@return Returns a reference to this object so that method calls can be chained together.
@see KnowledgeBaseType
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/KnowledgeBaseConfiguration.java