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