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