public static CompactionState fromString(String inputValue) {
    return CompactionState.valueOf(inputValue.toUpperCase().replace(" ", "_"));
  }
These are the valid values for Compaction states.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/entities/CompactionState.java