Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / RelatedTo.java
1 package org.onap.vid.aai.model;
2
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonInclude;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6
7 @JsonIgnoreProperties(ignoreUnknown = true)
8 @JsonInclude(JsonInclude.Include.NON_NULL)
9 public class RelatedTo {
10     private final String id;
11     private final String relationshipLabel;
12     private final String nodeType;
13     private final String url;
14
15     public RelatedTo(
16             @JsonProperty("id") String id,
17             @JsonProperty("relationship-label") String relationshipLabel,
18             @JsonProperty("node-type") String nodeType,
19             @JsonProperty("url") String url) {
20         this.id = id;
21         this.relationshipLabel = relationshipLabel;
22         this.nodeType = nodeType;
23         this.url = url;
24     }
25     @JsonProperty("id")
26     public String getId() {
27         return id;
28     }
29     @JsonProperty("relationship-label")
30     public String getRelationshipLabel() {
31         return relationshipLabel;
32     }
33     @JsonProperty("node-type")
34     public String getNodeType() {
35         return nodeType;
36     }
37     @JsonProperty("url")
38     public String getUrl() {
39         return url;
40     }
41 }