asText
Casts this SpanMessageValue as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanTextValue value. Throws an exception if the SpanMessageValue is not a Text.
Casts this SpanMessageValue as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanTextValue value. Throws an exception if the SpanMessageValue is not a Text.