asTextMessage

Casts this RcsContent as a TextMessage and retrieves its aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RcsTextMessage value. Throws an exception if the RcsContent is not a TextMessage.