Use the valueOf method on the ENUM class.
DemoType demoType = DemoType.valueOf("DAILY")
It'll throw an IllegalArgumentException should the string argument provided be invalid. Using your example
DemoType demoType = DemoType.valueOf("HOURLY");
The line above will throw an IllegalArgumentException because HOURLY is not part of your DemoType