com.saucelabs.saucebindings.DataCenter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sauce_bindings Show documentation
Show all versions of sauce_bindings Show documentation
Java library which provides tools for interacting with Sauce Labs
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;
}
}