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