asTextEvent

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