2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.bpmn.common.adapter.vnf;
\r
23 import java.util.ArrayList;
\r
24 import java.util.List;
\r
26 import javax.xml.bind.annotation.XmlAccessType;
\r
27 import javax.xml.bind.annotation.XmlAccessorType;
\r
28 import javax.xml.bind.annotation.XmlElement;
\r
29 import javax.xml.bind.annotation.XmlType;
\r
33 * <p>Java class for queryVnfNotification complex type.
\r
35 * <p>The following schema fragment specifies the expected content contained within this class.
\r
38 * <complexType name="queryVnfNotification">
\r
39 * <complexContent>
\r
40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
42 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
\r
43 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
\r
44 * <element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
\r
45 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
46 * <element name="vnfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
\r
47 * <element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
48 * <element name="status" type="{http://org.openecomp.mso/vnfNotify}vnfStatus" minOccurs="0"/>
\r
49 * <element name="outputs" minOccurs="0">
\r
51 * <complexContent>
\r
52 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
54 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
\r
56 * <complexContent>
\r
57 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
59 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
60 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
63 * </complexContent>
\r
68 * </complexContent>
\r
73 * </complexContent>
\r
79 @XmlAccessorType(XmlAccessType.FIELD)
\r
80 @XmlType(name = "queryVnfNotification1", propOrder = {
\r
90 public class QueryVnfNotification {
\r
92 @XmlElement(required = true)
\r
93 protected String messageId;
\r
94 protected boolean completed;
\r
95 protected MsoExceptionCategory exception;
\r
96 protected String errorMessage;
\r
97 protected Boolean vnfExists;
\r
98 protected String vnfId;
\r
99 protected VnfStatus status;
\r
100 protected QueryVnfNotification.Outputs outputs;
\r
103 * Gets the value of the messageId property.
\r
106 * possible object is
\r
110 public String getMessageId() {
\r
115 * Sets the value of the messageId property.
\r
118 * allowed object is
\r
122 public void setMessageId(String value) {
\r
123 this.messageId = value;
\r
127 * Gets the value of the completed property.
\r
130 public boolean isCompleted() {
\r
135 * Sets the value of the completed property.
\r
138 public void setCompleted(boolean value) {
\r
139 this.completed = value;
\r
143 * Gets the value of the exception property.
\r
146 * possible object is
\r
147 * {@link MsoExceptionCategory }
\r
150 public MsoExceptionCategory getException() {
\r
155 * Sets the value of the exception property.
\r
158 * allowed object is
\r
159 * {@link MsoExceptionCategory }
\r
162 public void setException(MsoExceptionCategory value) {
\r
163 this.exception = value;
\r
167 * Gets the value of the errorMessage property.
\r
170 * possible object is
\r
174 public String getErrorMessage() {
\r
175 return errorMessage;
\r
179 * Sets the value of the errorMessage property.
\r
182 * allowed object is
\r
186 public void setErrorMessage(String value) {
\r
187 this.errorMessage = value;
\r
191 * Gets the value of the vnfExists property.
\r
194 * possible object is
\r
198 public Boolean isVnfExists() {
\r
203 * Sets the value of the vnfExists property.
\r
206 * allowed object is
\r
210 public void setVnfExists(Boolean value) {
\r
211 this.vnfExists = value;
\r
215 * Gets the value of the vnfId property.
\r
218 * possible object is
\r
222 public String getVnfId() {
\r
227 * Sets the value of the vnfId property.
\r
230 * allowed object is
\r
234 public void setVnfId(String value) {
\r
235 this.vnfId = value;
\r
239 * Gets the value of the status property.
\r
242 * possible object is
\r
243 * {@link VnfStatus }
\r
246 public VnfStatus getStatus() {
\r
251 * Sets the value of the status property.
\r
254 * allowed object is
\r
255 * {@link VnfStatus }
\r
258 public void setStatus(VnfStatus value) {
\r
259 this.status = value;
\r
263 * Gets the value of the outputs property.
\r
266 * possible object is
\r
267 * {@link QueryVnfNotification.Outputs }
\r
270 public QueryVnfNotification.Outputs getOutputs() {
\r
275 * Sets the value of the outputs property.
\r
278 * allowed object is
\r
279 * {@link QueryVnfNotification.Outputs }
\r
282 public void setOutputs(QueryVnfNotification.Outputs value) {
\r
283 this.outputs = value;
\r
288 * <p>Java class for anonymous complex type.
\r
290 * <p>The following schema fragment specifies the expected content contained within this class.
\r
294 * <complexContent>
\r
295 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
297 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
\r
299 * <complexContent>
\r
300 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
302 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
303 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
305 * </restriction>
\r
306 * </complexContent>
\r
307 * </complexType>
\r
310 * </restriction>
\r
311 * </complexContent>
\r
312 * </complexType>
\r
317 @XmlAccessorType(XmlAccessType.FIELD)
\r
318 @XmlType(name = "", propOrder = {
\r
321 public static class Outputs {
\r
323 protected List<QueryVnfNotification.Outputs.Entry> entry;
\r
326 * Gets the value of the entry property.
\r
329 * This accessor method returns a reference to the live list,
\r
330 * not a snapshot. Therefore any modification you make to the
\r
331 * returned list will be present inside the JAXB object.
\r
332 * This is why there is not a <CODE>set</CODE> method for the entry property.
\r
335 * For example, to add a new item, do as follows:
\r
337 * getEntry().add(newItem);
\r
342 * Objects of the following type(s) are allowed in the list
\r
343 * {@link QueryVnfNotification.Outputs.Entry }
\r
347 public List<QueryVnfNotification.Outputs.Entry> getEntry() {
\r
348 if (entry == null) {
\r
349 entry = new ArrayList<>();
\r
354 // Not a generated method
\r
355 public String toString() {
\r
356 StringBuilder out = new StringBuilder();
\r
357 out.append("<outputs>\n");
\r
358 if (entry != null) {
\r
359 for (Entry e : entry) {
\r
360 out.append(e.toString());
\r
364 out.append("</outputs>");
\r
365 return out.toString();
\r
370 * <p>Java class for anonymous complex type.
\r
372 * <p>The following schema fragment specifies the expected content contained within this class.
\r
376 * <complexContent>
\r
377 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
379 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
380 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
382 * </restriction>
\r
383 * </complexContent>
\r
384 * </complexType>
\r
389 @XmlAccessorType(XmlAccessType.FIELD)
\r
390 @XmlType(name = "", propOrder = {
\r
394 public static class Entry {
\r
396 protected String key;
\r
397 protected String value;
\r
400 * Gets the value of the key property.
\r
403 * possible object is
\r
407 public String getKey() {
\r
412 * Sets the value of the key property.
\r
415 * allowed object is
\r
419 public void setKey(String value) {
\r
424 * Gets the value of the value property.
\r
427 * possible object is
\r
431 public String getValue() {
\r
436 * Sets the value of the value property.
\r
439 * allowed object is
\r
443 public void setValue(String value) {
\r
444 this.value = value;
\r
447 // Not a generated method
\r
448 public String toString() {
\r
452 " <key>"+key+"</key>" + '\n' +
\r
453 " <value>"+value+"</value>" + '\n' +
\r
462 // Not a generated method
\r
463 public String toString() {
\r
464 String queryVnfNotification = "";
\r
465 if (exception==null) {
\r
466 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
\r
467 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
\r
468 " <messageId>"+messageId+"</messageId>" + '\n' +
\r
469 " <completed>"+completed+"</completed>" + '\n' +
\r
470 " <vnfExists>"+vnfExists+"</vnfExists>" + '\n' +
\r
471 " <vnfId>"+vnfId+"</vnfId>" + '\n' +
\r
472 " <status>"+status+"</status>" + '\n' +
\r
473 (outputs == null ? "" : outputs.toString() + '\n') +
\r
474 "</ns2:queryVnfNotification>";
\r
476 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
\r
477 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
\r
478 " <messageId>"+messageId+"</messageId>" + '\n' +
\r
479 " <completed>"+completed+"</completed>" + '\n' +
\r
480 (outputs == null ? "" : outputs.toString() + '\n') +
\r
481 " <exception>"+exception+"</exception>" + '\n' +
\r
482 " <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
\r
483 "</ns2:queryVnfNotification>";
\r
485 return queryVnfNotification;
\r