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 org.onap.so.adapters.vnf.async.client;
23 import java.util.ArrayList;
24 import java.util.List;
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 updateVnfNotification complex type.
36 * The following schema fragment specifies the expected content contained within this class.
39 * <complexType name="updateVnfNotification">
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"/>
47 * <element name="outputs" minOccurs="0">
50 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
52 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
55 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
57 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
58 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
61 * </complexContent>
66 * </complexContent>
69 * <element name="rollback" type="{http://org.onap.so/vnfNotify}vnfRollback" minOccurs="0"/>
72 * </complexContent>
78 @XmlAccessorType(XmlAccessType.FIELD)
79 @XmlType(name = "updateVnfNotification",
80 propOrder = {"messageId", "completed", "exception", "errorMessage", "outputs", "rollback"})
81 public class UpdateVnfNotification {
83 @XmlElement(required = true)
84 protected String messageId;
85 protected boolean completed;
86 protected MsoExceptionCategory exception;
87 protected String errorMessage;
88 protected UpdateVnfNotification.Outputs outputs;
89 protected VnfRollback rollback;
92 * Gets the value of the messageId property.
94 * @return possible object is {@link String }
97 public String getMessageId() {
102 * Sets the value of the messageId property.
104 * @param value allowed object is {@link String }
107 public void setMessageId(String value) {
108 this.messageId = value;
112 * Gets the value of the completed property.
115 public boolean isCompleted() {
120 * Sets the value of the completed property.
123 public void setCompleted(boolean value) {
124 this.completed = value;
128 * Gets the value of the exception property.
130 * @return possible object is {@link MsoExceptionCategory }
133 public MsoExceptionCategory getException() {
138 * Sets the value of the exception property.
140 * @param value allowed object is {@link MsoExceptionCategory }
143 public void setException(MsoExceptionCategory value) {
144 this.exception = value;
148 * Gets the value of the errorMessage property.
150 * @return possible object is {@link String }
153 public String getErrorMessage() {
158 * Sets the value of the errorMessage property.
160 * @param value allowed object is {@link String }
163 public void setErrorMessage(String value) {
164 this.errorMessage = value;
168 * Gets the value of the outputs property.
170 * @return possible object is {@link UpdateVnfNotification.Outputs }
173 public UpdateVnfNotification.Outputs getOutputs() {
178 * Sets the value of the outputs property.
180 * @param value allowed object is {@link UpdateVnfNotification.Outputs }
183 public void setOutputs(UpdateVnfNotification.Outputs value) {
184 this.outputs = value;
188 * Gets the value of the rollback property.
190 * @return possible object is {@link VnfRollback }
193 public VnfRollback getRollback() {
198 * Sets the value of the rollback property.
200 * @param value allowed object is {@link VnfRollback }
203 public void setRollback(VnfRollback value) {
204 this.rollback = value;
210 * Java class for anonymous complex type.
213 * The following schema fragment specifies the expected content contained within this class.
217 * <complexContent>
218 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
220 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
222 * <complexContent>
223 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
225 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
226 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
229 * </complexContent>
234 * </complexContent>
240 @XmlAccessorType(XmlAccessType.FIELD)
241 @XmlType(name = "", propOrder = {"entry"})
242 public static class Outputs {
244 protected List<UpdateVnfNotification.Outputs.Entry> entry;
247 * Gets the value of the entry property.
250 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
251 * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
252 * method for the entry property.
255 * For example, to add a new item, do as follows:
258 * getEntry().add(newItem);
263 * Objects of the following type(s) are allowed in the list {@link UpdateVnfNotification.Outputs.Entry }
267 public List<UpdateVnfNotification.Outputs.Entry> getEntry() {
269 entry = new ArrayList<UpdateVnfNotification.Outputs.Entry>();
277 * Java class for anonymous complex type.
280 * The following schema fragment specifies the expected content contained within this class.
284 * <complexContent>
285 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
287 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
288 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
291 * </complexContent>
297 @XmlAccessorType(XmlAccessType.FIELD)
298 @XmlType(name = "", propOrder = {"key", "value"})
299 public static class Entry {
301 protected String key;
302 protected String value;
305 * Gets the value of the key property.
307 * @return possible object is {@link String }
310 public String getKey() {
315 * Sets the value of the key property.
317 * @param value allowed object is {@link String }
320 public void setKey(String value) {
325 * Gets the value of the value property.
327 * @return possible object is {@link String }
330 public String getValue() {
335 * Sets the value of the value property.
337 * @param value allowed object is {@link String }
340 public void setValue(String value) {