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 queryNetworkNotification complex type.
37 * <p>The following schema fragment specifies the expected content contained within this class.
40 * <complexType name="queryNetworkNotification">
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="networkExists" type="{http://www.w3.org/2001/XMLSchema}boolean" 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="status" type="{http://org.onap.so/networkNotify}networkStatus" minOccurs="0"/>
52 * <element name="vlans" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
53 * <element name="subnetIdMap" minOccurs="0">
56 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
58 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
61 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
63 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
64 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
67 * </complexContent>
72 * </complexContent>
77 * </complexContent>
83 @XmlAccessorType(XmlAccessType.FIELD)
84 @XmlType(name = "queryNetworkNotification", propOrder = {
96 public class QueryNetworkNotification {
98 @XmlElement(required = true)
99 protected String messageId;
100 protected boolean completed;
101 protected MsoExceptionCategory exception;
102 protected String errorMessage;
103 protected Boolean networkExists;
104 protected String networkId;
105 protected String neutronNetworkId;
106 protected NetworkStatus status;
107 @XmlElement(type = Integer.class)
108 protected List<Integer> vlans;
109 protected QueryNetworkNotification.SubnetIdMap subnetIdMap;
112 * Gets the value of the messageId property.
119 public String getMessageId() {
124 * Sets the value of the messageId property.
131 public void setMessageId(String value) {
132 this.messageId = value;
136 * Gets the value of the completed property.
139 public boolean isCompleted() {
144 * Sets the value of the completed property.
147 public void setCompleted(boolean value) {
148 this.completed = value;
152 * Gets the value of the exception property.
156 * {@link MsoExceptionCategory }
159 public MsoExceptionCategory getException() {
164 * Sets the value of the exception property.
168 * {@link MsoExceptionCategory }
171 public void setException(MsoExceptionCategory value) {
172 this.exception = value;
176 * Gets the value of the errorMessage property.
183 public String getErrorMessage() {
188 * Sets the value of the errorMessage property.
195 public void setErrorMessage(String value) {
196 this.errorMessage = value;
200 * Gets the value of the networkExists property.
207 public Boolean isNetworkExists() {
208 return networkExists;
212 * Sets the value of the networkExists property.
219 public void setNetworkExists(Boolean value) {
220 this.networkExists = value;
224 * Gets the value of the networkId property.
231 public String getNetworkId() {
236 * Sets the value of the networkId property.
243 public void setNetworkId(String value) {
244 this.networkId = value;
248 * Gets the value of the neutronNetworkId property.
255 public String getNeutronNetworkId() {
256 return neutronNetworkId;
260 * Sets the value of the neutronNetworkId property.
267 public void setNeutronNetworkId(String value) {
268 this.neutronNetworkId = value;
272 * Gets the value of the status property.
276 * {@link NetworkStatus }
279 public NetworkStatus getStatus() {
284 * Sets the value of the status property.
288 * {@link NetworkStatus }
291 public void setStatus(NetworkStatus value) {
296 * Gets the value of the vlans property.
299 * This accessor method returns a reference to the live list,
300 * not a snapshot. Therefore any modification you make to the
301 * returned list will be present inside the JAXB object.
302 * This is why there is not a <CODE>set</CODE> method for the vlans property.
305 * For example, to add a new item, do as follows:
307 * getVlans().add(newItem);
312 * Objects of the following type(s) are allowed in the list
317 public List<Integer> getVlans() {
319 vlans = new ArrayList<>();
325 * Gets the value of the subnetIdMap property.
329 * {@link QueryNetworkNotification.SubnetIdMap }
332 public QueryNetworkNotification.SubnetIdMap getSubnetIdMap() {
337 * Sets the value of the subnetIdMap property.
341 * {@link QueryNetworkNotification.SubnetIdMap }
344 public void setSubnetIdMap(QueryNetworkNotification.SubnetIdMap value) {
345 this.subnetIdMap = value;
350 * <p>Java class for anonymous complex type.
352 * <p>The following schema fragment specifies the expected content contained within this class.
356 * <complexContent>
357 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
359 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
361 * <complexContent>
362 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
364 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
365 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
368 * </complexContent>
373 * </complexContent>
379 @XmlAccessorType(XmlAccessType.FIELD)
380 @XmlType(name = "", propOrder = {
383 public static class SubnetIdMap {
385 protected List<QueryNetworkNotification.SubnetIdMap.Entry> entry;
388 * Gets the value of the entry property.
391 * This accessor method returns a reference to the live list,
392 * not a snapshot. Therefore any modification you make to the
393 * returned list will be present inside the JAXB object.
394 * This is why there is not a <CODE>set</CODE> method for the entry property.
397 * For example, to add a new item, do as follows:
399 * getEntry().add(newItem);
404 * Objects of the following type(s) are allowed in the list
405 * {@link QueryNetworkNotification.SubnetIdMap.Entry }
409 public List<QueryNetworkNotification.SubnetIdMap.Entry> getEntry() {
411 entry = new ArrayList<>();
418 * <p>Java class for anonymous complex type.
420 * <p>The following schema fragment specifies the expected content contained within this class.
424 * <complexContent>
425 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
427 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
428 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
431 * </complexContent>
437 @XmlAccessorType(XmlAccessType.FIELD)
438 @XmlType(name = "", propOrder = {
442 public static class Entry {
444 protected String key;
445 protected String value;
448 * Gets the value of the key property.
455 public String getKey() {
460 * Sets the value of the key property.
467 public void setKey(String value) {
472 * Gets the value of the value property.
479 public String getValue() {
484 * Sets the value of the value property.
491 public void setValue(String value) {