-
Notifications
You must be signed in to change notification settings - Fork 188
/
DataCenter.java
63 lines (47 loc) · 1.31 KB
/
DataCenter.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.hubspot.singularity.config;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
import com.google.common.base.Optional;
import com.hubspot.singularity.SingularityClientCredentials;
public class DataCenter {
@NotNull
private String name;
@NotEmpty
private List<String> hosts;
@NotNull
private String contextPath;
// http or https
private String scheme = "http";
private Optional<SingularityClientCredentials> clientCredentials = Optional.absent();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<String> getHosts() {
return hosts;
}
public void setHosts(List<String> hosts) {
this.hosts = hosts;
}
public String getContextPath() {
return contextPath;
}
public void setContextPath(String contextPath) {
this.contextPath = contextPath;
}
public String getScheme() {
return scheme;
}
public void setScheme(String scheme) {
this.scheme = scheme;
}
public Optional<SingularityClientCredentials> getClientCredentials() {
return clientCredentials;
}
public void setClientCredentials(Optional<SingularityClientCredentials> clientCredentials) {
this.clientCredentials = clientCredentials;
}
}