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;
28 import javax.xml.bind.annotation.XmlAccessType;
29 import javax.xml.bind.annotation.XmlAccessorType;
30 import javax.xml.bind.annotation.XmlElement;
31 import javax.xml.bind.annotation.XmlType;
35 * <p>Java class for updateNetworkNotification complex type.
37 * <p>The following schema fragment specifies the expected content contained within this class.
40 * <complexType name="updateNetworkNotification">
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://org.onap.so/networkNotify}msoExceptionCategory" minOccurs="0"/>
47 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48 * <element name="subnetIdMap" minOccurs="0">
51 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
53 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
56 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
58 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
59 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
62 * </complexContent>
67 * </complexContent>
70 * <element name="rollback" type="{http://org.onap.so/networkNotify}networkRollback" minOccurs="0"/>
73 * </complexContent>
79 @XmlAccessorType(XmlAccessType.FIELD)
80 @XmlType(name = "updateNetworkNotification", propOrder = {
88 public class UpdateNetworkNotification {
90 @XmlElement(required = true)
91 protected String messageId;
92 protected boolean completed;
93 protected MsoExceptionCategory exception;
94 protected String errorMessage;
95 protected UpdateNetworkNotification.SubnetIdMap subnetIdMap;
96 protected NetworkRollback rollback;
99 * Gets the value of the messageId property.
106 public String getMessageId() {
111 * Sets the value of the messageId property.
118 public void setMessageId(String value) {
119 this.messageId = value;
123 * Gets the value of the completed property.
126 public boolean isCompleted() {
131 * Sets the value of the completed property.
134 public void setCompleted(boolean value) {
135 this.completed = value;
139 * Gets the value of the exception property.
143 * {@link MsoExceptionCategory }
146 public MsoExceptionCategory getException() {
151 * Sets the value of the exception property.
155 * {@link MsoExceptionCategory }
158 public void setException(MsoExceptionCategory value) {
159 this.exception = value;
163 * Gets the value of the errorMessage property.
170 public String getErrorMessage() {
175 * Sets the value of the errorMessage property.
182 public void setErrorMessage(String value) {
183 this.errorMessage = value;
187 * Gets the value of the subnetIdMap property.
191 * {@link UpdateNetworkNotification.SubnetIdMap }
194 public UpdateNetworkNotification.SubnetIdMap getSubnetIdMap() {
199 * Sets the value of the subnetIdMap property.
203 * {@link UpdateNetworkNotification.SubnetIdMap }
206 public void setSubnetIdMap(UpdateNetworkNotification.SubnetIdMap value) {
207 this.subnetIdMap = value;
211 * Gets the value of the rollback property.
215 * {@link NetworkRollback }
218 public NetworkRollback getRollback() {
223 * Sets the value of the rollback property.
227 * {@link NetworkRollback }
230 public void setRollback(NetworkRollback value) {
231 this.rollback = value;
236 * <p>Java class for anonymous complex type.
238 * <p>The following schema fragment specifies the expected content contained within this class.
242 * <complexContent>
243 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
245 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
247 * <complexContent>
248 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
250 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
251 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
254 * </complexContent>
259 * </complexContent>
265 @XmlAccessorType(XmlAccessType.FIELD)
266 @XmlType(name = "", propOrder = {
269 public static class SubnetIdMap {
271 protected List<UpdateNetworkNotification.SubnetIdMap.Entry> entry;
274 * Gets the value of the entry property.
277 * This accessor method returns a reference to the live list,
278 * not a snapshot. Therefore any modification you make to the
279 * returned list will be present inside the JAXB object.
280 * This is why there is not a <CODE>set</CODE> method for the entry property.
283 * For example, to add a new item, do as follows:
285 * getEntry().add(newItem);
290 * Objects of the following type(s) are allowed in the list
291 * {@link UpdateNetworkNotification.SubnetIdMap.Entry }
295 public List<UpdateNetworkNotification.SubnetIdMap.Entry> getEntry() {
297 entry = new ArrayList<>();
304 * <p>Java class for anonymous complex type.
306 * <p>The following schema fragment specifies the expected content contained within this class.
310 * <complexContent>
311 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
313 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
314 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
317 * </complexContent>
323 @XmlAccessorType(XmlAccessType.FIELD)
324 @XmlType(name = "", propOrder = {
328 public static class Entry {
330 protected String key;
331 protected String value;
334 * Gets the value of the key property.
341 public String getKey() {
346 * Sets the value of the key property.
353 public void setKey(String value) {
358 * Gets the value of the value property.
365 public String getValue() {
370 * Sets the value of the value property.
377 public void setValue(String value) {