Encapsulated the enums of another object inside the object.