9ca53a87794fe76bc40f2b2b5b9519e186abe4b0
[so.git] / bpmn / MSOGammaBPMN / src / main / java / com / att / domain2 / workflow / vnf / async / adapter / callback / wsdl / v1 / DeleteVnfNotification.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.io.StringWriter;
24
25 import javax.xml.bind.JAXBContext;
26 import javax.xml.bind.JAXBException;
27 import javax.xml.bind.Marshaller;
28 import javax.xml.bind.annotation.XmlAccessType;
29 import javax.xml.bind.annotation.XmlAccessorType;
30 import javax.xml.bind.annotation.XmlElement;
31 import javax.xml.bind.annotation.XmlType;
32
33 import com.att.domain2.workflow.sdnc.adapter.schema.v1.SDNCAdapterCallbackRequest;
34
35
36 /**
37  * <p>Java class for deleteVnfNotification complex type.
38  * 
39  * <p>The following schema fragment specifies the expected content contained within this class.
40  * 
41  * <pre>
42  * &lt;complexType name="deleteVnfNotification">
43  *   &lt;complexContent>
44  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45  *       &lt;sequence>
46  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
47  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
48  *         &lt;element name="exception" type="{http://com.att.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
49  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50  *       &lt;/sequence>
51  *     &lt;/restriction>
52  *   &lt;/complexContent>
53  * &lt;/complexType>
54  * </pre>
55  * 
56  * 
57  */
58 @XmlAccessorType(XmlAccessType.FIELD)
59 @XmlType(name = "deleteVnfNotification1", propOrder = {
60     "messageId",
61     "completed",
62     "exception",
63     "errorMessage"
64 })
65 public class DeleteVnfNotification {
66
67     @XmlElement(required = true)
68     protected String messageId;
69     protected boolean completed;
70     protected MsoExceptionCategory exception;
71     protected String errorMessage;
72
73     /**
74      * Gets the value of the messageId property.
75      * 
76      * @return
77      *     possible object is
78      *     {@link String }
79      *     
80      */
81     public String getMessageId() {
82         return messageId;
83     }
84
85     /**
86      * Sets the value of the messageId property.
87      * 
88      * @param value
89      *     allowed object is
90      *     {@link String }
91      *     
92      */
93     public void setMessageId(String value) {
94         this.messageId = value;
95     }
96
97     /**
98      * Gets the value of the completed property.
99      * 
100      */
101     public boolean isCompleted() {
102         return completed;
103     }
104
105     /**
106      * Sets the value of the completed property.
107      * 
108      */
109     public void setCompleted(boolean value) {
110         this.completed = value;
111     }
112
113     /**
114      * Gets the value of the exception property.
115      * 
116      * @return
117      *     possible object is
118      *     {@link MsoExceptionCategory }
119      *     
120      */
121     public MsoExceptionCategory getException() {
122         return exception;
123     }
124
125     /**
126      * Sets the value of the exception property.
127      * 
128      * @param value
129      *     allowed object is
130      *     {@link MsoExceptionCategory }
131      *     
132      */
133     public void setException(MsoExceptionCategory value) {
134         this.exception = value;
135     }
136
137     /**
138      * Gets the value of the errorMessage property.
139      * 
140      * @return
141      *     possible object is
142      *     {@link String }
143      *     
144      */
145     public String getErrorMessage() {
146         return errorMessage;
147     }
148
149     /**
150      * Sets the value of the errorMessage property.
151      * 
152      * @param value
153      *     allowed object is
154      *     {@link String }
155      *     
156      */
157     public void setErrorMessage(String value) {
158         this.errorMessage = value;
159     }
160
161     /**
162      * Overrides toString() method 
163      * @return String type (deleteVnfNotification)
164      */
165  
166     
167         public String toString() {
168         String deleteVnfNotification = "";
169         if (exception==null) {
170                 deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://com.att.mso/vnfNotify\"" + '\n' +
171                                        "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
172                                        "   <messageId>"+messageId+"</messageId>" + '\n' +
173                                        "   <completed>"+completed+"</completed>" + '\n' +
174                                        "</ns2:deleteVnfNotification>";
175         } else {
176                 deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://com.att.mso/vnfNotify\"" + '\n' +
177                                        "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
178                                        "   <messageId>"+messageId+"</messageId>" + '\n' +
179                                        "   <completed>"+completed+"</completed>" + '\n' +
180                                    "   <exception>"+exception+"</exception>" + '\n' +
181                                    "   <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
182                                        "</ns2:deleteVnfNotification>";
183         }
184         return deleteVnfNotification;
185         }    
186
187 /*      
188         public String toString() {
189                 StringWriter writer = new StringWriter();
190                 try {
191                         JAXBContext context = JAXBContext
192                                         .newInstance(DeleteVnfNotification.class);
193                         Marshaller m = context.createMarshaller();
194                         m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
195                         m.marshal(this, writer);
196                         //System.out.println("toString() - " + writer.getBuffer().toString());                  
197                         return writer.getBuffer().toString();
198                 } catch (JAXBException e) {
199                         //System.out.println("JAXBException - " + e.getStackTrace());                   
200                         return "";
201                 }
202         }    
203 */      
204         
205 }