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