b7b93b7b5de47fa8ca383cda053cad3ac72c4914
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / bpmn / common / adapter / vnf / QueryVnfNotification.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * OPENECOMP - MSO\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.mso.bpmn.common.adapter.vnf;\r
22 \r
23 import java.util.ArrayList;\r
24 import java.util.List;\r
25 \r
26 import javax.xml.bind.annotation.XmlAccessType;\r
27 import javax.xml.bind.annotation.XmlAccessorType;\r
28 import javax.xml.bind.annotation.XmlElement;\r
29 import javax.xml.bind.annotation.XmlType;\r
30 \r
31 \r
32 /**\r
33  * <p>Java class for queryVnfNotification complex type.\r
34  * \r
35  * <p>The following schema fragment specifies the expected content contained within this class.\r
36  * \r
37  * <pre>\r
38  * &lt;complexType name="queryVnfNotification">\r
39  *   &lt;complexContent>\r
40  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
41  *       &lt;sequence>\r
42  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>\r
43  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>\r
44  *         &lt;element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>\r
45  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
46  *         &lt;element name="vnfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>\r
47  *         &lt;element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
48  *         &lt;element name="status" type="{http://org.openecomp.mso/vnfNotify}vnfStatus" minOccurs="0"/>\r
49  *         &lt;element name="outputs" minOccurs="0">\r
50  *           &lt;complexType>\r
51  *             &lt;complexContent>\r
52  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
53  *                 &lt;sequence>\r
54  *                   &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">\r
55  *                     &lt;complexType>\r
56  *                       &lt;complexContent>\r
57  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
58  *                           &lt;sequence>\r
59  *                             &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
60  *                             &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
61  *                           &lt;/sequence>\r
62  *                         &lt;/restriction>\r
63  *                       &lt;/complexContent>\r
64  *                     &lt;/complexType>\r
65  *                   &lt;/element>\r
66  *                 &lt;/sequence>\r
67  *               &lt;/restriction>\r
68  *             &lt;/complexContent>\r
69  *           &lt;/complexType>\r
70  *         &lt;/element>\r
71  *       &lt;/sequence>\r
72  *     &lt;/restriction>\r
73  *   &lt;/complexContent>\r
74  * &lt;/complexType>\r
75  * </pre>\r
76  * \r
77  * \r
78  */\r
79 @XmlAccessorType(XmlAccessType.FIELD)\r
80 @XmlType(name = "queryVnfNotification1", propOrder = {\r
81     "messageId",\r
82     "completed",\r
83     "exception",\r
84     "errorMessage",\r
85     "vnfExists",\r
86     "vnfId",\r
87     "status",\r
88     "outputs"\r
89 })\r
90 public class QueryVnfNotification {\r
91 \r
92     @XmlElement(required = true)\r
93     protected String messageId;\r
94     protected boolean completed;\r
95     protected MsoExceptionCategory exception;\r
96     protected String errorMessage;\r
97     protected Boolean vnfExists;\r
98     protected String vnfId;\r
99     protected VnfStatus status;\r
100     protected QueryVnfNotification.Outputs outputs;\r
101 \r
102     /**\r
103      * Gets the value of the messageId property.\r
104      * \r
105      * @return\r
106      *     possible object is\r
107      *     {@link String }\r
108      *     \r
109      */\r
110     public String getMessageId() {\r
111         return messageId;\r
112     }\r
113 \r
114     /**\r
115      * Sets the value of the messageId property.\r
116      * \r
117      * @param value\r
118      *     allowed object is\r
119      *     {@link String }\r
120      *     \r
121      */\r
122     public void setMessageId(String value) {\r
123         this.messageId = value;\r
124     }\r
125 \r
126     /**\r
127      * Gets the value of the completed property.\r
128      * \r
129      */\r
130     public boolean isCompleted() {\r
131         return completed;\r
132     }\r
133 \r
134     /**\r
135      * Sets the value of the completed property.\r
136      * \r
137      */\r
138     public void setCompleted(boolean value) {\r
139         this.completed = value;\r
140     }\r
141 \r
142     /**\r
143      * Gets the value of the exception property.\r
144      * \r
145      * @return\r
146      *     possible object is\r
147      *     {@link MsoExceptionCategory }\r
148      *     \r
149      */\r
150     public MsoExceptionCategory getException() {\r
151         return exception;\r
152     }\r
153 \r
154     /**\r
155      * Sets the value of the exception property.\r
156      * \r
157      * @param value\r
158      *     allowed object is\r
159      *     {@link MsoExceptionCategory }\r
160      *     \r
161      */\r
162     public void setException(MsoExceptionCategory value) {\r
163         this.exception = value;\r
164     }\r
165 \r
166     /**\r
167      * Gets the value of the errorMessage property.\r
168      * \r
169      * @return\r
170      *     possible object is\r
171      *     {@link String }\r
172      *     \r
173      */\r
174     public String getErrorMessage() {\r
175         return errorMessage;\r
176     }\r
177 \r
178     /**\r
179      * Sets the value of the errorMessage property.\r
180      * \r
181      * @param value\r
182      *     allowed object is\r
183      *     {@link String }\r
184      *     \r
185      */\r
186     public void setErrorMessage(String value) {\r
187         this.errorMessage = value;\r
188     }\r
189 \r
190     /**\r
191      * Gets the value of the vnfExists property.\r
192      * \r
193      * @return\r
194      *     possible object is\r
195      *     {@link Boolean }\r
196      *     \r
197      */\r
198     public Boolean isVnfExists() {\r
199         return vnfExists;\r
200     }\r
201 \r
202     /**\r
203      * Sets the value of the vnfExists property.\r
204      * \r
205      * @param value\r
206      *     allowed object is\r
207      *     {@link Boolean }\r
208      *     \r
209      */\r
210     public void setVnfExists(Boolean value) {\r
211         this.vnfExists = value;\r
212     }\r
213 \r
214     /**\r
215      * Gets the value of the vnfId property.\r
216      * \r
217      * @return\r
218      *     possible object is\r
219      *     {@link String }\r
220      *     \r
221      */\r
222     public String getVnfId() {\r
223         return vnfId;\r
224     }\r
225 \r
226     /**\r
227      * Sets the value of the vnfId property.\r
228      * \r
229      * @param value\r
230      *     allowed object is\r
231      *     {@link String }\r
232      *     \r
233      */\r
234     public void setVnfId(String value) {\r
235         this.vnfId = value;\r
236     }\r
237 \r
238     /**\r
239      * Gets the value of the status property.\r
240      * \r
241      * @return\r
242      *     possible object is\r
243      *     {@link VnfStatus }\r
244      *     \r
245      */\r
246     public VnfStatus getStatus() {\r
247         return status;\r
248     }\r
249 \r
250     /**\r
251      * Sets the value of the status property.\r
252      * \r
253      * @param value\r
254      *     allowed object is\r
255      *     {@link VnfStatus }\r
256      *     \r
257      */\r
258     public void setStatus(VnfStatus value) {\r
259         this.status = value;\r
260     }\r
261 \r
262     /**\r
263      * Gets the value of the outputs property.\r
264      * \r
265      * @return\r
266      *     possible object is\r
267      *     {@link QueryVnfNotification.Outputs }\r
268      *     \r
269      */\r
270     public QueryVnfNotification.Outputs getOutputs() {\r
271         return outputs;\r
272     }\r
273 \r
274     /**\r
275      * Sets the value of the outputs property.\r
276      * \r
277      * @param value\r
278      *     allowed object is\r
279      *     {@link QueryVnfNotification.Outputs }\r
280      *     \r
281      */\r
282     public void setOutputs(QueryVnfNotification.Outputs value) {\r
283         this.outputs = value;\r
284     }\r
285 \r
286 \r
287     /**\r
288      * <p>Java class for anonymous complex type.\r
289      * \r
290      * <p>The following schema fragment specifies the expected content contained within this class.\r
291      * \r
292      * <pre>\r
293      * &lt;complexType>\r
294      *   &lt;complexContent>\r
295      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
296      *       &lt;sequence>\r
297      *         &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">\r
298      *           &lt;complexType>\r
299      *             &lt;complexContent>\r
300      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
301      *                 &lt;sequence>\r
302      *                   &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
303      *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
304      *                 &lt;/sequence>\r
305      *               &lt;/restriction>\r
306      *             &lt;/complexContent>\r
307      *           &lt;/complexType>\r
308      *         &lt;/element>\r
309      *       &lt;/sequence>\r
310      *     &lt;/restriction>\r
311      *   &lt;/complexContent>\r
312      * &lt;/complexType>\r
313      * </pre>\r
314      * \r
315      * \r
316      */\r
317     @XmlAccessorType(XmlAccessType.FIELD)\r
318     @XmlType(name = "", propOrder = {\r
319         "entry"\r
320     })\r
321     public static class Outputs {\r
322 \r
323         protected List<QueryVnfNotification.Outputs.Entry> entry;\r
324 \r
325         /**\r
326          * Gets the value of the entry property.\r
327          * \r
328          * <p>\r
329          * This accessor method returns a reference to the live list,\r
330          * not a snapshot. Therefore any modification you make to the\r
331          * returned list will be present inside the JAXB object.\r
332          * This is why there is not a <CODE>set</CODE> method for the entry property.\r
333          * \r
334          * <p>\r
335          * For example, to add a new item, do as follows:\r
336          * <pre>\r
337          *    getEntry().add(newItem);\r
338          * </pre>\r
339          * \r
340          * \r
341          * <p>\r
342          * Objects of the following type(s) are allowed in the list\r
343          * {@link QueryVnfNotification.Outputs.Entry }\r
344          * \r
345          * \r
346          */\r
347         public List<QueryVnfNotification.Outputs.Entry> getEntry() {\r
348             if (entry == null) {\r
349                 entry = new ArrayList<QueryVnfNotification.Outputs.Entry>();\r
350             }\r
351             return this.entry;\r
352         }\r
353         \r
354         // Not a generated method\r
355         public String toString() {\r
356                 StringBuilder out = new StringBuilder();\r
357                 out.append("<outputs>\n");\r
358                 if (entry != null) {\r
359                         for (Entry e : entry) {\r
360                                 out.append(e.toString());\r
361                                 out.append('\n');\r
362                         }\r
363                 }\r
364                 out.append("</outputs>");\r
365                 return out.toString();\r
366         }\r
367 \r
368 \r
369         /**\r
370          * <p>Java class for anonymous complex type.\r
371          * \r
372          * <p>The following schema fragment specifies the expected content contained within this class.\r
373          * \r
374          * <pre>\r
375          * &lt;complexType>\r
376          *   &lt;complexContent>\r
377          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
378          *       &lt;sequence>\r
379          *         &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
380          *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
381          *       &lt;/sequence>\r
382          *     &lt;/restriction>\r
383          *   &lt;/complexContent>\r
384          * &lt;/complexType>\r
385          * </pre>\r
386          * \r
387          * \r
388          */\r
389         @XmlAccessorType(XmlAccessType.FIELD)\r
390         @XmlType(name = "", propOrder = {\r
391             "key",\r
392             "value"\r
393         })\r
394         public static class Entry {\r
395 \r
396             protected String key;\r
397             protected String value;\r
398 \r
399             /**\r
400              * Gets the value of the key property.\r
401              * \r
402              * @return\r
403              *     possible object is\r
404              *     {@link String }\r
405              *     \r
406              */\r
407             public String getKey() {\r
408                 return key;\r
409             }\r
410 \r
411             /**\r
412              * Sets the value of the key property.\r
413              * \r
414              * @param value\r
415              *     allowed object is\r
416              *     {@link String }\r
417              *     \r
418              */\r
419             public void setKey(String value) {\r
420                 this.key = value;\r
421             }\r
422 \r
423             /**\r
424              * Gets the value of the value property.\r
425              * \r
426              * @return\r
427              *     possible object is\r
428              *     {@link String }\r
429              *     \r
430              */\r
431             public String getValue() {\r
432                 return value;\r
433             }\r
434 \r
435             /**\r
436              * Sets the value of the value property.\r
437              * \r
438              * @param value\r
439              *     allowed object is\r
440              *     {@link String }\r
441              *     \r
442              */\r
443             public void setValue(String value) {\r
444                 this.value = value;\r
445             }\r
446             \r
447             // Not a generated method\r
448             public String toString() {\r
449                 String entry = "";\r
450                         entry =\r
451                "<entry>"+ '\n' +\r
452                "   <key>"+key+"</key>" + '\n' +\r
453                "   <value>"+value+"</value>" + '\n' +\r
454                "</entry>";\r
455                 return entry; \r
456             }\r
457 \r
458         }\r
459 \r
460     }\r
461     \r
462  // Not a generated method\r
463         public String toString() {\r
464         String queryVnfNotification = "";\r
465         if (exception==null) {\r
466                 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +\r
467                                        "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +\r
468                                        "   <messageId>"+messageId+"</messageId>" + '\n' +\r
469                                        "   <completed>"+completed+"</completed>" + '\n' +\r
470                                        "   <vnfExists>"+vnfExists+"</vnfExists>" + '\n' +\r
471                                        "   <vnfId>"+vnfId+"</vnfId>" + '\n' +\r
472                                        "   <status>"+status+"</status>" + '\n' +\r
473                                        (outputs == null ? "" : outputs.toString() + '\n') +                                           \r
474                                        "</ns2:queryVnfNotification>";\r
475         } else {\r
476                 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +\r
477                                        "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +\r
478                                        "   <messageId>"+messageId+"</messageId>" + '\n' +\r
479                                        "   <completed>"+completed+"</completed>" + '\n' +\r
480                                        (outputs == null ? "" : outputs.toString() + '\n') +\r
481                                    "   <exception>"+exception+"</exception>" + '\n' +\r
482                                    "   <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +\r
483                                        "</ns2:queryVnfNotification>";\r
484         }\r
485         return queryVnfNotification;\r
486         }    \r
487 \r
488 }\r