A motor includes a casing having a cavity, a stator configured to be attached to an inside of the cavity, an elastic cone configured to be attached to a first end of the casing, a rigid cone configured to be attached to a second end of the casing that is opposite to the first end, a non-metallic part configured to be attached to the elastic cone and the rigid cone, and a rotor provided inside the cavity and configured to rotate inside the stator. The casing, the elastic cone, the rigid cone, and the non-metallic part form a hermetic enclosure in which the entire stator is enclosed and the hermetic enclosure is configured to hold a cooling fluid that cools the stator and also to prevent the cooling fluid to reach the rotor.