Test many POJOs getters/setters
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / ServiceProperties.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
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 package org.onap.vid.aai.model;
22
23 import com.fasterxml.jackson.annotation.*;
24
25 import java.util.HashMap;
26 import java.util.Map;
27
28 @JsonInclude(JsonInclude.Include.NON_NULL)
29 @JsonIgnoreProperties(ignoreUnknown = true)
30 @JsonPropertyOrder({
31         "service-instance-id",
32         "service-instance-name",
33         "model-invariant-id",
34         "model-version-id",
35         "resource-version",
36         "orchestration-status",
37         "global-customer-id",
38         "subscriber-name",
39         "subscriber-type",
40         "vnf-id",
41         "vnf-name",
42         "vnf-type",
43         "service-id",
44         "prov-status",
45         "in-maint",
46         "is-closed-loop-disabled",
47         "model-customization-id",
48         "nf-type",
49         "nf-function",
50         "nf-role",
51         "nf-naming-code"
52 })
53 public class ServiceProperties {
54
55     @JsonProperty("service-instance-id")
56     public String serviceInstanceId;
57     @JsonProperty("service-instance-name")
58     public String serviceInstanceName;
59     @JsonProperty("model-invariant-id")
60     public String modelInvariantId;
61     @JsonProperty("model-version-id")
62     public String modelVersionId;
63     @JsonProperty("resource-version")
64     public String resourceVersion;
65     @JsonProperty("orchestration-status")
66     public String orchestrationStatus;
67     @JsonProperty("global-customer-id")
68     public String globalCustomerId;
69     @JsonProperty("subscriber-name")
70     public String subscriberName;
71     @JsonProperty("subscriber-type")
72     public String subscriberType;
73     @JsonProperty("vnf-id")
74     public String vnfId;
75     @JsonProperty("vnf-name")
76     public String vnfName;
77     @JsonProperty("vnf-type")
78     public String vnfType;
79     @JsonProperty("service-id")
80     public String serviceId;
81     @JsonProperty("prov-status")
82     public String provStatus;
83     @JsonProperty("in-maint")
84     public Boolean inMaint;
85     @JsonProperty("is-closed-loop-disabled")
86     public Boolean isClosedLoopDisabled;
87     @JsonProperty("model-customization-id")
88     public String modelCustomizationId;
89     @JsonProperty("nf-type")
90     public String nfType;
91     @JsonProperty("nf-function")
92     public String nfFunction;
93     @JsonProperty("nf-role")
94     public String nfRole;
95     @JsonProperty("nf-naming-code")
96     public String nfNamingCode;
97     @JsonIgnore
98     private Map<String, Object> additionalProperties = new HashMap<>();
99
100     @JsonAnyGetter
101     public Map<String, Object> getAdditionalProperties() {
102         return this.additionalProperties;
103     }
104
105     @JsonAnySetter
106     public void setAdditionalProperty(String name, Object value) {
107         this.additionalProperties.put(name, value);
108     }
109
110 }