a3cab02313c8ca6ecf2e36fc47312f54817ad129
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / openecomp / appc / flow / controller / interfaceData / Vnfcs.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 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 //
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
24 // Any modifications to this file will be lost upon recompilation of the source schema. 
25 // Generated on: 2017.07.31 at 10:30:39 AM EDT 
26 //
27
28
29 package org.openecomp.appc.flow.controller.interfaceData;
30
31 import java.util.ArrayList;
32 import java.util.List;
33
34 import javax.xml.bind.annotation.XmlAccessType;
35 import javax.xml.bind.annotation.XmlAccessorType;
36 import javax.xml.bind.annotation.XmlElement;
37 import javax.xml.bind.annotation.XmlList;
38 import javax.xml.bind.annotation.XmlRootElement;
39 import javax.xml.bind.annotation.XmlType;
40
41 import com.fasterxml.jackson.annotation.JsonProperty;
42 import com.fasterxml.jackson.annotation.JsonRootName;
43
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "", propOrder = {
46     "vnfcType",
47     "mandatory",
48     "resilience",
49     "parents"
50 })
51 @XmlRootElement(name = "vnfcs")
52 @JsonRootName(value="vnfcs")
53 public class Vnfcs {
54
55     @XmlElement(name = "vnfc-type", required = true)
56     @JsonProperty("vnfc-type")
57     protected String vnfcType;
58     @XmlElement(required = true)
59     @JsonProperty("mandatory")
60     protected String mandatory;
61     @XmlElement(required = true)
62     @JsonProperty("resilience")
63     protected String resilience;
64     @XmlList
65     @XmlElement(required = true)
66     @JsonProperty("parents")
67     protected List<String> parents;
68
69     /**
70      * Gets the value of the vnfcType property.
71      * 
72      * @return
73      *     possible object is
74      *     {@link String }
75      *     
76      */
77     public String getVnfcType() {
78         return vnfcType;
79     }
80
81     /**
82      * Sets the value of the vnfcType property.
83      * 
84      * @param value
85      *     allowed object is
86      *     {@link String }
87      *     
88      */
89     public void setVnfcType(String value) {
90         this.vnfcType = value;
91     }
92
93     /**
94      * Gets the value of the mandatory property.
95      * 
96      * @return
97      *     possible object is
98      *     {@link String }
99      *     
100      */
101     public String getMandatory() {
102         return mandatory;
103     }
104
105     /**
106      * Sets the value of the mandatory property.
107      * 
108      * @param value
109      *     allowed object is
110      *     {@link String }
111      *     
112      */
113     public void setMandatory(String value) {
114         this.mandatory = value;
115     }
116
117     /**
118      * Gets the value of the resilience property.
119      * 
120      * @return
121      *     possible object is
122      *     {@link String }
123      *     
124      */
125     public String getResilience() {
126         return resilience;
127     }
128
129     /**
130      * Sets the value of the resilience property.
131      * 
132      * @param value
133      *     allowed object is
134      *     {@link String }
135      *     
136      */
137     public void setResilience(String value) {
138         this.resilience = value;
139     }
140
141     /**
142      * Gets the value of the parents property.
143      * 
144      * <p>
145      * This accessor method returns a reference to the live list,
146      * not a snapshot. Therefore any modification you make to the
147      * returned list will be present inside the JAXB object.
148      * This is why there is not a <CODE>set</CODE> method for the parents property.
149      * 
150      * <p>
151      * For example, to add a new item, do as follows:
152      * <pre>
153      *    getParents().add(newItem);
154      * </pre>
155      * 
156      * 
157      * <p>
158      * Objects of the following type(s) are allowed in the list
159      * {@link String }
160      * 
161      * 
162      */
163     public List<String> getParents() {
164         if (parents == null) {
165             parents = new ArrayList<String>();
166         }
167         return this.parents;
168     }
169
170     @Override
171     public String toString() {
172         return "Vnfcs [vnfcType=" + vnfcType + ", mandatory=" + mandatory
173                 + ", resilience=" + resilience + ", parents=" + parents + "]";
174     }
175
176 }