98b0c8ebece31b751887bf93512d769655ea89c2
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / nwrest / QueryNetworkResponse.java
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.openstack.beans.NetworkStatus;
32 import org.onap.so.openstack.beans.RouteTarget;
33
34 @XmlRootElement(name = "queryNetworkResponse")
35 public class QueryNetworkResponse extends NetworkResponseCommon {
36         /**
37          * 
38          */
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;
49         
50         public QueryNetworkResponse() {
51                 super();
52         }
53
54         public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
55                         NetworkStatus networkStatus, Map<String, String> networkOutputs) {
56                 super();
57                 this.networkId = networkId;
58                 this.neutronNetworkId = neutronNetworkId;
59                 this.networkStackId = networkStackId;
60                 this.networkStatus = networkStatus;
61                 this.networkOutputs = networkOutputs;
62         }
63
64         public String getNetworkId() {
65                 return networkId;
66         }
67
68         public void setNetworkId(String networkId) {
69                 this.networkId = networkId;
70         }
71
72         public String getNeutronNetworkId() {
73                 return neutronNetworkId;
74         }
75
76         public void setNeutronNetworkId(String neutronNetworkId) {
77                 this.neutronNetworkId = neutronNetworkId;
78         }
79
80         public String getNetworkStackId() {
81                 return networkStackId;
82         }
83
84         public void setNetworkStackId(String networkStackId) {
85                 this.networkStackId = networkStackId;
86         }
87
88         public NetworkStatus getNetworkStatus() {
89                 return networkStatus;
90         }
91
92         public void setNetworkStatus(NetworkStatus networkStatus) {
93                 this.networkStatus = networkStatus;
94         }
95
96         public Boolean getNetworkExists() {
97                 return networkExists;
98         }
99
100         public void setNetworkExists(Boolean networkExists) {
101                 this.networkExists = networkExists;
102         }
103
104         public List<Integer> getVlans() {
105                 return vlans;
106         }
107
108         public void setVlans(List<Integer> vlans) {
109                 this.vlans = vlans;
110         }
111
112         public List<RouteTarget> getRouteTargets() {
113                 return routeTargets;
114         }
115
116         public void setRouteTargets(List<RouteTarget> routeTargets) {
117                 this.routeTargets = routeTargets;
118         }
119
120         public Map<String, String> getSubnetIdMap() {
121                 return subnetIdMap;
122         }
123
124         public void setSubnetIdMap(Map<String, String> subnetIdMap) {
125                 this.subnetIdMap = subnetIdMap;
126         }
127
128         public Map<String, String> getNetworkOutputs() {
129                 return networkOutputs;
130         }
131
132         public void setNetworkOutputs(Map<String, String> networkOutputs) {
133                 this.networkOutputs = networkOutputs;
134         }
135 }