Create and store Dependency model from Tosca
[appc.git] / appc-asdc-listener / appc-asdc-listener-bundle / src / main / java / org / openecomp / appc / sdc / artifacts / object / Vnfc.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.openecomp.appc.sdc.artifacts.object;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
31
32 import java.util.List;
33
34 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
35 @JsonIgnoreProperties(ignoreUnknown = true)
36 @JsonPropertyOrder({"vnfc-type","mandatory","resilience","parents"})
37 public class Vnfc {
38
39     @JsonProperty("vnfc-type")
40     private String vnfcType;
41     @JsonProperty("mandatory")
42     private boolean mandatory;
43     @JsonProperty("resilience")
44     private String resilienceType;
45     @JsonProperty("parents")
46     private List<String> parents;
47
48     public String getVnfcType() {
49         return vnfcType;
50     }
51
52     public void setVnfcType(String vnfcType) {
53         this.vnfcType = vnfcType;
54     }
55     public boolean isMandatory() {
56         return mandatory;
57     }
58
59     public void setMandatory(boolean mandatory) {
60         this.mandatory = mandatory;
61     }
62
63     public String getResilienceType() {
64         return resilienceType;
65     }
66
67     public void setResilienceType(String resilienceType) {
68         this.resilienceType = resilienceType;
69     }
70
71     public List<String> getParents() {
72         return parents;
73     }
74
75     public void setParents(List<String> parents) {
76         this.parents = parents;
77     }
78 }