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 createNetworkNotification complex type.
37 * <p>The following schema fragment specifies the expected content contained within this class.
40 * <complexType name="createNetworkNotification">
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="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49 * <element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50 * <element name="subnetIdMap" minOccurs="0">
53 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
55 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
58 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
60 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
61 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
64 * </complexContent>
69 * </complexContent>
72 * <element name="rollback" type="{http://org.onap.so/networkNotify}networkRollback" minOccurs="0"/>
75 * </complexContent>
81 @XmlAccessorType(XmlAccessType.FIELD)
82 @XmlType(name = "createNetworkNotification", propOrder = {
92 public class CreateNetworkNotification {
94 @XmlElement(required = true)
95 protected String messageId;
96 protected boolean completed;
97 protected MsoExceptionCategory exception;
98 protected String errorMessage;
99 protected String networkId;
100 protected String neutronNetworkId;
101 protected CreateNetworkNotification.SubnetIdMap subnetIdMap;
102 protected NetworkRollback rollback;
105 * Gets the value of the messageId property.
112 public String getMessageId() {
117 * Sets the value of the messageId property.
124 public void setMessageId(String value) {
125 this.messageId = value;
129 * Gets the value of the completed property.
132 public boolean isCompleted() {
137 * Sets the value of the completed property.
140 public void setCompleted(boolean value) {
141 this.completed = value;
145 * Gets the value of the exception property.
149 * {@link MsoExceptionCategory }
152 public MsoExceptionCategory getException() {
157 * Sets the value of the exception property.
161 * {@link MsoExceptionCategory }
164 public void setException(MsoExceptionCategory value) {
165 this.exception = value;
169 * Gets the value of the errorMessage property.
176 public String getErrorMessage() {
181 * Sets the value of the errorMessage property.
188 public void setErrorMessage(String value) {
189 this.errorMessage = value;
193 * Gets the value of the networkId property.
200 public String getNetworkId() {
205 * Sets the value of the networkId property.
212 public void setNetworkId(String value) {
213 this.networkId = value;
217 * Gets the value of the neutronNetworkId property.
224 public String getNeutronNetworkId() {
225 return neutronNetworkId;
229 * Sets the value of the neutronNetworkId property.
236 public void setNeutronNetworkId(String value) {
237 this.neutronNetworkId = value;
241 * Gets the value of the subnetIdMap property.
245 * {@link CreateNetworkNotification.SubnetIdMap }
248 public CreateNetworkNotification.SubnetIdMap getSubnetIdMap() {
253 * Sets the value of the subnetIdMap property.
257 * {@link CreateNetworkNotification.SubnetIdMap }
260 public void setSubnetIdMap(CreateNetworkNotification.SubnetIdMap value) {
261 this.subnetIdMap = value;
265 * Gets the value of the rollback property.
269 * {@link NetworkRollback }
272 public NetworkRollback getRollback() {
277 * Sets the value of the rollback property.
281 * {@link NetworkRollback }
284 public void setRollback(NetworkRollback value) {
285 this.rollback = value;
290 * <p>Java class for anonymous complex type.
292 * <p>The following schema fragment specifies the expected content contained within this class.
296 * <complexContent>
297 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
299 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
301 * <complexContent>
302 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
304 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
305 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
308 * </complexContent>
313 * </complexContent>
319 @XmlAccessorType(XmlAccessType.FIELD)
320 @XmlType(name = "", propOrder = {
323 public static class SubnetIdMap {
325 protected List<CreateNetworkNotification.SubnetIdMap.Entry> entry;
328 * Gets the value of the entry property.
331 * This accessor method returns a reference to the live list,
332 * not a snapshot. Therefore any modification you make to the
333 * returned list will be present inside the JAXB object.
334 * This is why there is not a <CODE>set</CODE> method for the entry property.
337 * For example, to add a new item, do as follows:
339 * getEntry().add(newItem);
344 * Objects of the following type(s) are allowed in the list
345 * {@link CreateNetworkNotification.SubnetIdMap.Entry }
349 public List<CreateNetworkNotification.SubnetIdMap.Entry> getEntry() {
351 entry = new ArrayList<>();
358 * <p>Java class for anonymous complex type.
360 * <p>The following schema fragment specifies the expected content contained within this class.
364 * <complexContent>
365 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
367 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
368 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
371 * </complexContent>
377 @XmlAccessorType(XmlAccessType.FIELD)
378 @XmlType(name = "", propOrder = {
382 public static class Entry {
384 protected String key;
385 protected String value;
388 * Gets the value of the key property.
395 public String getKey() {
400 * Sets the value of the key property.
407 public void setKey(String value) {
412 * Gets the value of the value property.
419 public String getValue() {
424 * Sets the value of the value property.
431 public void setValue(String value) {