asTextEvent

Casts this ChatOutputStream as a TextEvent and retrieves its aws.sdk.kotlin.services.qbusiness.model.TextOutputEvent value. Throws an exception if the ChatOutputStream is not a TextEvent.