2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.aai.model;
23 import com.fasterxml.jackson.annotation.JsonAlias;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 import java.util.List;
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class Relationship {
33 public String relatedTo;
35 public String relatedLink;
37 public String relationshipLabel;
39 public List<RelationshipData> relationshipData;
41 public List<RelatedToProperty> relatedToProperty;
44 public String getRelatedTo() {
48 @JsonAlias("related-to")
49 public void setRelatedTo(String relatedTo) {
50 this.relatedTo = relatedTo;
53 public String getRelatedLink() {
57 @JsonAlias("related-link")
58 public void setRelatedLink(String relatedLink) {
59 this.relatedLink = relatedLink;
62 public List<RelationshipData> getRelationDataList() {
63 return relationshipData;
66 @JsonAlias("relationship-data")
67 public void setRelationDataList(List<RelationshipData> relationDataList) {
68 this.relationshipData = relationDataList;
71 public List<RelatedToProperty> getRelatedToPropertyList() {
72 return relatedToProperty;
75 @JsonAlias("related-to-property")
76 public void setRelatedToPropertyList(List<RelatedToProperty> relatedToPropertyList) {
77 this.relatedToProperty = relatedToPropertyList;
80 public String getRelationshipLabel() {
81 return relationshipLabel;
84 @JsonAlias("relationship-label")
85 public void setRelationshipLabel(String relationshipLabel) {
86 this.relationshipLabel = relationshipLabel;