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 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
22 package org.openecomp.mso.adapters.nwrest;
24 import java.util.List;
27 import javax.xml.bind.annotation.XmlRootElement;
29 import org.openecomp.mso.logger.MsoLogger;
30 import org.openecomp.mso.openstack.beans.NetworkStatus;
31 import org.openecomp.mso.openstack.beans.RouteTarget;
33 @XmlRootElement(name = "queryNetworkResponse")
34 public class QueryNetworkResponse extends NetworkResponseCommon {
35 private String networkId;
36 private String neutronNetworkId;
37 private String networkStackId;
38 private Boolean networkExists;
39 private NetworkStatus networkStatus;
40 private List<Integer> vlans;
41 private List<RouteTarget> routeTargets;
42 private Map<String, String> subnetIdMap;
43 private Map<String, String> networkOutputs;
44 private static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.RA);
46 public QueryNetworkResponse() {
50 public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
51 NetworkStatus networkStatus, Map<String, String> networkOutputs) {
53 this.networkId = networkId;
54 this.neutronNetworkId = neutronNetworkId;
55 this.networkStackId = networkStackId;
56 this.networkStatus = networkStatus;
57 this.networkOutputs = networkOutputs;
60 public String getNetworkId() {
64 public void setNetworkId(String networkId) {
65 this.networkId = networkId;
68 public String getNeutronNetworkId() {
69 return neutronNetworkId;
72 public void setNeutronNetworkId(String neutronNetworkId) {
73 this.neutronNetworkId = neutronNetworkId;
76 public String getNetworkStackId() {
77 return networkStackId;
80 public void setNetworkStackId(String networkStackId) {
81 this.networkStackId = networkStackId;
84 public NetworkStatus getNetworkStatus() {
88 public void setNetworkStatus(NetworkStatus networkStatus) {
89 this.networkStatus = networkStatus;
92 public Boolean getNetworkExists() {
96 public void setNetworkExists(Boolean networkExists) {
97 this.networkExists = networkExists;
100 public List<Integer> getVlans() {
104 public void setVlans(List<Integer> vlans) {
108 public List<RouteTarget> getRouteTargets() {
112 public void setRouteTargets(List<RouteTarget> routeTargets) {
113 this.routeTargets = routeTargets;
116 public Map<String, String> getSubnetIdMap() {
120 public void setSubnetIdMap(Map<String, String> subnetIdMap) {
121 this.subnetIdMap = subnetIdMap;
124 public Map<String, String> getNetworkOutputs() {
125 return networkOutputs;
128 public void setNetworkOutputs(Map<String, String> networkOutputs) {
129 this.networkOutputs = networkOutputs;