2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1;
23 import java.util.ArrayList;
24 import java.util.List;
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;
33 * <p>Java class for updateVnfNotification complex type.
35 * <p>The following schema fragment specifies the expected content contained within this class.
38 * <complexType name="updateVnfNotification">
40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
43 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
44 * <element name="exception" type="{http://com.att.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
45 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
46 * <element name="outputs" minOccurs="0">
49 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
51 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
54 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
56 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
57 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
60 * </complexContent>
65 * </complexContent>
68 * <element name="rollback" type="{http://com.att.mso/vnfNotify}vnfRollback" minOccurs="0"/>
71 * </complexContent>
77 @XmlAccessorType(XmlAccessType.FIELD)
78 @XmlType(name = "updateVnfNotification1", propOrder = {
86 public class UpdateVnfNotification {
88 @XmlElement(required = true)
89 protected String messageId;
90 protected boolean completed;
91 protected MsoExceptionCategory exception;
92 protected String errorMessage;
93 protected UpdateVnfNotification.Outputs outputs;
94 protected VnfRollback rollback;
97 * Gets the value of the messageId property.
104 public String getMessageId() {
109 * Sets the value of the messageId property.
116 public void setMessageId(String value) {
117 this.messageId = value;
121 * Gets the value of the completed property.
124 public boolean isCompleted() {
129 * Sets the value of the completed property.
132 public void setCompleted(boolean value) {
133 this.completed = value;
137 * Gets the value of the exception property.
141 * {@link MsoExceptionCategory }
144 public MsoExceptionCategory getException() {
149 * Sets the value of the exception property.
153 * {@link MsoExceptionCategory }
156 public void setException(MsoExceptionCategory value) {
157 this.exception = value;
161 * Gets the value of the errorMessage property.
168 public String getErrorMessage() {
173 * Sets the value of the errorMessage property.
180 public void setErrorMessage(String value) {
181 this.errorMessage = value;
185 * Gets the value of the outputs property.
189 * {@link UpdateVnfNotification.Outputs }
192 public UpdateVnfNotification.Outputs getOutputs() {
197 * Sets the value of the outputs property.
201 * {@link UpdateVnfNotification.Outputs }
204 public void setOutputs(UpdateVnfNotification.Outputs value) {
205 this.outputs = value;
209 * Gets the value of the rollback property.
213 * {@link VnfRollback }
216 public VnfRollback getRollback() {
221 * Sets the value of the rollback property.
225 * {@link VnfRollback }
228 public void setRollback(VnfRollback value) {
229 this.rollback = value;
234 * <p>Java class for anonymous complex type.
236 * <p>The following schema fragment specifies the expected content contained within this class.
240 * <complexContent>
241 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
243 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
245 * <complexContent>
246 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
248 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
249 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
252 * </complexContent>
257 * </complexContent>
263 @XmlAccessorType(XmlAccessType.FIELD)
264 @XmlType(name = "", propOrder = {
267 public static class Outputs {
269 protected List<UpdateVnfNotification.Outputs.Entry> entry;
272 * Gets the value of the entry property.
275 * This accessor method returns a reference to the live list,
276 * not a snapshot. Therefore any modification you make to the
277 * returned list will be present inside the JAXB object.
278 * This is why there is not a <CODE>set</CODE> method for the entry property.
281 * For example, to add a new item, do as follows:
283 * getEntry().add(newItem);
288 * Objects of the following type(s) are allowed in the list
289 * {@link UpdateVnfNotification.Outputs.Entry }
293 public List<UpdateVnfNotification.Outputs.Entry> getEntry() {
295 entry = new ArrayList<UpdateVnfNotification.Outputs.Entry>();
302 * <p>Java class for anonymous complex type.
304 * <p>The following schema fragment specifies the expected content contained within this class.
308 * <complexContent>
309 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
311 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
312 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
315 * </complexContent>
321 @XmlAccessorType(XmlAccessType.FIELD)
322 @XmlType(name = "", propOrder = {
326 public static class Entry {
328 protected String key;
329 protected String value;
332 * Gets the value of the key property.
339 public String getKey() {
344 * Sets the value of the key property.
351 public void setKey(String value) {
356 * Gets the value of the value property.
363 public String getValue() {
368 * Sets the value of the value property.
375 public void setValue(String value) {
379 public String toString() {
382 " <key>"+key+"</key>" + '\n' +
383 " <value>"+value+"</value>";
390 public String toString(){
391 String updateVnfNotification = "";
392 if (exception==null) {
393 updateVnfNotification = "<ns2:updateVnfNotification xmlns:ns2=\"http://com.att.mso/vnfNotify\"" + '\n' +
394 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
395 " <messageId>"+messageId+"</messageId>" + '\n' +
396 " <completed>"+completed+"</completed>" + '\n' +
397 " <rollback>"+rollback+"</rollback>" + '\n' +
398 "</ns2:updateVnfNotification>";
400 updateVnfNotification = "<ns2:updateVnfNotification xmlns:ns2=\"http://com.att.mso/vnfNotify\"" + '\n' +
401 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
402 " <messageId>"+messageId+"</messageId>" + '\n' +
403 " <completed>"+completed+"</completed>" + '\n' +
404 " <exception>"+exception+"</exception>" + '\n' +
405 " <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
406 "</ns2:updateVnfNotification>";
409 return updateVnfNotification;