asRetrieveAndGenerateConfigOrNull
Casts this KnowledgeBaseConfig as a RetrieveAndGenerateConfig and retrieves its aws.sdk.kotlin.services.bedrock.model.RetrieveAndGenerateConfiguration value. Returns null if the KnowledgeBaseConfig is not a RetrieveAndGenerateConfig.