2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
7 * ================================================================================
8 * Modifications Copyright (C) 2018 IBM.
9 * ================================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 * ============LICENSE_END=========================================================
24 package org.onap.so.adapters.nwrest;
26 import java.util.List;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import org.onap.so.openstack.beans.NetworkStatus;
30 import org.onap.so.openstack.beans.RouteTarget;
32 @XmlRootElement(name = "queryNetworkResponse")
33 public class QueryNetworkResponse extends NetworkResponseCommon {
37 private static final long serialVersionUID = -5251191073081795026L;
38 private String networkId;
39 private String neutronNetworkId;
40 private String networkStackId;
41 private Boolean networkExists;
42 private NetworkStatus networkStatus;
43 private List<Integer> vlans;
44 private List<RouteTarget> routeTargets;
45 private Map<String, String> subnetIdMap;
46 private Map<String, String> networkOutputs;
48 public QueryNetworkResponse() {
52 public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
53 NetworkStatus networkStatus, Map<String, String> networkOutputs) {
55 this.networkId = networkId;
56 this.neutronNetworkId = neutronNetworkId;
57 this.networkStackId = networkStackId;
58 this.networkStatus = networkStatus;
59 this.networkOutputs = networkOutputs;
62 public String getNetworkId() {
66 public void setNetworkId(String networkId) {
67 this.networkId = networkId;
70 public String getNeutronNetworkId() {
71 return neutronNetworkId;
74 public void setNeutronNetworkId(String neutronNetworkId) {
75 this.neutronNetworkId = neutronNetworkId;
78 public String getNetworkStackId() {
79 return networkStackId;
82 public void setNetworkStackId(String networkStackId) {
83 this.networkStackId = networkStackId;
86 public NetworkStatus getNetworkStatus() {
90 public void setNetworkStatus(NetworkStatus networkStatus) {
91 this.networkStatus = networkStatus;
94 public Boolean getNetworkExists() {
98 public void setNetworkExists(Boolean networkExists) {
99 this.networkExists = networkExists;
102 public List<Integer> getVlans() {
106 public void setVlans(List<Integer> vlans) {
110 public List<RouteTarget> getRouteTargets() {
114 public void setRouteTargets(List<RouteTarget> routeTargets) {
115 this.routeTargets = routeTargets;
118 public Map<String, String> getSubnetIdMap() {
122 public void setSubnetIdMap(Map<String, String> subnetIdMap) {
123 this.subnetIdMap = subnetIdMap;
126 public Map<String, String> getNetworkOutputs() {
127 return networkOutputs;
130 public void setNetworkOutputs(Map<String, String> networkOutputs) {
131 this.networkOutputs = networkOutputs;