f14a445fe831e8dee830ecdfc3eafc2b72be0ea7
[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 org.codehaus.jackson.annotate.JsonIgnoreProperties;
4 import org.codehaus.jackson.annotate.JsonProperty;
5
6 @JsonIgnoreProperties(ignoreUnknown = true)
7 public class RelatedTo {
8     private final String id;
9     private final String relationshipLabel;
10     private final String nodeType;
11     private final String url;
12
13     public RelatedTo(
14             @JsonProperty("id") String id,
15             @JsonProperty("relationship-label") String relationshipLabel,
16             @JsonProperty("node-type") String nodeType,
17             @JsonProperty("url") String url) {
18         this.id = id;
19         this.relationshipLabel = relationshipLabel;
20         this.nodeType = nodeType;
21         this.url = url;
22     }
23
24     public String getId() {
25         return id;
26     }
27
28     public String getRelationshipLabel() {
29         return relationshipLabel;
30     }
31
32     public String getNodeType() {
33         return nodeType;
34     }
35
36     public String getUrl() {
37         return url;
38     }
39 }