asCategoryEvent
Casts this CallAnalyticsTranscriptResultStream as a CategoryEvent and retrieves its aws.sdk.kotlin.services.transcribestreaming.model.CategoryEvent value. Throws an exception if the CallAnalyticsTranscriptResultStream is not a CategoryEvent.