asX12

Casts this TemplateDetails as a X12 and retrieves its aws.sdk.kotlin.services.b2bi.model.X12Details value. Throws an exception if the TemplateDetails is not a X12.