blob: 21fb8b826c11a9f0d8650a60f4e328c84aa3c9b9 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
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
22
23package org.onap.osam;
24
25import com.fasterxml.jackson.annotation.*;
26import java.util.HashMap;
27import java.util.Map;
28
29@JsonInclude(JsonInclude.Include.NON_NULL)
30@JsonPropertyOrder({
31 "id",
32 "node-type",
33 "relationship-label",
34 "url"
35})
36public class RelatedTo {
37
38 @JsonProperty("id")
39 public String id;
40 @JsonProperty("node-type")
41 public String nodeType;
42 @JsonProperty("relationship-label")
43 public String relationshipLabel;
44 @JsonProperty("url")
45 public String url;
46 @JsonIgnore
47 private Map<String, Object> additionalProperties = new HashMap<>();
48
49 @JsonAnyGetter
50 public Map<String, Object> getAdditionalProperties() {
51 return this.additionalProperties;
52 }
53
54 @JsonAnySetter
55 public void setAdditionalProperty(String name, Object value) {
56 this.additionalProperties.put(name, value);
57 }
58
59}