2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
23 package org.onap.so.bpmn.common.adapter.vnf;
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;
33 * Java class for deleteVnfNotification complex type.
36 * The following schema fragment specifies the expected content contained within this class.
39 * <complexType name="deleteVnfNotification">
41 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
44 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
45 * <element name="exception" type="{http://org.onap.so/vnfNotify}msoExceptionCategory" minOccurs="0"/>
46 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49 * </complexContent>
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "deleteVnfNotification1", propOrder = {"messageId", "completed", "exception", "errorMessage"})
57 public class DeleteVnfNotification {
59 @XmlElement(required = true)
60 protected String messageId;
61 protected boolean completed;
62 protected MsoExceptionCategory exception;
63 protected String errorMessage;
66 * Gets the value of the messageId property.
68 * @return possible object is {@link String }
71 public String getMessageId() {
76 * Sets the value of the messageId property.
78 * @param value allowed object is {@link String }
81 public void setMessageId(String value) {
82 this.messageId = value;
86 * Gets the value of the completed property.
89 public boolean isCompleted() {
94 * Sets the value of the completed property.
97 public void setCompleted(boolean value) {
98 this.completed = value;
102 * Gets the value of the exception property.
104 * @return possible object is {@link MsoExceptionCategory }
107 public MsoExceptionCategory getException() {
112 * Sets the value of the exception property.
114 * @param value allowed object is {@link MsoExceptionCategory }
117 public void setException(MsoExceptionCategory value) {
118 this.exception = value;
122 * Gets the value of the errorMessage property.
124 * @return possible object is {@link String }
127 public String getErrorMessage() {
132 * Sets the value of the errorMessage property.
134 * @param value allowed object is {@link String }
137 public void setErrorMessage(String value) {
138 this.errorMessage = value;
142 * Overrides toString() method
144 * @return String type (deleteVnfNotification)
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>";
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>";
162 return deleteVnfNotification;