Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / network / async / client / QueryNetworkNotification.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 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 queryNetworkNotification 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="queryNetworkNotification">
42  *   &lt;complexContent>
43  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44  *       &lt;sequence>
45  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
46  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
47  *         &lt;element name="exception" type="{http://org.onap.so/networkNotify}msoExceptionCategory" minOccurs="0"/>
48  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49  *         &lt;element name="networkExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
50  *         &lt;element name="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
51  *         &lt;element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
52  *         &lt;element name="status" type="{http://org.onap.so/networkNotify}networkStatus" minOccurs="0"/>
53  *         &lt;element name="vlans" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
54  *         &lt;element name="subnetIdMap" minOccurs="0">
55  *           &lt;complexType>
56  *             &lt;complexContent>
57  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
58  *                 &lt;sequence>
59  *                   &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">
60  *                     &lt;complexType>
61  *                       &lt;complexContent>
62  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
63  *                           &lt;sequence>
64  *                             &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
65  *                             &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
66  *                           &lt;/sequence>
67  *                         &lt;/restriction>
68  *                       &lt;/complexContent>
69  *                     &lt;/complexType>
70  *                   &lt;/element>
71  *                 &lt;/sequence>
72  *               &lt;/restriction>
73  *             &lt;/complexContent>
74  *           &lt;/complexType>
75  *         &lt;/element>
76  *       &lt;/sequence>
77  *     &lt;/restriction>
78  *   &lt;/complexContent>
79  * &lt;/complexType>
80  * </pre>
81  * 
82  * 
83  */
84 @XmlAccessorType(XmlAccessType.FIELD)
85 @XmlType(name = "queryNetworkNotification", propOrder = {"messageId", "completed", "exception", "errorMessage",
86         "networkExists", "networkId", "neutronNetworkId", "status", "vlans", "subnetIdMap"})
87 public class QueryNetworkNotification {
88
89     @XmlElement(required = true)
90     protected String messageId;
91     protected boolean completed;
92     protected MsoExceptionCategory exception;
93     protected String errorMessage;
94     protected Boolean networkExists;
95     protected String networkId;
96     protected String neutronNetworkId;
97     protected NetworkStatus status;
98     @XmlElement(type = Integer.class)
99     protected List<Integer> vlans;
100     protected QueryNetworkNotification.SubnetIdMap subnetIdMap;
101
102     /**
103      * Gets the value of the messageId property.
104      * 
105      * @return possible object is {@link String }
106      * 
107      */
108     public String getMessageId() {
109         return messageId;
110     }
111
112     /**
113      * Sets the value of the messageId property.
114      * 
115      * @param value allowed object is {@link String }
116      * 
117      */
118     public void setMessageId(String value) {
119         this.messageId = value;
120     }
121
122     /**
123      * Gets the value of the completed property.
124      * 
125      */
126     public boolean isCompleted() {
127         return completed;
128     }
129
130     /**
131      * Sets the value of the completed property.
132      * 
133      */
134     public void setCompleted(boolean value) {
135         this.completed = value;
136     }
137
138     /**
139      * Gets the value of the exception property.
140      * 
141      * @return possible object is {@link MsoExceptionCategory }
142      * 
143      */
144     public MsoExceptionCategory getException() {
145         return exception;
146     }
147
148     /**
149      * Sets the value of the exception property.
150      * 
151      * @param value allowed object is {@link MsoExceptionCategory }
152      * 
153      */
154     public void setException(MsoExceptionCategory value) {
155         this.exception = value;
156     }
157
158     /**
159      * Gets the value of the errorMessage property.
160      * 
161      * @return possible object is {@link String }
162      * 
163      */
164     public String getErrorMessage() {
165         return errorMessage;
166     }
167
168     /**
169      * Sets the value of the errorMessage property.
170      * 
171      * @param value allowed object is {@link String }
172      * 
173      */
174     public void setErrorMessage(String value) {
175         this.errorMessage = value;
176     }
177
178     /**
179      * Gets the value of the networkExists property.
180      * 
181      * @return possible object is {@link Boolean }
182      * 
183      */
184     public Boolean isNetworkExists() {
185         return networkExists;
186     }
187
188     /**
189      * Sets the value of the networkExists property.
190      * 
191      * @param value allowed object is {@link Boolean }
192      * 
193      */
194     public void setNetworkExists(Boolean value) {
195         this.networkExists = value;
196     }
197
198     /**
199      * Gets the value of the networkId property.
200      * 
201      * @return possible object is {@link String }
202      * 
203      */
204     public String getNetworkId() {
205         return networkId;
206     }
207
208     /**
209      * Sets the value of the networkId property.
210      * 
211      * @param value allowed object is {@link String }
212      * 
213      */
214     public void setNetworkId(String value) {
215         this.networkId = value;
216     }
217
218     /**
219      * Gets the value of the neutronNetworkId property.
220      * 
221      * @return possible object is {@link String }
222      * 
223      */
224     public String getNeutronNetworkId() {
225         return neutronNetworkId;
226     }
227
228     /**
229      * Sets the value of the neutronNetworkId property.
230      * 
231      * @param value allowed object is {@link String }
232      * 
233      */
234     public void setNeutronNetworkId(String value) {
235         this.neutronNetworkId = value;
236     }
237
238     /**
239      * Gets the value of the status property.
240      * 
241      * @return possible object is {@link NetworkStatus }
242      * 
243      */
244     public NetworkStatus getStatus() {
245         return status;
246     }
247
248     /**
249      * Sets the value of the status property.
250      * 
251      * @param value allowed object is {@link NetworkStatus }
252      * 
253      */
254     public void setStatus(NetworkStatus value) {
255         this.status = value;
256     }
257
258     /**
259      * Gets the value of the vlans property.
260      * 
261      * <p>
262      * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to
263      * the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for
264      * the vlans property.
265      * 
266      * <p>
267      * For example, to add a new item, do as follows:
268      * 
269      * <pre>
270      * getVlans().add(newItem);
271      * </pre>
272      * 
273      * 
274      * <p>
275      * Objects of the following type(s) are allowed in the list {@link Integer }
276      * 
277      * 
278      */
279     public List<Integer> getVlans() {
280         if (vlans == null) {
281             vlans = new ArrayList<>();
282         }
283         return this.vlans;
284     }
285
286     /**
287      * Gets the value of the subnetIdMap property.
288      * 
289      * @return possible object is {@link QueryNetworkNotification.SubnetIdMap }
290      * 
291      */
292     public QueryNetworkNotification.SubnetIdMap getSubnetIdMap() {
293         return subnetIdMap;
294     }
295
296     /**
297      * Sets the value of the subnetIdMap property.
298      * 
299      * @param value allowed object is {@link QueryNetworkNotification.SubnetIdMap }
300      * 
301      */
302     public void setSubnetIdMap(QueryNetworkNotification.SubnetIdMap value) {
303         this.subnetIdMap = value;
304     }
305
306
307     /**
308      * <p>
309      * Java class for anonymous complex type.
310      * 
311      * <p>
312      * The following schema fragment specifies the expected content contained within this class.
313      * 
314      * <pre>
315      * &lt;complexType>
316      *   &lt;complexContent>
317      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
318      *       &lt;sequence>
319      *         &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">
320      *           &lt;complexType>
321      *             &lt;complexContent>
322      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
323      *                 &lt;sequence>
324      *                   &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
325      *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
326      *                 &lt;/sequence>
327      *               &lt;/restriction>
328      *             &lt;/complexContent>
329      *           &lt;/complexType>
330      *         &lt;/element>
331      *       &lt;/sequence>
332      *     &lt;/restriction>
333      *   &lt;/complexContent>
334      * &lt;/complexType>
335      * </pre>
336      * 
337      * 
338      */
339     @XmlAccessorType(XmlAccessType.FIELD)
340     @XmlType(name = "", propOrder = {"entry"})
341     public static class SubnetIdMap {
342
343         protected List<QueryNetworkNotification.SubnetIdMap.Entry> entry;
344
345         /**
346          * Gets the value of the entry property.
347          * 
348          * <p>
349          * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
350          * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
351          * method for the entry property.
352          * 
353          * <p>
354          * For example, to add a new item, do as follows:
355          * 
356          * <pre>
357          * getEntry().add(newItem);
358          * </pre>
359          * 
360          * 
361          * <p>
362          * Objects of the following type(s) are allowed in the list {@link QueryNetworkNotification.SubnetIdMap.Entry }
363          * 
364          * 
365          */
366         public List<QueryNetworkNotification.SubnetIdMap.Entry> getEntry() {
367             if (entry == null) {
368                 entry = new ArrayList<>();
369             }
370             return this.entry;
371         }
372
373
374         /**
375          * <p>
376          * Java class for anonymous complex type.
377          * 
378          * <p>
379          * The following schema fragment specifies the expected content contained within this class.
380          * 
381          * <pre>
382          * &lt;complexType>
383          *   &lt;complexContent>
384          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
385          *       &lt;sequence>
386          *         &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
387          *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
388          *       &lt;/sequence>
389          *     &lt;/restriction>
390          *   &lt;/complexContent>
391          * &lt;/complexType>
392          * </pre>
393          * 
394          * 
395          */
396         @XmlAccessorType(XmlAccessType.FIELD)
397         @XmlType(name = "", propOrder = {"key", "value"})
398         public static class Entry {
399
400             protected String key;
401             protected String value;
402
403             /**
404              * Gets the value of the key property.
405              * 
406              * @return possible object is {@link String }
407              * 
408              */
409             public String getKey() {
410                 return key;
411             }
412
413             /**
414              * Sets the value of the key property.
415              * 
416              * @param value allowed object is {@link String }
417              * 
418              */
419             public void setKey(String value) {
420                 this.key = value;
421             }
422
423             /**
424              * Gets the value of the value property.
425              * 
426              * @return possible object is {@link String }
427              * 
428              */
429             public String getValue() {
430                 return value;
431             }
432
433             /**
434              * Sets the value of the value property.
435              * 
436              * @param value allowed object is {@link String }
437              * 
438              */
439             public void setValue(String value) {
440                 this.value = value;
441             }
442
443         }
444
445     }
446
447 }