-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathVaultConfig.java
More file actions
58 lines (46 loc) · 1.27 KB
/
VaultConfig.java
File metadata and controls
58 lines (46 loc) · 1.27 KB
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
package com.skyflow.config;
import com.skyflow.enums.Env;
public class VaultConfig implements Cloneable {
private String vaultId;
private String clusterId;
private Env env;
private Credentials credentials;
public VaultConfig() {
this.vaultId = null;
this.clusterId = null;
this.env = Env.PROD;
this.credentials = null;
}
public String getVaultId() {
return vaultId;
}
public void setVaultId(String vaultId) {
this.vaultId = vaultId;
}
public String getClusterId() {
return clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
}
public Env getEnv() {
return env;
}
public void setEnv(Env env) {
this.env = env == null ? Env.PROD : env;
}
public Credentials getCredentials() {
return credentials;
}
public void setCredentials(Credentials credentials) {
this.credentials = credentials;
}
@Override
public Object clone() throws CloneNotSupportedException {
VaultConfig cloned = (VaultConfig) super.clone();
if (this.credentials != null) {
cloned.credentials = (Credentials) this.credentials.clone();
}
return cloned;
}
}