asData

Casts this MessageData as a Data and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the MessageData is not a Data.