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 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
| 26 | import com.fasterxml.jackson.annotation.JsonAnySetter;
|
| 27 | import com.fasterxml.jackson.annotation.JsonIgnore;
|
| 28 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
| 29 | import com.fasterxml.jackson.annotation.JsonInclude;
|
| 30 | import com.fasterxml.jackson.annotation.JsonProperty;
|
| 31 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
| 32 |
|
| 33 | import java.util.HashMap;
|
| 34 | import java.util.Map;
|
| 35 |
|
| 36 | @JsonInclude(JsonInclude.Include.NON_NULL)
|
| 37 | @JsonIgnoreProperties(ignoreUnknown = true)
|
| 38 | @JsonPropertyOrder({
|
| 39 | "pnf-name",
|
| 40 | "equip-type",
|
| 41 | "equip-vendor",
|
| 42 | "equip-model",
|
| 43 | "in-maint",
|
| 44 | "resource-version"
|
| 45 | })
|
| 46 | public class PnfProperties {
|
| 47 |
|
| 48 | @JsonProperty("pnf-name")
|
| 49 | public String pnfName;
|
| 50 | @JsonProperty("equip-type")
|
| 51 | public String equipType;
|
| 52 | @JsonProperty("equip-vendor")
|
| 53 | public String equipVendor;
|
| 54 | @JsonProperty("equip-model")
|
| 55 | public String equipModel;
|
| 56 | @JsonProperty("in-maint")
|
| 57 | public Boolean inMaint;
|
| 58 | @JsonProperty("resource-version")
|
| 59 | public String resourceVersion;
|
| 60 | @JsonIgnore
|
| 61 | private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
| 62 |
|
| 63 | @JsonAnyGetter
|
| 64 | public Map<String, Object> getAdditionalProperties() {
|
| 65 | return this.additionalProperties;
|
| 66 | }
|
| 67 |
|
| 68 | @JsonAnySetter
|
| 69 | public void setAdditionalProperty(String name, Object value) {
|
| 70 | this.additionalProperties.put(name, value);
|
| 71 | }
|
| 72 |
|
| 73 | }
|