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