public RetrieveAndGenerateRequest withInput(RetrieveAndGenerateInput input) {
        setInput(input);
        return this;
    }
<p>
Contains the query to be made to the knowledge base.
</p>

@param input
       Contains the query to be made to 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/RetrieveAndGenerateRequest.java