6d025ea941cd2ca9729bce80625471e0a2d03cce
[appc.git] /
1
2 /*-
3  * ============LICENSE_START=======================================================
4  * ONAP : APPC
5  * ================================================================================
6  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7  * =============================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  * ============LICENSE_END=========================================================
22  */
23 //
24 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
25 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
26 // Any modifications to this file will be lost upon recompilation of the source schema.
27 // Generated on: 2017.07.31 at 10:30:39 AM EDT
28 //
29
30
31 package org.onap.appc.flow.controller.interfaceData;
32
33 import java.util.ArrayList;
34 import java.util.List;
35
36 import javax.xml.bind.annotation.XmlAccessType;
37 import javax.xml.bind.annotation.XmlAccessorType;
38 import javax.xml.bind.annotation.XmlElement;
39 import javax.xml.bind.annotation.XmlList;
40 import javax.xml.bind.annotation.XmlRootElement;
41 import javax.xml.bind.annotation.XmlType;
42
43 import com.fasterxml.jackson.annotation.JsonProperty;
44 import com.fasterxml.jackson.annotation.JsonRootName;
45
46 @XmlAccessorType(XmlAccessType.FIELD)
47 @XmlType(name = "", propOrder = {
48     "vnfcType",
49     "mandatory",
50     "resilience",
51     "parents"
52 })
53 @XmlRootElement(name = "vnfcs")
54 @JsonRootName(value="vnfcs")
55 public class Vnfcs {
56
57     @XmlElement(name = "vnfc-type", required = true)
58     @JsonProperty("vnfc-type")
59     protected String vnfcType;
60     @XmlElement(required = true)
61     @JsonProperty("mandatory")
62     protected String mandatory;
63     @XmlElement(required = true)
64     @JsonProperty("resilience")
65     protected String resilience;
66     @XmlList
67     @XmlElement(required = true)
68     @JsonProperty("parents")
69     protected List<String> parents;
70
71     /**
72      * Gets the value of the vnfcType property.
73      *
74      * @return
75      *     possible object is
76      *     {@link String }
77      *
78      */
79     public String getVnfcType() {
80         return vnfcType;
81     }
82
83     /**
84      * Sets the value of the vnfcType property.
85      *
86      * @param value
87      *     allowed object is
88      *     {@link String }
89      *
90      */
91     public void setVnfcType(String value) {
92         this.vnfcType = value;
93     }
94
95     /**
96      * Gets the value of the mandatory property.
97      *
98      * @return
99      *     possible object is
100      *     {@link String }
101      *
102      */
103     public String getMandatory() {
104         return mandatory;
105     }
106
107     /**
108      * Sets the value of the mandatory property.
109      *
110      * @param value
111      *     allowed object is
112      *     {@link String }
113      *
114      */
115     public void setMandatory(String value) {
116         this.mandatory = value;
117     }
118
119     /**
120      * Gets the value of the resilience property.
121      *
122      * @return
123      *     possible object is
124      *     {@link String }
125      *
126      */
127     public String getResilience() {
128         return resilience;
129     }
130
131     /**
132      * Sets the value of the resilience property.
133      *
134      * @param value
135      *     allowed object is
136      *     {@link String }
137      *
138      */
139     public void setResilience(String value) {
140         this.resilience = value;
141     }
142
143     /**
144      * Gets the value of the parents property.
145      *
146      * <p>
147      * This accessor method returns a reference to the live list,
148      * not a snapshot. Therefore any modification you make to the
149      * returned list will be present inside the JAXB object.
150      * This is why there is not a <CODE>set</CODE> method for the parents property.
151      *
152      * <p>
153      * For example, to add a new item, do as follows:
154      * <pre>
155      *    getParents().add(newItem);
156      * </pre>
157      *
158      *
159      * <p>
160      * Objects of the following type(s) are allowed in the list
161      * {@link String }
162      *
163      *
164      */
165     public List<String> getParents() {
166         if (parents == null) {
167             parents = new ArrayList<String>();
168         }
169         return this.parents;
170     }
171
172     @Override
173     public String toString() {
174         return "Vnfcs [vnfcType=" + vnfcType + ", mandatory=" + mandatory
175                 + ", resilience=" + resilience + ", parents=" + parents + "]";
176     }
177
178 }