05118360ffc867256b1beb1742b71b6b334ab67e
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
13  * 
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  * 
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=========================================================
22  */
23
24 package org.onap.so.adapters.nwrest;
25
26 import java.util.List;
27 import java.util.Map;
28
29 import javax.xml.bind.annotation.XmlRootElement;
30
31 import org.onap.so.logger.MsoLogger;
32 import org.onap.so.openstack.beans.NetworkStatus;
33 import org.onap.so.openstack.beans.RouteTarget;
34
35 @XmlRootElement(name = "queryNetworkResponse")
36 public class QueryNetworkResponse extends NetworkResponseCommon {
37         /**
38          * 
39          */
40         private static final long serialVersionUID = -5251191073081795026L;
41         private String networkId;
42         private String neutronNetworkId;
43         private String networkStackId;
44         private Boolean networkExists;
45         private NetworkStatus networkStatus;
46         private List<Integer> vlans;
47         private List<RouteTarget> routeTargets;
48         private Map<String, String> subnetIdMap;
49         private Map<String, String> networkOutputs;
50         
51         public QueryNetworkResponse() {
52                 super();
53         }
54
55         public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
56                         NetworkStatus networkStatus, Map<String, String> networkOutputs) {
57                 super();
58                 this.networkId = networkId;
59                 this.neutronNetworkId = neutronNetworkId;
60                 this.networkStackId = networkStackId;
61                 this.networkStatus = networkStatus;
62                 this.networkOutputs = networkOutputs;
63         }
64
65         public String getNetworkId() {
66                 return networkId;
67         }
68
69         public void setNetworkId(String networkId) {
70                 this.networkId = networkId;
71         }
72
73         public String getNeutronNetworkId() {
74                 return neutronNetworkId;
75         }
76
77         public void setNeutronNetworkId(String neutronNetworkId) {
78                 this.neutronNetworkId = neutronNetworkId;
79         }
80
81         public String getNetworkStackId() {
82                 return networkStackId;
83         }
84
85         public void setNetworkStackId(String networkStackId) {
86                 this.networkStackId = networkStackId;
87         }
88
89         public NetworkStatus getNetworkStatus() {
90                 return networkStatus;
91         }
92
93         public void setNetworkStatus(NetworkStatus networkStatus) {
94                 this.networkStatus = networkStatus;
95         }
96
97         public Boolean getNetworkExists() {
98                 return networkExists;
99         }
100
101         public void setNetworkExists(Boolean networkExists) {
102                 this.networkExists = networkExists;
103         }
104
105         public List<Integer> getVlans() {
106                 return vlans;
107         }
108
109         public void setVlans(List<Integer> vlans) {
110                 this.vlans = vlans;
111         }
112
113         public List<RouteTarget> getRouteTargets() {
114                 return routeTargets;
115         }
116
117         public void setRouteTargets(List<RouteTarget> routeTargets) {
118                 this.routeTargets = routeTargets;
119         }
120
121         public Map<String, String> getSubnetIdMap() {
122                 return subnetIdMap;
123         }
124
125         public void setSubnetIdMap(Map<String, String> subnetIdMap) {
126                 this.subnetIdMap = subnetIdMap;
127         }
128
129         public Map<String, String> getNetworkOutputs() {
130                 return networkOutputs;
131         }
132
133         public void setNetworkOutputs(Map<String, String> networkOutputs) {
134                 this.networkOutputs = networkOutputs;
135         }
136 }