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