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