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