blob: 4d6a6b09edb83c43a9df27d6ef0372cc61262bb3 [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.aai.model;
24
25import com.fasterxml.jackson.annotation.JsonAnyGetter;
26import com.fasterxml.jackson.annotation.JsonAnySetter;
27import com.fasterxml.jackson.annotation.JsonIgnore;
28import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
29import com.fasterxml.jackson.annotation.JsonInclude;
30import com.fasterxml.jackson.annotation.JsonProperty;
31import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
33import java.util.HashMap;
34import 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})
46public 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}