Containerization feature of SO
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / network / async / client / NetworkRollback.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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 package org.onap.so.adapters.network.async.client;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlElement;
29 import javax.xml.bind.annotation.XmlType;
30
31
32 /**
33  * <p>Java class for networkRollback complex type.
34  * 
35  * <p>The following schema fragment specifies the expected content contained within this class.
36  * 
37  * <pre>
38  * &lt;complexType name="networkRollback">
39  *   &lt;complexContent>
40  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41  *       &lt;sequence>
42  *         &lt;element name="cloudId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
43  *         &lt;element name="msoRequest" type="{http://org.onap.so/networkNotify}msoRequest" minOccurs="0"/>
44  *         &lt;element name="networkCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
45  *         &lt;element name="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
46  *         &lt;element name="networkStackId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
47  *         &lt;element name="networkName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48  *         &lt;element name="networkType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49  *         &lt;element name="networkUpdated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
50  *         &lt;element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
51  *         &lt;element name="physicalNetwork" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
52  *         &lt;element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
53  *         &lt;element name="vlans" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
54  *       &lt;/sequence>
55  *     &lt;/restriction>
56  *   &lt;/complexContent>
57  * &lt;/complexType>
58  * </pre>
59  * 
60  * 
61  */
62 @XmlAccessorType(XmlAccessType.FIELD)
63 @XmlType(name = "networkRollback", propOrder = {
64     "cloudId",
65     "msoRequest",
66     "networkCreated",
67     "networkId",
68     "networkStackId",
69     "networkName",
70     "networkType",
71     "networkUpdated",
72     "neutronNetworkId",
73     "physicalNetwork",
74     "tenantId",
75     "vlans"
76 })
77 public class NetworkRollback {
78
79     protected String cloudId;
80     protected MsoRequest msoRequest;
81     protected boolean networkCreated;
82     protected String networkId;
83     protected String networkStackId;
84     protected String networkName;
85     protected String networkType;
86     protected boolean networkUpdated;
87     protected String neutronNetworkId;
88     protected String physicalNetwork;
89     protected String tenantId;
90     @XmlElement(nillable = true)
91     protected List<Integer> vlans;
92
93     /**
94      * Gets the value of the cloudId property.
95      * 
96      * @return
97      *     possible object is
98      *     {@link String }
99      *     
100      */
101     public String getCloudId() {
102         return cloudId;
103     }
104
105     /**
106      * Sets the value of the cloudId property.
107      * 
108      * @param value
109      *     allowed object is
110      *     {@link String }
111      *     
112      */
113     public void setCloudId(String value) {
114         this.cloudId = value;
115     }
116
117     /**
118      * Gets the value of the msoRequest property.
119      * 
120      * @return
121      *     possible object is
122      *     {@link MsoRequest }
123      *     
124      */
125     public MsoRequest getMsoRequest() {
126         return msoRequest;
127     }
128
129     /**
130      * Sets the value of the msoRequest property.
131      * 
132      * @param value
133      *     allowed object is
134      *     {@link MsoRequest }
135      *     
136      */
137     public void setMsoRequest(MsoRequest value) {
138         this.msoRequest = value;
139     }
140
141     /**
142      * Gets the value of the networkCreated property.
143      * 
144      */
145     public boolean isNetworkCreated() {
146         return networkCreated;
147     }
148
149     /**
150      * Sets the value of the networkCreated property.
151      * 
152      */
153     public void setNetworkCreated(boolean value) {
154         this.networkCreated = value;
155     }
156
157     /**
158      * Gets the value of the networkId property.
159      * 
160      * @return
161      *     possible object is
162      *     {@link String }
163      *     
164      */
165     public String getNetworkId() {
166         return networkId;
167     }
168
169     /**
170      * Sets the value of the networkId property.
171      * 
172      * @param value
173      *     allowed object is
174      *     {@link String }
175      *     
176      */
177     public void setNetworkId(String value) {
178         this.networkId = value;
179     }
180
181     /**
182      * Gets the value of the networkStackId property.
183      * 
184      * @return
185      *     possible object is
186      *     {@link String }
187      *     
188      */
189     public String getNetworkStackId() {
190         return networkStackId;
191     }
192
193     /**
194      * Sets the value of the networkStackId property.
195      * 
196      * @param value
197      *     allowed object is
198      *     {@link String }
199      *     
200      */
201     public void setNetworkStackId(String value) {
202         this.networkStackId = value;
203     }
204
205     /**
206      * Gets the value of the networkName property.
207      * 
208      * @return
209      *     possible object is
210      *     {@link String }
211      *     
212      */
213     public String getNetworkName() {
214         return networkName;
215     }
216
217     /**
218      * Sets the value of the networkName property.
219      * 
220      * @param value
221      *     allowed object is
222      *     {@link String }
223      *     
224      */
225     public void setNetworkName(String value) {
226         this.networkName = value;
227     }
228
229     /**
230      * Gets the value of the networkType property.
231      * 
232      * @return
233      *     possible object is
234      *     {@link String }
235      *     
236      */
237     public String getNetworkType() {
238         return networkType;
239     }
240
241     /**
242      * Sets the value of the networkType property.
243      * 
244      * @param value
245      *     allowed object is
246      *     {@link String }
247      *     
248      */
249     public void setNetworkType(String value) {
250         this.networkType = value;
251     }
252
253     /**
254      * Gets the value of the networkUpdated property.
255      * 
256      */
257     public boolean isNetworkUpdated() {
258         return networkUpdated;
259     }
260
261     /**
262      * Sets the value of the networkUpdated property.
263      * 
264      */
265     public void setNetworkUpdated(boolean value) {
266         this.networkUpdated = value;
267     }
268
269     /**
270      * Gets the value of the neutronNetworkId property.
271      * 
272      * @return
273      *     possible object is
274      *     {@link String }
275      *     
276      */
277     public String getNeutronNetworkId() {
278         return neutronNetworkId;
279     }
280
281     /**
282      * Sets the value of the neutronNetworkId property.
283      * 
284      * @param value
285      *     allowed object is
286      *     {@link String }
287      *     
288      */
289     public void setNeutronNetworkId(String value) {
290         this.neutronNetworkId = value;
291     }
292
293     /**
294      * Gets the value of the physicalNetwork property.
295      * 
296      * @return
297      *     possible object is
298      *     {@link String }
299      *     
300      */
301     public String getPhysicalNetwork() {
302         return physicalNetwork;
303     }
304
305     /**
306      * Sets the value of the physicalNetwork property.
307      * 
308      * @param value
309      *     allowed object is
310      *     {@link String }
311      *     
312      */
313     public void setPhysicalNetwork(String value) {
314         this.physicalNetwork = value;
315     }
316
317     /**
318      * Gets the value of the tenantId property.
319      * 
320      * @return
321      *     possible object is
322      *     {@link String }
323      *     
324      */
325     public String getTenantId() {
326         return tenantId;
327     }
328
329     /**
330      * Sets the value of the tenantId property.
331      * 
332      * @param value
333      *     allowed object is
334      *     {@link String }
335      *     
336      */
337     public void setTenantId(String value) {
338         this.tenantId = value;
339     }
340
341     /**
342      * Gets the value of the vlans property.
343      * 
344      * <p>
345      * This accessor method returns a reference to the live list,
346      * not a snapshot. Therefore any modification you make to the
347      * returned list will be present inside the JAXB object.
348      * This is why there is not a <CODE>set</CODE> method for the vlans property.
349      * 
350      * <p>
351      * For example, to add a new item, do as follows:
352      * <pre>
353      *    getVlans().add(newItem);
354      * </pre>
355      * 
356      * 
357      * <p>
358      * Objects of the following type(s) are allowed in the list
359      * {@link Integer }
360      * 
361      * 
362      */
363     public List<Integer> getVlans() {
364         if (vlans == null) {
365             vlans = new ArrayList<Integer>();
366         }
367         return this.vlans;
368     }
369
370 }