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 queryNetworkNotification complex type.
 
  38  * The following schema fragment specifies the expected content contained within this class.
 
  41  * <complexType name="queryNetworkNotification">
 
  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="networkExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 
  50  *         <element name="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
  51  *         <element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
  52  *         <element name="status" type="{http://org.onap.so/networkNotify}networkStatus" minOccurs="0"/>
 
  53  *         <element name="vlans" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
 
  54  *         <element name="subnetIdMap" minOccurs="0">
 
  57  *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 
  59  *                   <element name="entry" maxOccurs="unbounded" minOccurs="0">
 
  62  *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 
  64  *                             <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
  65  *                             <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
  68  *                       </complexContent>
 
  73  *             </complexContent>
 
  78  *   </complexContent>
 
  84 @XmlAccessorType(XmlAccessType.FIELD)
 
  85 @XmlType(name = "queryNetworkNotification", propOrder = {"messageId", "completed", "exception", "errorMessage",
 
  86         "networkExists", "networkId", "neutronNetworkId", "status", "vlans", "subnetIdMap"})
 
  87 public class QueryNetworkNotification {
 
  89     @XmlElement(required = true)
 
  90     protected String messageId;
 
  91     protected boolean completed;
 
  92     protected MsoExceptionCategory exception;
 
  93     protected String errorMessage;
 
  94     protected Boolean networkExists;
 
  95     protected String networkId;
 
  96     protected String neutronNetworkId;
 
  97     protected NetworkStatus status;
 
  98     @XmlElement(type = Integer.class)
 
  99     protected List<Integer> vlans;
 
 100     protected QueryNetworkNotification.SubnetIdMap subnetIdMap;
 
 103      * Gets the value of the messageId property.
 
 105      * @return possible object is {@link String }
 
 108     public String getMessageId() {
 
 113      * Sets the value of the messageId property.
 
 115      * @param value allowed object is {@link String }
 
 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.
 
 141      * @return possible object is {@link MsoExceptionCategory }
 
 144     public MsoExceptionCategory getException() {
 
 149      * Sets the value of the exception property.
 
 151      * @param value allowed object is {@link MsoExceptionCategory }
 
 154     public void setException(MsoExceptionCategory value) {
 
 155         this.exception = value;
 
 159      * Gets the value of the errorMessage property.
 
 161      * @return possible object is {@link String }
 
 164     public String getErrorMessage() {
 
 169      * Sets the value of the errorMessage property.
 
 171      * @param value allowed object is {@link String }
 
 174     public void setErrorMessage(String value) {
 
 175         this.errorMessage = value;
 
 179      * Gets the value of the networkExists property.
 
 181      * @return possible object is {@link Boolean }
 
 184     public Boolean isNetworkExists() {
 
 185         return networkExists;
 
 189      * Sets the value of the networkExists property.
 
 191      * @param value allowed object is {@link Boolean }
 
 194     public void setNetworkExists(Boolean value) {
 
 195         this.networkExists = value;
 
 199      * Gets the value of the networkId property.
 
 201      * @return possible object is {@link String }
 
 204     public String getNetworkId() {
 
 209      * Sets the value of the networkId property.
 
 211      * @param value allowed object is {@link String }
 
 214     public void setNetworkId(String value) {
 
 215         this.networkId = value;
 
 219      * Gets the value of the neutronNetworkId property.
 
 221      * @return possible object is {@link String }
 
 224     public String getNeutronNetworkId() {
 
 225         return neutronNetworkId;
 
 229      * Sets the value of the neutronNetworkId property.
 
 231      * @param value allowed object is {@link String }
 
 234     public void setNeutronNetworkId(String value) {
 
 235         this.neutronNetworkId = value;
 
 239      * Gets the value of the status property.
 
 241      * @return possible object is {@link NetworkStatus }
 
 244     public NetworkStatus getStatus() {
 
 249      * Sets the value of the status property.
 
 251      * @param value allowed object is {@link NetworkStatus }
 
 254     public void setStatus(NetworkStatus value) {
 
 259      * Gets the value of the vlans property.
 
 262      * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to
 
 263      * the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for
 
 264      * the vlans property.
 
 267      * For example, to add a new item, do as follows:
 
 270      * getVlans().add(newItem);
 
 275      * Objects of the following type(s) are allowed in the list {@link Integer }
 
 279     public List<Integer> getVlans() {
 
 281             vlans = new ArrayList<>();
 
 287      * Gets the value of the subnetIdMap property.
 
 289      * @return possible object is {@link QueryNetworkNotification.SubnetIdMap }
 
 292     public QueryNetworkNotification.SubnetIdMap getSubnetIdMap() {
 
 297      * Sets the value of the subnetIdMap property.
 
 299      * @param value allowed object is {@link QueryNetworkNotification.SubnetIdMap }
 
 302     public void setSubnetIdMap(QueryNetworkNotification.SubnetIdMap value) {
 
 303         this.subnetIdMap = value;
 
 309      * Java class for anonymous complex type.
 
 312      * The following schema fragment specifies the expected content contained within this class.
 
 316      *   <complexContent>
 
 317      *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 
 319      *         <element name="entry" maxOccurs="unbounded" minOccurs="0">
 
 321      *             <complexContent>
 
 322      *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 
 324      *                   <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
 325      *                   <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
 328      *             </complexContent>
 
 333      *   </complexContent>
 
 339     @XmlAccessorType(XmlAccessType.FIELD)
 
 340     @XmlType(name = "", propOrder = {"entry"})
 
 341     public static class SubnetIdMap {
 
 343         protected List<QueryNetworkNotification.SubnetIdMap.Entry> entry;
 
 346          * Gets the value of the entry property.
 
 349          * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
 
 350          * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
 
 351          * method for the entry property.
 
 354          * For example, to add a new item, do as follows:
 
 357          * getEntry().add(newItem);
 
 362          * Objects of the following type(s) are allowed in the list {@link QueryNetworkNotification.SubnetIdMap.Entry }
 
 366         public List<QueryNetworkNotification.SubnetIdMap.Entry> getEntry() {
 
 368                 entry = new ArrayList<>();
 
 376          * Java class for anonymous complex type.
 
 379          * The following schema fragment specifies the expected content contained within this class.
 
 383          *   <complexContent>
 
 384          *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 
 386          *         <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
 387          *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 
 390          *   </complexContent>
 
 396         @XmlAccessorType(XmlAccessType.FIELD)
 
 397         @XmlType(name = "", propOrder = {"key", "value"})
 
 398         public static class Entry {
 
 400             protected String key;
 
 401             protected String value;
 
 404              * Gets the value of the key property.
 
 406              * @return possible object is {@link String }
 
 409             public String getKey() {
 
 414              * Sets the value of the key property.
 
 416              * @param value allowed object is {@link String }
 
 419             public void setKey(String value) {
 
 424              * Gets the value of the value property.
 
 426              * @return possible object is {@link String }
 
 429             public String getValue() {
 
 434              * Sets the value of the value property.
 
 436              * @param value allowed object is {@link String }
 
 439             public void setValue(String value) {