Adding interfaces in documentation
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / viewandinspect / entity / Relationship.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 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
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
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=========================================================
20  */
21 package org.onap.aai.sparky.viewandinspect.entity;
22
23 import java.util.Arrays;
24
25 import com.fasterxml.jackson.annotation.JsonProperty;
26
27 /**
28  * The Class Relationship.
29  */
30 public class Relationship {
31
32   protected String relatedTo;
33   protected String relationshipLabel;
34   protected String relatedLink;
35   protected RelationshipData[] relationshipData;
36   protected RelatedToProperty[] relatedToProperty;
37
38   public String getRelatedTo() {
39     return relatedTo;
40   }
41
42   @JsonProperty("related-to")
43   public void setRelatedTo(String relatedTo) {
44     this.relatedTo = relatedTo;
45   }
46
47   public String getRelationshipLabel() {
48     return relationshipLabel;
49   }
50
51   @JsonProperty("relationship-label")
52   public void setRelationshipLabel(String relationshipLabel) {
53     this.relationshipLabel = relationshipLabel;
54   }
55   
56   public String getRelatedLink() {
57     return relatedLink;
58   }
59
60   @JsonProperty("related-link")
61   public void setRelatedLink(String relatedLink) {
62     this.relatedLink = relatedLink;
63   }
64
65   public RelationshipData[] getRelationshipData() {
66     return relationshipData;
67   }
68
69   @JsonProperty("relationship-data")
70   public void setRelationshipData(RelationshipData[] relationshipData) {
71     this.relationshipData = relationshipData;
72   }
73
74   public RelatedToProperty[] getRelatedToProperty() {
75     return relatedToProperty;
76   }
77
78   @JsonProperty("related-to-property")
79   public void setRelatedToProperty(RelatedToProperty[] relatedToProperty) {
80     this.relatedToProperty = relatedToProperty;
81   }
82
83   /* (non-Javadoc)
84    * @see java.lang.Object#toString()
85    */
86   @Override
87   public String toString() {
88     return "Relationship [relatedTo=" + relatedTo + ", relationshipLabel=" + relationshipLabel
89         + ", relatedLink=" + relatedLink + ", relationshipData=" + Arrays.toString(relationshipData)
90         + ", relatedToProperty=" + Arrays.toString(relatedToProperty) + "]";
91   }
92 }