e0760b5d4ad99aedd1d3fb7415088c1197651690
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Modifications Copyright (c) 2019 Samsung
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.so.bpmn.common.adapter.vnf;
24
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 deleteVnfNotification 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="deleteVnfNotification">
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;/sequence>
48  *     &lt;/restriction>
49  *   &lt;/complexContent>
50  * &lt;/complexType>
51  * </pre>
52  * 
53  * 
54  */
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "deleteVnfNotification1", propOrder = {"messageId", "completed", "exception", "errorMessage"})
57 public class DeleteVnfNotification {
58
59     @XmlElement(required = true)
60     protected String messageId;
61     protected boolean completed;
62     protected MsoExceptionCategory exception;
63     protected String errorMessage;
64
65     /**
66      * Gets the value of the messageId property.
67      * 
68      * @return possible object is {@link String }
69      * 
70      */
71     public String getMessageId() {
72         return messageId;
73     }
74
75     /**
76      * Sets the value of the messageId property.
77      * 
78      * @param value allowed object is {@link String }
79      * 
80      */
81     public void setMessageId(String value) {
82         this.messageId = value;
83     }
84
85     /**
86      * Gets the value of the completed property.
87      * 
88      */
89     public boolean isCompleted() {
90         return completed;
91     }
92
93     /**
94      * Sets the value of the completed property.
95      * 
96      */
97     public void setCompleted(boolean value) {
98         this.completed = value;
99     }
100
101     /**
102      * Gets the value of the exception property.
103      * 
104      * @return possible object is {@link MsoExceptionCategory }
105      * 
106      */
107     public MsoExceptionCategory getException() {
108         return exception;
109     }
110
111     /**
112      * Sets the value of the exception property.
113      * 
114      * @param value allowed object is {@link MsoExceptionCategory }
115      * 
116      */
117     public void setException(MsoExceptionCategory value) {
118         this.exception = value;
119     }
120
121     /**
122      * Gets the value of the errorMessage property.
123      * 
124      * @return possible object is {@link String }
125      * 
126      */
127     public String getErrorMessage() {
128         return errorMessage;
129     }
130
131     /**
132      * Sets the value of the errorMessage property.
133      * 
134      * @param value allowed object is {@link String }
135      * 
136      */
137     public void setErrorMessage(String value) {
138         this.errorMessage = value;
139     }
140
141     /**
142      * Overrides toString() method
143      * 
144      * @return String type (deleteVnfNotification)
145      */
146
147     @Override
148     public String toString() {
149         String deleteVnfNotification;
150         if (exception == null) {
151             deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
152                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
153                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
154                     + "</ns2:deleteVnfNotification>";
155         } else {
156             deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
157                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
158                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
159                     + "   <exception>" + exception + "</exception>" + '\n' + "   <errorMessage>" + errorMessage
160                     + "</errorMessage>" + '\n' + "</ns2:deleteVnfNotification>";
161         }
162         return deleteVnfNotification;
163     }
164
165 }