Convert Sparky to Spring-Boot
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / viewandinspect / entity / GizmoRelationshipEntity.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25 package org.onap.aai.sparky.viewandinspect.entity;
26
27 import java.util.Map;
28
29 public class GizmoRelationshipEntity {
30
31         /*
32          * {"id":"oe4ur-3a0-27th-fu8","type":"has","url":
33          * "services/inventory/relationships/v8/has/oe4ur-3a0-27th-fu8","source":
34          * "services/inventory/v8/generic-vnf/4248","target":
35          * "services/inventory/v8/vserver/20528",
36          * "properties":{"is-parent":"true","multiplicity":"many","has-del-target":
37          * "true","uses-resource": "true"}}
38          */
39
40         private String id;
41         private String type;
42         private String url;
43         private String source;
44         private String target;
45         private Map<String, String> properties;
46
47         public String getId() {
48                 return id;
49         }
50
51         public void setId(String id) {
52                 this.id = id;
53         }
54
55         public String getType() {
56                 return type;
57         }
58
59         public void setType(String type) {
60                 this.type = type;
61         }
62
63         public String getUrl() {
64                 return url;
65         }
66
67         public void setUrl(String url) {
68                 this.url = url;
69         }
70
71         public String getSource() {
72                 return source;
73         }
74
75         public void setSource(String source) {
76                 this.source = source;
77         }
78
79         public String getTarget() {
80                 return target;
81         }
82
83         public void setTarget(String target) {
84                 this.target = target;
85         }
86
87         public Map<String, String> getProperties() {
88                 return properties;
89         }
90
91         public void setProperties(Map<String, String> properties) {
92                 this.properties = properties;
93         }
94
95         @Override
96         public String toString() {
97                 return "GizmoRelationshipEntity [" + (id != null ? "id=" + id + ", " : "")
98                                 + (type != null ? "type=" + type + ", " : "") + (url != null ? "url=" + url + ", " : "")
99                                 + (source != null ? "source=" + source + ", " : "") + (target != null ? "target=" + target + ", " : "")
100                                 + (properties != null ? "properties=" + properties : "") + "]";
101         }
102
103 }