2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.onap.aai.sparky.viewandinspect.entity;
29 public class GizmoRelationshipEntity {
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"}}
43 private String source;
44 private String target;
45 private Map<String, String> properties;
47 public String getId() {
51 public void setId(String id) {
55 public String getType() {
59 public void setType(String type) {
63 public String getUrl() {
67 public void setUrl(String url) {
71 public String getSource() {
75 public void setSource(String source) {
79 public String getTarget() {
83 public void setTarget(String target) {
87 public Map<String, String> getProperties() {
91 public void setProperties(Map<String, String> properties) {
92 this.properties = properties;
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 : "") + "]";