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

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

The newest version!
package com.saucelabs.saucebindings;

import lombok.Getter;

@Getter
public enum DataCenter {
  US_WEST("us-west-1"),
  US_EAST("us-east-4"),
  EU_CENTRAL("eu-central-1");

  private final String value;
  private final String endpoint;
  private final String testLink;

  @Deprecated
  public String getValue() {
    return this.endpoint;
  }

  DataCenter(String value) {
    this.value = value;
    this.endpoint = "https://ondemand." + value + ".saucelabs.com/wd/hub";
    if ("us-west-1".equals(value)) {
      this.testLink = "https://app.saucelabs.com/tests/";
    } else {
      this.testLink = "https://app." + value + ".saucelabs.com/tests/";
    }
  }

  public String toString() {
    return value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy