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 networkRollback complex type.
38 * The following schema fragment specifies the expected content contained within this class.
41 * <complexType name="networkRollback">
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <element name="cloudId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
46 * <element name="msoRequest" type="{http://org.onap.so/networkNotify}msoRequest" minOccurs="0"/>
47 * <element name="networkCreated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
48 * <element name="networkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49 * <element name="networkStackId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
50 * <element name="networkName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
51 * <element name="networkType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
52 * <element name="networkUpdated" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
53 * <element name="neutronNetworkId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
54 * <element name="physicalNetwork" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
55 * <element name="tenantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
56 * <element name="vlans" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
59 * </complexContent>
65 @XmlAccessorType(XmlAccessType.FIELD)
66 @XmlType(name = "networkRollback",
67 propOrder = {"cloudId", "msoRequest", "networkCreated", "networkId", "networkStackId", "networkName",
68 "networkType", "networkUpdated", "neutronNetworkId", "physicalNetwork", "tenantId", "vlans"})
69 public class NetworkRollback {
71 protected String cloudId;
72 protected MsoRequest msoRequest;
73 protected boolean networkCreated;
74 protected String networkId;
75 protected String networkStackId;
76 protected String networkName;
77 protected String networkType;
78 protected boolean networkUpdated;
79 protected String neutronNetworkId;
80 protected String physicalNetwork;
81 protected String tenantId;
82 @XmlElement(nillable = true)
83 protected List<Integer> vlans;
86 * Gets the value of the cloudId property.
88 * @return possible object is {@link String }
91 public String getCloudId() {
96 * Sets the value of the cloudId property.
98 * @param value allowed object is {@link String }
101 public void setCloudId(String value) {
102 this.cloudId = value;
106 * Gets the value of the msoRequest property.
108 * @return possible object is {@link MsoRequest }
111 public MsoRequest getMsoRequest() {
116 * Sets the value of the msoRequest property.
118 * @param value allowed object is {@link MsoRequest }
121 public void setMsoRequest(MsoRequest value) {
122 this.msoRequest = value;
126 * Gets the value of the networkCreated property.
129 public boolean isNetworkCreated() {
130 return networkCreated;
134 * Sets the value of the networkCreated property.
137 public void setNetworkCreated(boolean value) {
138 this.networkCreated = value;
142 * Gets the value of the networkId property.
144 * @return possible object is {@link String }
147 public String getNetworkId() {
152 * Sets the value of the networkId property.
154 * @param value allowed object is {@link String }
157 public void setNetworkId(String value) {
158 this.networkId = value;
162 * Gets the value of the networkStackId property.
164 * @return possible object is {@link String }
167 public String getNetworkStackId() {
168 return networkStackId;
172 * Sets the value of the networkStackId property.
174 * @param value allowed object is {@link String }
177 public void setNetworkStackId(String value) {
178 this.networkStackId = value;
182 * Gets the value of the networkName property.
184 * @return possible object is {@link String }
187 public String getNetworkName() {
192 * Sets the value of the networkName property.
194 * @param value allowed object is {@link String }
197 public void setNetworkName(String value) {
198 this.networkName = value;
202 * Gets the value of the networkType property.
204 * @return possible object is {@link String }
207 public String getNetworkType() {
212 * Sets the value of the networkType property.
214 * @param value allowed object is {@link String }
217 public void setNetworkType(String value) {
218 this.networkType = value;
222 * Gets the value of the networkUpdated property.
225 public boolean isNetworkUpdated() {
226 return networkUpdated;
230 * Sets the value of the networkUpdated property.
233 public void setNetworkUpdated(boolean value) {
234 this.networkUpdated = value;
238 * Gets the value of the neutronNetworkId property.
240 * @return possible object is {@link String }
243 public String getNeutronNetworkId() {
244 return neutronNetworkId;
248 * Sets the value of the neutronNetworkId property.
250 * @param value allowed object is {@link String }
253 public void setNeutronNetworkId(String value) {
254 this.neutronNetworkId = value;
258 * Gets the value of the physicalNetwork property.
260 * @return possible object is {@link String }
263 public String getPhysicalNetwork() {
264 return physicalNetwork;
268 * Sets the value of the physicalNetwork property.
270 * @param value allowed object is {@link String }
273 public void setPhysicalNetwork(String value) {
274 this.physicalNetwork = value;
278 * Gets the value of the tenantId property.
280 * @return possible object is {@link String }
283 public String getTenantId() {
288 * Sets the value of the tenantId property.
290 * @param value allowed object is {@link String }
293 public void setTenantId(String value) {
294 this.tenantId = value;
298 * Gets the value of the vlans property.
301 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to
302 * the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for
303 * the vlans property.
306 * For example, to add a new item, do as follows:
309 * getVlans().add(newItem);
314 * Objects of the following type(s) are allowed in the list {@link Integer }
318 public List<Integer> getVlans() {
320 vlans = new ArrayList<>();