Aharoni, Pavel (pa0916) | ca3cb01 | 2018-10-22 15:29:57 +0300 | [diff] [blame] | 1 | /*-
|
| 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 |
|
| 23 | package org.onap.osam.aai.model;
|
| 24 |
|
| 25 |
|
| 26 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
| 27 | import com.fasterxml.jackson.annotation.JsonAnySetter;
|
| 28 | import com.fasterxml.jackson.annotation.JsonIgnore;
|
| 29 | import com.fasterxml.jackson.annotation.JsonProperty;
|
| 30 |
|
| 31 | import java.util.HashMap;
|
| 32 | import java.util.List;
|
| 33 | import java.util.Map;
|
| 34 |
|
| 35 | public class SimpleResult {
|
| 36 | @JsonProperty("id")
|
| 37 | private String id;
|
| 38 | @JsonProperty("node-type")
|
| 39 | private String nodeType;
|
| 40 | @JsonProperty("url")
|
| 41 | private String url;
|
| 42 | @JsonProperty("properties")
|
| 43 | private Properties properties;
|
| 44 | @JsonProperty("related-to")
|
| 45 | private List<RelatedTo> relatedTo = null;
|
| 46 | @JsonIgnore
|
| 47 | private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
| 48 |
|
| 49 | @JsonProperty("id")
|
| 50 | public String getId() {
|
| 51 | return id;
|
| 52 | }
|
| 53 |
|
| 54 | @JsonProperty("id")
|
| 55 | public void setId(String id) {
|
| 56 | this.id = id;
|
| 57 | }
|
| 58 |
|
| 59 | @JsonProperty("node-type")
|
| 60 | public String getNodeType() {
|
| 61 | return nodeType;
|
| 62 | }
|
| 63 |
|
| 64 | @JsonProperty("node-type")
|
| 65 | public void setNodeType(String nodeType) {
|
| 66 | this.nodeType = nodeType;
|
| 67 | }
|
| 68 |
|
| 69 | @JsonProperty("url")
|
| 70 | public String getUrl() {
|
| 71 | return url;
|
| 72 | }
|
| 73 |
|
| 74 | @JsonProperty("url")
|
| 75 | public void setUrl(String url) {
|
| 76 | this.url = url;
|
| 77 | }
|
| 78 |
|
| 79 | @JsonProperty("properties")
|
| 80 | public Properties getProperties() {
|
| 81 | return properties;
|
| 82 | }
|
| 83 |
|
| 84 | @JsonProperty("properties")
|
| 85 | public void setProperties(Properties properties) {
|
| 86 | this.properties = properties;
|
| 87 | }
|
| 88 |
|
| 89 | @JsonProperty("related-to")
|
| 90 | public List<RelatedTo> getRelatedTo() {
|
| 91 | return relatedTo;
|
| 92 | }
|
| 93 |
|
| 94 | @JsonProperty("related-to")
|
| 95 | public void setRelatedTo(List<RelatedTo> relatedTo) {
|
| 96 | this.relatedTo = relatedTo;
|
| 97 | }
|
| 98 |
|
| 99 | @JsonAnyGetter
|
| 100 | public Map<String, Object> getAdditionalProperties() {
|
| 101 | return this.additionalProperties;
|
| 102 | }
|
| 103 |
|
| 104 | @JsonAnySetter
|
| 105 | public void setAdditionalProperty(String name, Object value) {
|
| 106 | this.additionalProperties.put(name, value);
|
| 107 | }
|
| 108 | }
|