replace deprecated JsonSerialize.Inclusion
[appc.git] / appc-sdc-listener / appc-sdc-listener-bundle / src / main / java / org / onap / appc / sdc / artifacts / object / Vnfc.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.sdc.artifacts.object;
25
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import com.fasterxml.jackson.annotation.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
31 import java.util.List;
32
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonIgnoreProperties(ignoreUnknown = true)
35 @JsonPropertyOrder({"vnfc-type","mandatory","resilience","parents"})
36 public class Vnfc {
37
38     @JsonProperty("vnfc-type")
39     private String vnfcType;
40     @JsonProperty("mandatory")
41     private boolean mandatory;
42     @JsonProperty("resilience")
43     private String resilienceType;
44     @JsonProperty("parents")
45     private List<String> parents;
46
47     public String getVnfcType() {
48         return vnfcType;
49     }
50
51     public void setVnfcType(String vnfcType) {
52         this.vnfcType = vnfcType;
53     }
54     public boolean isMandatory() {
55         return mandatory;
56     }
57
58     public void setMandatory(boolean mandatory) {
59         this.mandatory = mandatory;
60     }
61
62     public String getResilienceType() {
63         return resilienceType;
64     }
65
66     public void setResilienceType(String resilienceType) {
67         this.resilienceType = resilienceType;
68     }
69
70     public List<String> getParents() {
71         return parents;
72     }
73
74     public void setParents(List<String> parents) {
75         this.parents = parents;
76     }
77 }