forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIsolation.java
More file actions
41 lines (30 loc) · 810 Bytes
/
Copy pathIsolation.java
File metadata and controls
41 lines (30 loc) · 810 Bytes
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
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
public enum Isolation implements Serializable {
DEFAULT("default"),
PROCESS("process"),
HYPERV("hyperv");
private String value;
Isolation(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@JsonCreator
public static Isolation fromValue(String text) {
for (Isolation b : Isolation.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
@Override
public String toString() {
return String.valueOf(value);
}
}