Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
For a given index name, return the enabled stream of which it would be part.
For example, for an index 'logs.ecs.foo' if the LOGS_ECS stream type is enabled,
this will return LOGS_ECS. If LOGS_ECS were not enabled but LOGS was, then LOGS
would be returned. If neither were enabled, null would be returned.
If no enabled stream type matches, returns null.