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