2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.openecomp.appc.sdc.artifacts.object;
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;
32 import java.util.List;
34 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
35 @JsonIgnoreProperties(ignoreUnknown = true)
36 @JsonPropertyOrder({"vnfc-type","mandatory","resilience","parents"})
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;
48 public String getVnfcType() {
52 public void setVnfcType(String vnfcType) {
53 this.vnfcType = vnfcType;
55 public boolean isMandatory() {
59 public void setMandatory(boolean mandatory) {
60 this.mandatory = mandatory;
63 public String getResilienceType() {
64 return resilienceType;
67 public void setResilienceType(String resilienceType) {
68 this.resilienceType = resilienceType;
71 public List<String> getParents() {
75 public void setParents(List<String> parents) {
76 this.parents = parents;