I have a mac book air. It keeps shutting off.. even after 2 minutes of turning the computer on..

The power chord becomes very warm too. then the fan will go off internally within the computer.. any suggestions.? I think it will need to be serviced..