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