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