4ebaeec491bb4736b4da243d1857aadd4145517d
[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 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
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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.sparky.viewandinspect.entity;
24
25 import java.util.Arrays;
26
27 import com.fasterxml.jackson.annotation.JsonProperty;
28
29 /**
30  * The Class Relationship.
31  */
32 public class Relationship {
33
34   protected String relatedTo;
35   protected String relationshipLabel;
36   protected String relatedLink;
37   protected RelationshipData[] relationshipData;
38   protected RelatedToProperty[] relatedToProperty;
39
40   public String getRelatedTo() {
41     return relatedTo;
42   }
43
44   @JsonProperty("related-to")
45   public void setRelatedTo(String relatedTo) {
46     this.relatedTo = relatedTo;
47   }
48
49   public String getRelationshipLabel() {
50     return relationshipLabel;
51   }
52
53   @JsonProperty("relationship-label")
54   public void setRelationshipLabel(String relationshipLabel) {
55     this.relationshipLabel = relationshipLabel;
56   }
57   
58   public String getRelatedLink() {
59     return relatedLink;
60   }
61
62   @JsonProperty("related-link")
63   public void setRelatedLink(String relatedLink) {
64     this.relatedLink = relatedLink;
65   }
66
67   public RelationshipData[] getRelationshipData() {
68     return relationshipData;
69   }
70
71   @JsonProperty("relationship-data")
72   public void setRelationshipData(RelationshipData[] relationshipData) {
73     this.relationshipData = relationshipData;
74   }
75
76   public RelatedToProperty[] getRelatedToProperty() {
77     return relatedToProperty;
78   }
79
80   @JsonProperty("related-to-property")
81   public void setRelatedToProperty(RelatedToProperty[] relatedToProperty) {
82     this.relatedToProperty = relatedToProperty;
83   }
84
85   /* (non-Javadoc)
86    * @see java.lang.Object#toString()
87    */
88   @Override
89   public String toString() {
90     return "Relationship [relatedTo=" + relatedTo + ", relationshipLabel=" + relationshipLabel
91         + ", relatedLink=" + relatedLink + ", relationshipData=" + Arrays.toString(relationshipData)
92         + ", relatedToProperty=" + Arrays.toString(relatedToProperty) + "]";
93   }
94 }