2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.viewandinspect.entity;
25 import java.util.Arrays;
27 import com.fasterxml.jackson.annotation.JsonProperty;
30 * The Class Relationship.
32 public class Relationship {
34 protected String relatedTo;
35 protected String relationshipLabel;
36 protected String relatedLink;
37 protected RelationshipData[] relationshipData;
38 protected RelatedToProperty[] relatedToProperty;
40 public String getRelatedTo() {
44 @JsonProperty("related-to")
45 public void setRelatedTo(String relatedTo) {
46 this.relatedTo = relatedTo;
49 public String getRelationshipLabel() {
50 return relationshipLabel;
53 @JsonProperty("relationship-label")
54 public void setRelationshipLabel(String relationshipLabel) {
55 this.relationshipLabel = relationshipLabel;
58 public String getRelatedLink() {
62 @JsonProperty("related-link")
63 public void setRelatedLink(String relatedLink) {
64 this.relatedLink = relatedLink;
67 public RelationshipData[] getRelationshipData() {
68 return relationshipData;
71 @JsonProperty("relationship-data")
72 public void setRelationshipData(RelationshipData[] relationshipData) {
73 this.relationshipData = relationshipData;
76 public RelatedToProperty[] getRelatedToProperty() {
77 return relatedToProperty;
80 @JsonProperty("related-to-property")
81 public void setRelatedToProperty(RelatedToProperty[] relatedToProperty) {
82 this.relatedToProperty = relatedToProperty;
86 * @see java.lang.Object#toString()
89 public String toString() {
90 return "Relationship [relatedTo=" + relatedTo + ", relationshipLabel=" + relationshipLabel
91 + ", relatedLink=" + relatedLink + ", relationshipData=" + Arrays.toString(relationshipData)
92 + ", relatedToProperty=" + Arrays.toString(relatedToProperty) + "]";