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;
31 import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.CreateVnfNotification.Outputs.Entry;
35 * <p>Java class for queryVnfNotification complex type.
37 * <p>The following schema fragment specifies the expected content contained within this class.
40 * <complexType name="queryVnfNotification">
42 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
45 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
46 * <element name="exception" type="{http://com.att.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
47 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48 * <element name="vnfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
49 * <element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50 * <element name="status" type="{http://com.att.mso/vnfNotify}vnfStatus" minOccurs="0"/>
51 * <element name="outputs" minOccurs="0">
54 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
56 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
59 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
61 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
62 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
65 * </complexContent>
70 * </complexContent>
75 * </complexContent>
81 @XmlAccessorType(XmlAccessType.FIELD)
82 @XmlType(name = "queryVnfNotification1", propOrder = {
92 public class QueryVnfNotification {
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;
105 * Gets the value of the messageId property.
112 public String getMessageId() {
117 * Sets the value of the messageId property.
124 public void setMessageId(String value) {
125 this.messageId = value;
129 * Gets the value of the completed property.
132 public boolean isCompleted() {
137 * Sets the value of the completed property.
140 public void setCompleted(boolean value) {
141 this.completed = value;
145 * Gets the value of the exception property.
149 * {@link MsoExceptionCategory }
152 public MsoExceptionCategory getException() {
157 * Sets the value of the exception property.
161 * {@link MsoExceptionCategory }
164 public void setException(MsoExceptionCategory value) {
165 this.exception = value;
169 * Gets the value of the errorMessage property.
176 public String getErrorMessage() {
181 * Sets the value of the errorMessage property.
188 public void setErrorMessage(String value) {
189 this.errorMessage = value;
193 * Gets the value of the vnfExists property.
200 public Boolean isVnfExists() {
205 * Sets the value of the vnfExists property.
212 public void setVnfExists(Boolean value) {
213 this.vnfExists = value;
217 * Gets the value of the vnfId property.
224 public String getVnfId() {
229 * Sets the value of the vnfId property.
236 public void setVnfId(String value) {
241 * Gets the value of the status property.
248 public VnfStatus getStatus() {
253 * Sets the value of the status property.
260 public void setStatus(VnfStatus value) {
265 * Gets the value of the outputs property.
269 * {@link QueryVnfNotification.Outputs }
272 public QueryVnfNotification.Outputs getOutputs() {
277 * Sets the value of the outputs property.
281 * {@link QueryVnfNotification.Outputs }
284 public void setOutputs(QueryVnfNotification.Outputs value) {
285 this.outputs = value;
290 * <p>Java class for anonymous complex type.
292 * <p>The following schema fragment specifies the expected content contained within this class.
296 * <complexContent>
297 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
299 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
301 * <complexContent>
302 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
304 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
305 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
308 * </complexContent>
313 * </complexContent>
319 @XmlAccessorType(XmlAccessType.FIELD)
320 @XmlType(name = "", propOrder = {
323 public static class Outputs {
325 protected List<QueryVnfNotification.Outputs.Entry> entry;
328 * Gets the value of the entry property.
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.
337 * For example, to add a new item, do as follows:
339 * getEntry().add(newItem);
344 * Objects of the following type(s) are allowed in the list
345 * {@link QueryVnfNotification.Outputs.Entry }
349 public List<QueryVnfNotification.Outputs.Entry> getEntry() {
351 entry = new ArrayList<QueryVnfNotification.Outputs.Entry>();
356 // Not a generated method
357 public String toString() {
358 StringBuilder out = new StringBuilder();
359 out.append("<outputs>\n");
361 for (Entry e : entry) {
362 out.append(e.toString());
366 out.append("</outputs>");
367 return out.toString();
372 * <p>Java class for anonymous complex type.
374 * <p>The following schema fragment specifies the expected content contained within this class.
378 * <complexContent>
379 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
381 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
382 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
385 * </complexContent>
391 @XmlAccessorType(XmlAccessType.FIELD)
392 @XmlType(name = "", propOrder = {
396 public static class Entry {
398 protected String key;
399 protected String value;
402 * Gets the value of the key property.
409 public String getKey() {
414 * Sets the value of the key property.
421 public void setKey(String value) {
426 * Gets the value of the value property.
433 public String getValue() {
438 * Sets the value of the value property.
445 public void setValue(String value) {
449 // Not a generated method
450 public String toString() {
454 " <key>"+key+"</key>" + '\n' +
455 " <value>"+value+"</value>" + '\n' +
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>";
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>";
487 return queryVnfNotification;