blob: c657f9b5e5d493736b944f4cdf44d5eb8ff62a13 (
plain)
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
|
package org.onap.nbi.apis.serviceorder.model.consumer;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum RequestState {
FAILED("FAILED"),
COMPLETE("COMPLETE");
private String value;
RequestState(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static RequestState fromValue(String text) {
for (RequestState b : RequestState.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
|