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