2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Modifications Copyright (C) 2018 IBM.
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.adapters.network.async.client;
25 import java.util.ArrayList;
26 import java.util.List;
27 import javax.xml.bind.annotation.XmlAccessType;
28 import javax.xml.bind.annotation.XmlAccessorType;
29 import javax.xml.bind.annotation.XmlElement;
30 import javax.xml.bind.annotation.XmlType;
35 * Java class for updateNetworkNotification complex type.
38 * The following schema fragment specifies the expected content contained within this class.
41 * <complexType name="updateNetworkNotification">
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
46 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
47 * <element name="exception" type="{http://org.onap.so/networkNotify}msoExceptionCategory" minOccurs="0"/>
48 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49 * <element name="subnetIdMap" minOccurs="0">
52 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
57 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
60 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
63 * </complexContent>
68 * </complexContent>
71 * <element name="rollback" type="{http://org.onap.so/networkNotify}networkRollback" minOccurs="0"/>
74 * </complexContent>
80 @XmlAccessorType(XmlAccessType.FIELD)
81 @XmlType(name = "updateNetworkNotification",
82 propOrder = {"messageId", "completed", "exception", "errorMessage", "subnetIdMap", "rollback"})
83 public class UpdateNetworkNotification {
85 @XmlElement(required = true)
86 protected String messageId;
87 protected boolean completed;
88 protected MsoExceptionCategory exception;
89 protected String errorMessage;
90 protected UpdateNetworkNotification.SubnetIdMap subnetIdMap;
91 protected NetworkRollback rollback;
94 * Gets the value of the messageId property.
96 * @return possible object is {@link String }
99 public String getMessageId() {
104 * Sets the value of the messageId property.
106 * @param value allowed object is {@link String }
109 public void setMessageId(String value) {
110 this.messageId = value;
114 * Gets the value of the completed property.
117 public boolean isCompleted() {
122 * Sets the value of the completed property.
125 public void setCompleted(boolean value) {
126 this.completed = value;
130 * Gets the value of the exception property.
132 * @return possible object is {@link MsoExceptionCategory }
135 public MsoExceptionCategory getException() {
140 * Sets the value of the exception property.
142 * @param value allowed object is {@link MsoExceptionCategory }
145 public void setException(MsoExceptionCategory value) {
146 this.exception = value;
150 * Gets the value of the errorMessage property.
152 * @return possible object is {@link String }
155 public String getErrorMessage() {
160 * Sets the value of the errorMessage property.
162 * @param value allowed object is {@link String }
165 public void setErrorMessage(String value) {
166 this.errorMessage = value;
170 * Gets the value of the subnetIdMap property.
172 * @return possible object is {@link UpdateNetworkNotification.SubnetIdMap }
175 public UpdateNetworkNotification.SubnetIdMap getSubnetIdMap() {
180 * Sets the value of the subnetIdMap property.
182 * @param value allowed object is {@link UpdateNetworkNotification.SubnetIdMap }
185 public void setSubnetIdMap(UpdateNetworkNotification.SubnetIdMap value) {
186 this.subnetIdMap = value;
190 * Gets the value of the rollback property.
192 * @return possible object is {@link NetworkRollback }
195 public NetworkRollback getRollback() {
200 * Sets the value of the rollback property.
202 * @param value allowed object is {@link NetworkRollback }
205 public void setRollback(NetworkRollback value) {
206 this.rollback = value;
212 * Java class for anonymous complex type.
215 * The following schema fragment specifies the expected content contained within this class.
219 * <complexContent>
220 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
222 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
224 * <complexContent>
225 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
227 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
228 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
231 * </complexContent>
236 * </complexContent>
242 @XmlAccessorType(XmlAccessType.FIELD)
243 @XmlType(name = "", propOrder = {"entry"})
244 public static class SubnetIdMap {
246 protected List<UpdateNetworkNotification.SubnetIdMap.Entry> entry;
249 * Gets the value of the entry property.
252 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
253 * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
254 * method for the entry property.
257 * For example, to add a new item, do as follows:
260 * getEntry().add(newItem);
265 * Objects of the following type(s) are allowed in the list {@link UpdateNetworkNotification.SubnetIdMap.Entry }
269 public List<UpdateNetworkNotification.SubnetIdMap.Entry> getEntry() {
271 entry = new ArrayList<>();
279 * Java class for anonymous complex type.
282 * The following schema fragment specifies the expected content contained within this class.
286 * <complexContent>
287 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
289 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
290 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
293 * </complexContent>
299 @XmlAccessorType(XmlAccessType.FIELD)
300 @XmlType(name = "", propOrder = {"key", "value"})
301 public static class Entry {
303 protected String key;
304 protected String value;
307 * Gets the value of the key property.
309 * @return possible object is {@link String }
312 public String getKey() {
317 * Sets the value of the key property.
319 * @param value allowed object is {@link String }
322 public void setKey(String value) {
327 * Gets the value of the value property.
329 * @return possible object is {@link String }
332 public String getValue() {
337 * Sets the value of the value property.
339 * @param value allowed object is {@link String }
342 public void setValue(String value) {