All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.saucelabs.saucebindings.JobVisibility Maven / Gradle / Ivy

The newest version!
package com.saucelabs.saucebindings;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import lombok.Getter;

public enum JobVisibility {
  PUBLIC("public"),
  PUBLIC_RESTRICTED("public restricted"),
  SHARE("share"),
  TEAM("team"),
  PRIVATE("private");

  @Getter private final String value;

  private static final class JobVisibilityLookup {
    private static final Map lookup = new HashMap();
  }

  public static Set keys() {
    return JobVisibilityLookup.lookup.keySet();
  }

  JobVisibility(String value) {
    this.value = value;
    JobVisibilityLookup.lookup.put(value, this.name());
  }

  public static String fromString(String value) {
    return JobVisibilityLookup.lookup.get(value);
  }

  public String toString() {
    return this.value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy