AT&T 1712 and 1802 release code
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / 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  * 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
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
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=========================================================
20  */
21
22 package org.openecomp.mso.adapters.nwrest;
23
24 import java.util.List;
25 import java.util.Map;
26
27 import javax.xml.bind.annotation.XmlRootElement;
28
29 import org.openecomp.mso.logger.MsoLogger;
30 import org.openecomp.mso.openstack.beans.NetworkStatus;
31 import org.openecomp.mso.openstack.beans.RouteTarget;
32
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);
45
46         public QueryNetworkResponse() {
47                 super();
48         }
49
50         public QueryNetworkResponse(String networkId, String neutronNetworkId, String networkStackId,
51                         NetworkStatus networkStatus, Map<String, String> networkOutputs) {
52                 super();
53                 this.networkId = networkId;
54                 this.neutronNetworkId = neutronNetworkId;
55                 this.networkStackId = networkStackId;
56                 this.networkStatus = networkStatus;
57                 this.networkOutputs = networkOutputs;
58         }
59
60         public String getNetworkId() {
61                 return networkId;
62         }
63
64         public void setNetworkId(String networkId) {
65                 this.networkId = networkId;
66         }
67
68         public String getNeutronNetworkId() {
69                 return neutronNetworkId;
70         }
71
72         public void setNeutronNetworkId(String neutronNetworkId) {
73                 this.neutronNetworkId = neutronNetworkId;
74         }
75
76         public String getNetworkStackId() {
77                 return networkStackId;
78         }
79
80         public void setNetworkStackId(String networkStackId) {
81                 this.networkStackId = networkStackId;
82         }
83
84         public NetworkStatus getNetworkStatus() {
85                 return networkStatus;
86         }
87
88         public void setNetworkStatus(NetworkStatus networkStatus) {
89                 this.networkStatus = networkStatus;
90         }
91
92         public Boolean getNetworkExists() {
93                 return networkExists;
94         }
95
96         public void setNetworkExists(Boolean networkExists) {
97                 this.networkExists = networkExists;
98         }
99
100         public List<Integer> getVlans() {
101                 return vlans;
102         }
103
104         public void setVlans(List<Integer> vlans) {
105                 this.vlans = vlans;
106         }
107
108         public List<RouteTarget> getRouteTargets() {
109                 return routeTargets;
110         }
111
112         public void setRouteTargets(List<RouteTarget> routeTargets) {
113                 this.routeTargets = routeTargets;
114         }
115
116         public Map<String, String> getSubnetIdMap() {
117                 return subnetIdMap;
118         }
119
120         public void setSubnetIdMap(Map<String, String> subnetIdMap) {
121                 this.subnetIdMap = subnetIdMap;
122         }
123
124         public Map<String, String> getNetworkOutputs() {
125                 return networkOutputs;
126         }
127
128         public void setNetworkOutputs(Map<String, String> networkOutputs) {
129                 this.networkOutputs = networkOutputs;
130         }
131 }