public <T extends Enum<T>> TypedConfigOptionBuilder<T> enumType(Class<T> enumClass) {
      return new TypedConfigOptionBuilder<>(key, enumClass);
    }
Defines that the value of the option should be of {@link Enum} type.

@param enumClass Concrete type of the expected enum.
amoro-common/src/main/java/org/apache/amoro/config/ConfigOptions.java