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