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