Fix vulnerability report
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / StateType.java
1 /**
2  *
3  *     Copyright (c) 2017 Orange.  All rights reserved.
4  *
5  *     Licensed under the Apache License, Version 2.0 (the "License");
6  *     you may not use this file except in compliance with the License.
7  *     You may obtain a copy of the License at
8  *
9  *         http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *     Unless required by applicable law or agreed to in writing, software
12  *     distributed under the License is distributed on an "AS IS" BASIS,
13  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *     See the License for the specific language governing permissions and
15  *     limitations under the License.
16  */
17 /*
18  * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
19  * open API16.5 + applied TMF guideline 3.0
20  *
21  * OpenAPI spec version: 0.1.1_inProgress
22  * 
23  *
24  * NOTE: This class is auto generated by the swagger code generator program.
25  * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
26  *
27  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
28  * in compliance with the License. You may obtain a copy of the License at
29  *
30  * http://www.apache.org/licenses/LICENSE-2.0
31  *
32  * Unless required by applicable law or agreed to in writing, software distributed under the License
33  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
34  * or implied. See the License for the specific language governing permissions and limitations under
35  * the License.
36  */
37
38
39 package org.onap.nbi.apis.serviceorder.model;
40
41
42 import com.fasterxml.jackson.annotation.JsonCreator;
43
44 /**
45  *
46  */
47 public enum StateType {
48
49     ACKNOWLEDGED("acknowledged"),
50
51     REJECTED("rejected"),
52
53     PENDING("pending"),
54
55     HELD("held"),
56
57     INPROGRESS("inProgress"),
58
59     CANCELLED("cancelled"),
60
61     COMPLETED("completed"),
62
63     FAILED("failed"),
64
65     PARTIAL("partial");
66
67     private String value;
68
69     StateType(String value) {
70         this.value = value;
71     }
72
73     @Override
74     public String toString() {
75         return String.valueOf(value);
76     }
77
78     @JsonCreator
79     public static StateType fromValue(String text) {
80         for (StateType b : StateType.values()) {
81             if (String.valueOf(b.value).equals(text)) {
82                 return b;
83             }
84         }
85         return null;
86     }
87 }
88