public RetrieveRequest withRetrievalQuery(KnowledgeBaseQuery retrievalQuery) {
        setRetrievalQuery(retrievalQuery);
        return this;
    }
<p>
Contains the query to send the knowledge base.
</p>

@param retrievalQuery
       Contains the query to send the knowledge base.
@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/RetrieveRequest.java