Fix for Penetration test _ Session and cookie management
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / Relationship.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.aai.model;
22
23 import com.fasterxml.jackson.annotation.JsonAlias;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25
26 import java.util.List;
27
28
29
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class Relationship {
32
33         public String relatedTo;
34         
35         public String relatedLink;
36
37         public String relationshipLabel;
38         
39         public List<RelationshipData> relationshipData;
40         
41         public List<RelatedToProperty> relatedToProperty;
42
43         
44         public String getRelatedTo() {
45                 return relatedTo;
46         }
47
48     @JsonAlias("related-to")
49         public void setRelatedTo(String relatedTo) {
50                 this.relatedTo = relatedTo;
51         }
52
53         public String getRelatedLink() {
54                 return relatedLink;
55         }
56
57     @JsonAlias("related-link")
58         public void setRelatedLink(String relatedLink) {
59                 this.relatedLink = relatedLink;
60         }
61
62         public List<RelationshipData> getRelationDataList() {
63                 return relationshipData;
64         }
65
66     @JsonAlias("relationship-data")
67         public void setRelationDataList(List<RelationshipData> relationDataList) {
68                 this.relationshipData = relationDataList;
69         }
70
71         public List<RelatedToProperty> getRelatedToPropertyList() {
72                 return relatedToProperty;
73         }
74
75     @JsonAlias("related-to-property")
76         public void setRelatedToPropertyList(List<RelatedToProperty> relatedToPropertyList) {
77                 this.relatedToProperty = relatedToPropertyList;
78         }
79
80         public String getRelationshipLabel() {
81                 return relationshipLabel;
82         }
83
84     @JsonAlias("relationship-label")
85         public void setRelationshipLabel(String relationshipLabel) {
86                 this.relationshipLabel = relationshipLabel;
87         }
88 }