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