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