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;
29 import javax.xml.bind.annotation.XmlRootElement;
31 import org.onap.so.openstack.beans.NetworkStatus;
32 import org.onap.so.openstack.beans.RouteTarget;
34 @XmlRootElement(name = "queryNetworkResponse")
35 public class QueryNetworkResponse extends NetworkResponseCommon {
39 private static final long serialVersionUID = -5251191073081795026L;
40 private String networkId;
41 private String neutronNetworkId;
42 private String networkStackId;
43 private Boolean networkExists;
44 private NetworkStatus networkStatus;
45 private List<Integer> vlans;
46 private List<RouteTarget> routeTargets;
47 private Map<String, String> subnetIdMap;
48 private Map<String, String> networkOutputs;
50 public QueryNetworkResponse() {
54 public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
55 NetworkStatus networkStatus, Map<String, String> networkOutputs) {
57 this.networkId = networkId;
58 this.neutronNetworkId = neutronNetworkId;
59 this.networkStackId = networkStackId;
60 this.networkStatus = networkStatus;
61 this.networkOutputs = networkOutputs;
64 public String getNetworkId() {
68 public void setNetworkId(String networkId) {
69 this.networkId = networkId;
72 public String getNeutronNetworkId() {
73 return neutronNetworkId;
76 public void setNeutronNetworkId(String neutronNetworkId) {
77 this.neutronNetworkId = neutronNetworkId;
80 public String getNetworkStackId() {
81 return networkStackId;
84 public void setNetworkStackId(String networkStackId) {
85 this.networkStackId = networkStackId;
88 public NetworkStatus getNetworkStatus() {
92 public void setNetworkStatus(NetworkStatus networkStatus) {
93 this.networkStatus = networkStatus;
96 public Boolean getNetworkExists() {
100 public void setNetworkExists(Boolean networkExists) {
101 this.networkExists = networkExists;
104 public List<Integer> getVlans() {
108 public void setVlans(List<Integer> vlans) {
112 public List<RouteTarget> getRouteTargets() {
116 public void setRouteTargets(List<RouteTarget> routeTargets) {
117 this.routeTargets = routeTargets;
120 public Map<String, String> getSubnetIdMap() {
124 public void setSubnetIdMap(Map<String, String> subnetIdMap) {
125 this.subnetIdMap = subnetIdMap;
128 public Map<String, String> getNetworkOutputs() {
129 return networkOutputs;
132 public void setNetworkOutputs(Map<String, String> networkOutputs) {
133 this.networkOutputs = networkOutputs;