Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / mso-infrastructure-bpmn / src / main / java / org / onap / so / bpmn / common / adapter / vnf / CreateVnfNotification.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.bpmn.common.adapter.vnf;
22
23 import java.util.ArrayList;
24 import java.util.List;
25 import javax.xml.bind.annotation.XmlAccessType;
26 import javax.xml.bind.annotation.XmlAccessorType;
27 import javax.xml.bind.annotation.XmlElement;
28 import javax.xml.bind.annotation.XmlType;
29
30
31 /**
32  * <p>
33  * Java class for createVnfNotification complex type.
34  * 
35  * <p>
36  * The following schema fragment specifies the expected content contained within this class.
37  * 
38  * <pre>
39  * &lt;complexType name="createVnfNotification">
40  *   &lt;complexContent>
41  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42  *       &lt;sequence>
43  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
44  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
45  *         &lt;element name="exception" type="{http://org.onap.so/vnfNotify}msoExceptionCategory" minOccurs="0"/>
46  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
47  *         &lt;element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48  *         &lt;element name="outputs" 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/vnfNotify}vnfRollback" 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 = "createVnfNotification1",
81         propOrder = {"messageId", "completed", "exception", "errorMessage", "vnfId", "outputs", "rollback"})
82 public class CreateVnfNotification {
83
84     @XmlElement(required = true)
85     protected String messageId;
86     protected boolean completed;
87     protected MsoExceptionCategory exception;
88     protected String errorMessage;
89     protected String vnfId;
90     protected Outputs outputs;
91     protected VnfRollback 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 vnfId property.
171      * 
172      * @return possible object is {@link String }
173      * 
174      */
175     public String getVnfId() {
176         return vnfId;
177     }
178
179     /**
180      * Sets the value of the vnfId property.
181      * 
182      * @param value allowed object is {@link String }
183      * 
184      */
185     public void setVnfId(String value) {
186         this.vnfId = value;
187     }
188
189     /**
190      * Gets the value of the outputs property.
191      * 
192      * @return possible object is {@link CreateVnfNotification.Outputs }
193      * 
194      */
195     public CreateVnfNotification.Outputs getOutputs() {
196         return outputs;
197     }
198
199     /**
200      * Sets the value of the outputs property.
201      * 
202      * @param value allowed object is {@link CreateVnfNotification.Outputs }
203      * 
204      */
205     public void setOutputs(CreateVnfNotification.Outputs value) {
206         this.outputs = value;
207     }
208
209     /**
210      * Gets the value of the rollback property.
211      * 
212      * @return possible object is {@link VnfRollback }
213      * 
214      */
215     public VnfRollback getRollback() {
216         return rollback;
217     }
218
219     /**
220      * Sets the value of the rollback property.
221      * 
222      * @param value allowed object is {@link VnfRollback }
223      * 
224      */
225     public void setRollback(VnfRollback value) {
226         this.rollback = value;
227     }
228
229
230     /**
231      * <p>
232      * Java class for anonymous complex type.
233      * 
234      * <p>
235      * The following schema fragment specifies the expected content contained within this class.
236      * 
237      * <pre>
238      * &lt;complexType>
239      *   &lt;complexContent>
240      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
241      *       &lt;sequence>
242      *         &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">
243      *           &lt;complexType>
244      *             &lt;complexContent>
245      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
246      *                 &lt;sequence>
247      *                   &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
248      *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
249      *                 &lt;/sequence>
250      *               &lt;/restriction>
251      *             &lt;/complexContent>
252      *           &lt;/complexType>
253      *         &lt;/element>
254      *       &lt;/sequence>
255      *     &lt;/restriction>
256      *   &lt;/complexContent>
257      * &lt;/complexType>
258      * </pre>
259      * 
260      * 
261      */
262     @XmlAccessorType(XmlAccessType.FIELD)
263     @XmlType(name = "", propOrder = {"entry"})
264     public static class Outputs {
265
266         protected List<CreateVnfNotification.Outputs.Entry> entry;
267
268         /**
269          * Gets the value of the entry property.
270          * 
271          * <p>
272          * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
273          * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
274          * method for the entry property.
275          * 
276          * <p>
277          * For example, to add a new item, do as follows:
278          * 
279          * <pre>
280          * getEntry().add(newItem);
281          * </pre>
282          * 
283          * 
284          * <p>
285          * Objects of the following type(s) are allowed in the list {@link CreateVnfNotification.Outputs.Entry }
286          * 
287          * 
288          */
289         public List<CreateVnfNotification.Outputs.Entry> getEntry() {
290             if (entry == null) {
291                 entry = new ArrayList<>();
292             }
293             return this.entry;
294         }
295
296         // Not a generated method
297         @Override
298         public String toString() {
299             StringBuilder out = new StringBuilder();
300             out.append("<outputs>\n");
301             if (entry != null) {
302                 for (Entry e : entry) {
303                     out.append(e.toString());
304                     out.append('\n');
305                 }
306             }
307             out.append("</outputs>");
308             return out.toString();
309         }
310
311         /**
312          * <p>
313          * Java class for anonymous complex type.
314          * 
315          * <p>
316          * The following schema fragment specifies the expected content contained within this class.
317          * 
318          * <pre>
319          * &lt;complexType>
320          *   &lt;complexContent>
321          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
322          *       &lt;sequence>
323          *         &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
324          *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
325          *       &lt;/sequence>
326          *     &lt;/restriction>
327          *   &lt;/complexContent>
328          * &lt;/complexType>
329          * </pre>
330          * 
331          * 
332          */
333         @XmlAccessorType(XmlAccessType.FIELD)
334         @XmlType(name = "", propOrder = {"key", "value"})
335         public static class Entry {
336
337             protected String key;
338             protected String value;
339
340             /**
341              * Gets the value of the key property.
342              * 
343              * @return possible object is {@link String }
344              * 
345              */
346             public String getKey() {
347                 return key;
348             }
349
350             /**
351              * Sets the value of the key property.
352              * 
353              * @param value allowed object is {@link String }
354              * 
355              */
356             public void setKey(String value) {
357                 this.key = value;
358             }
359
360             /**
361              * Gets the value of the value property.
362              * 
363              * @return possible object is {@link String }
364              * 
365              */
366             public String getValue() {
367                 return value;
368             }
369
370             /**
371              * Sets the value of the value property.
372              * 
373              * @param value allowed object is {@link String }
374              * 
375              */
376             public void setValue(String value) {
377                 this.value = value;
378
379             }
380
381             // Not a generated method
382             @Override
383             public String toString() {
384                 String entrystr;
385                 entrystr = "<entry>" + '\n' + "   <key>" + key + "</key>" + '\n' + "   <value>" + value + "</value>"
386                         + '\n' + "</entry>";
387                 return entrystr;
388             }
389
390         }
391
392     }
393
394     // Not a generated method
395     @Override
396     public String toString() {
397         String createVnfNotification;
398         if (exception == null) {
399             createVnfNotification = "<ns2:createVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
400                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
401                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
402                     + "   <vnfId>" + vnfId + "</vnfId>" + '\n' + (outputs == null ? "" : outputs.toString() + '\n')
403                     + "   <rollback>" + rollback + "</rollback>" + '\n' + "</ns2:createVnfNotification>";
404         } else {
405             createVnfNotification = "<ns2:createVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
406                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
407                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
408                     + (outputs == null ? "" : outputs.toString() + '\n') + "   <exception>" + exception + "</exception>"
409                     + '\n' + "   <errorMessage>" + errorMessage + "</errorMessage>" + '\n'
410                     + "</ns2:createVnfNotification>";
411         }
412         return createVnfNotification;
413     }
414 }