asHeartbeatEvent
Casts this StartConversationResponseEventStream as a HeartbeatEvent and retrieves its aws.sdk.kotlin.services.lexruntimev2.model.HeartbeatEvent value. Throws an exception if the StartConversationResponseEventStream is not a HeartbeatEvent.