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 createNetworkNotification complex type.
38 * The following schema fragment specifies the expected content contained within this class.
41 * <complexType name="createNetworkNotification">
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="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50 * <element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
51 * <element name="subnetIdMap" 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>
73 * <element name="rollback" type="{http://org.onap.so/networkNotify}networkRollback" minOccurs="0"/>
76 * </complexContent>
82 @XmlAccessorType(XmlAccessType.FIELD)
83 @XmlType(name = "createNetworkNotification", propOrder = {"messageId", "completed", "exception", "errorMessage",
84 "networkId", "neutronNetworkId", "subnetIdMap", "rollback"})
85 public class CreateNetworkNotification {
87 @XmlElement(required = true)
88 protected String messageId;
89 protected boolean completed;
90 protected MsoExceptionCategory exception;
91 protected String errorMessage;
92 protected String networkId;
93 protected String neutronNetworkId;
94 protected CreateNetworkNotification.SubnetIdMap subnetIdMap;
95 protected NetworkRollback rollback;
98 * Gets the value of the messageId property.
100 * @return possible object is {@link String }
103 public String getMessageId() {
108 * Sets the value of the messageId property.
110 * @param value allowed object is {@link String }
113 public void setMessageId(String value) {
114 this.messageId = value;
118 * Gets the value of the completed property.
121 public boolean isCompleted() {
126 * Sets the value of the completed property.
129 public void setCompleted(boolean value) {
130 this.completed = value;
134 * Gets the value of the exception property.
136 * @return possible object is {@link MsoExceptionCategory }
139 public MsoExceptionCategory getException() {
144 * Sets the value of the exception property.
146 * @param value allowed object is {@link MsoExceptionCategory }
149 public void setException(MsoExceptionCategory value) {
150 this.exception = value;
154 * Gets the value of the errorMessage property.
156 * @return possible object is {@link String }
159 public String getErrorMessage() {
164 * Sets the value of the errorMessage property.
166 * @param value allowed object is {@link String }
169 public void setErrorMessage(String value) {
170 this.errorMessage = value;
174 * Gets the value of the networkId property.
176 * @return possible object is {@link String }
179 public String getNetworkId() {
184 * Sets the value of the networkId property.
186 * @param value allowed object is {@link String }
189 public void setNetworkId(String value) {
190 this.networkId = value;
194 * Gets the value of the neutronNetworkId property.
196 * @return possible object is {@link String }
199 public String getNeutronNetworkId() {
200 return neutronNetworkId;
204 * Sets the value of the neutronNetworkId property.
206 * @param value allowed object is {@link String }
209 public void setNeutronNetworkId(String value) {
210 this.neutronNetworkId = value;
214 * Gets the value of the subnetIdMap property.
216 * @return possible object is {@link CreateNetworkNotification.SubnetIdMap }
219 public CreateNetworkNotification.SubnetIdMap getSubnetIdMap() {
224 * Sets the value of the subnetIdMap property.
226 * @param value allowed object is {@link CreateNetworkNotification.SubnetIdMap }
229 public void setSubnetIdMap(CreateNetworkNotification.SubnetIdMap value) {
230 this.subnetIdMap = value;
234 * Gets the value of the rollback property.
236 * @return possible object is {@link NetworkRollback }
239 public NetworkRollback getRollback() {
244 * Sets the value of the rollback property.
246 * @param value allowed object is {@link NetworkRollback }
249 public void setRollback(NetworkRollback value) {
250 this.rollback = value;
256 * Java class for anonymous complex type.
259 * The following schema fragment specifies the expected content contained within this class.
263 * <complexContent>
264 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
266 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
268 * <complexContent>
269 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
271 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
272 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
275 * </complexContent>
280 * </complexContent>
286 @XmlAccessorType(XmlAccessType.FIELD)
287 @XmlType(name = "", propOrder = {"entry"})
288 public static class SubnetIdMap {
290 protected List<CreateNetworkNotification.SubnetIdMap.Entry> entry;
293 * Gets the value of the entry property.
296 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
297 * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
298 * method for the entry property.
301 * For example, to add a new item, do as follows:
304 * getEntry().add(newItem);
309 * Objects of the following type(s) are allowed in the list {@link CreateNetworkNotification.SubnetIdMap.Entry }
313 public List<CreateNetworkNotification.SubnetIdMap.Entry> getEntry() {
315 entry = new ArrayList<>();
323 * Java class for anonymous complex type.
326 * The following schema fragment specifies the expected content contained within this class.
330 * <complexContent>
331 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
333 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
334 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
337 * </complexContent>
343 @XmlAccessorType(XmlAccessType.FIELD)
344 @XmlType(name = "", propOrder = {"key", "value"})
345 public static class Entry {
347 protected String key;
348 protected String value;
351 * Gets the value of the key property.
353 * @return possible object is {@link String }
356 public String getKey() {
361 * Sets the value of the key property.
363 * @param value allowed object is {@link String }
366 public void setKey(String value) {
371 * Gets the value of the value property.
373 * @return possible object is {@link String }
376 public String getValue() {
381 * Sets the value of the value property.
383 * @param value allowed object is {@link String }
386 public void setValue(String value) {