> +import java.util.Map;
> +
> +import com.google.common.collect.ImmutableMap;
> +
> +public enum JobStatus {
> +   SUCCEEDED("Succeeded"),
> +   FAILED("Failed"),
> +   IN_PROGRESS("InProgress");
> +
> +   private final String value;
> +
> +   private static final Map<String, JobStatus> stringToEnum = 
> ImmutableMap.of("Succeeded", SUCCEEDED,
> +         "Failed", FAILED, "InProgress", IN_PROGRESS);
> +
> +   public static JobStatus fromString(String symbol) {
> +      return stringToEnum.get(symbol);

Sorry again, you also might be able to use `JobStatus.valueOf(String)`.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/38/files#r14964557

Reply via email to