Add the edges endpoint to the schema service
[aai/schema-service.git] / aai-schema-service / src / main / java / org / onap / aai / schemaservice / edges / EdgeRule.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.aai.schemaservice.edges;
21
22 import com.google.gson.annotations.SerializedName;
23
24 public class EdgeRule {
25
26     private String from;
27     private String to;
28     private String label;
29
30     private String direction;
31     private String multiplicity;
32     private String description;
33
34     @SerializedName("contains-other-v")
35     private String containsOtherV;
36
37     @Override
38     public String toString() {
39         return "EdgeRule{" +
40             "from='" + from + '\'' +
41             ", to='" + to + '\'' +
42             ", label='" + label + '\'' +
43             ", direction='" + direction + '\'' +
44             ", multiplicity='" + multiplicity + '\'' +
45             ", description='" + description + '\'' +
46             ", containsOtherV='" + containsOtherV + '\'' +
47             ", deleteOtherV='" + deleteOtherV + '\'' +
48             ", preventDelete='" + preventDelete + '\'' +
49             ", privateEdge=" + privateEdge +
50             ", isDefaultEdge=" + defaultEdge +
51             '}';
52     }
53
54     @SerializedName("delete-other-v")
55     private String deleteOtherV;
56     @SerializedName("prevent-delete")
57     private String preventDelete;
58
59     @SerializedName("private")
60     private String privateEdge;
61
62     @SerializedName("default")
63     private String defaultEdge;
64
65     public String getFrom() {
66         return from;
67     }
68
69     public void setFrom(String from) {
70         this.from = from;
71     }
72
73     public String getTo() {
74         return to;
75     }
76
77     public void setTo(String to) {
78         this.to = to;
79     }
80
81     public String getLabel() {
82         return label;
83     }
84
85     public void setLabel(String label) {
86         this.label = label;
87     }
88
89     public String getDirection() {
90         return direction;
91     }
92
93     public void setDirection(String direction) {
94         this.direction = direction;
95     }
96
97     public String getMultiplicity() {
98         return multiplicity;
99     }
100
101     public void setMultiplicity(String multiplicity) {
102         this.multiplicity = multiplicity;
103     }
104
105     public String getDescription() {
106         return description;
107     }
108
109     public void setDescription(String description) {
110         this.description = description;
111     }
112
113     public String getContainsOtherV() {
114         return containsOtherV;
115     }
116
117     public void setContainsOtherV(String containsOtherV) {
118         this.containsOtherV = containsOtherV;
119     }
120
121     public String getDeleteOtherV() {
122         return deleteOtherV;
123     }
124
125     public void setDeleteOtherV(String deleteOtherV) {
126         this.deleteOtherV = deleteOtherV;
127     }
128
129     public String getPreventDelete() {
130         return preventDelete;
131     }
132
133     public void setPreventDelete(String preventDelete) {
134         this.preventDelete = preventDelete;
135     }
136
137     public String getPrivateEdge() {
138         return privateEdge;
139     }
140
141     public void setPrivateEdge(String privateEdge) {
142         this.privateEdge = privateEdge;
143     }
144
145     public String getDefaultEdge() {
146         return defaultEdge;
147     }
148
149     public void setDefaultEdge(String defaultEdge) {
150         this.defaultEdge = defaultEdge;
151     }
152
153 }