public RetrieveAndGenerateConfiguration withKnowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration) {
        setKnowledgeBaseConfiguration(knowledgeBaseConfiguration);
        return this;
    }
<p>
Contains details about the resource being queried.
</p>

@param knowledgeBaseConfiguration
       Contains details about the resource being queried.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/RetrieveAndGenerateConfiguration.java