AMBARI-4376 - Convert Resource.Type enum to class