public static ZoneId of (String zoneId)

Obtains an instance of ZoneId from an ID ensuring that the ID is valid and available for use.

This method parses the ID producing a ZoneId or ZoneOffset. A ZoneOffset is returned if the ID is 'Z', or starts with '+' or '-'. The result will always be a valid ID for which ZoneRules can be obtained.

Parsing matches the zone ID step by step as follows.

Parameters:
zoneId    the time-zone ID, not null

Returns:  the zone ID, not null

Exceptions:
DateTimeException    if the zone ID has an invalid format
ZoneRulesException    if the zone ID is a region ID that cannot be found