Updating  the use of the dynamic object builder in order to give the possible enum values