asPrimitiveMessageDefinition
Casts this StructuredMessage as a PrimitiveMessageDefinition and retrieves its aws.sdk.kotlin.services.iotfleetwise.model.PrimitiveMessageDefinition value. Throws an exception if the StructuredMessage is not a PrimitiveMessageDefinition.