3dee803786910e6d2c8b6d276891b515c7e673bb
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.adapters.nwrest;
22
23
24
25 import java.util.Map;
26 import javax.xml.bind.annotation.XmlRootElement;
27 import com.fasterxml.jackson.annotation.JsonRootName;
28
29 @JsonRootName("updateNetworkResponse")
30 @XmlRootElement(name = "updateNetworkResponse")
31 public class UpdateNetworkResponse extends NetworkResponseCommon {
32
33     /**
34      * 
35      */
36     private static final long serialVersionUID = -7528214382414366136L;
37     private String networkId;
38     private String neutronNetworkId;
39     private Map<String, String> subnetMap;
40
41     public UpdateNetworkResponse() {
42         /* Empty Constructor */
43     }
44
45     public UpdateNetworkResponse(String networkId, String neutronNetworkId, Map<String, String> subnetMap,
46             String messageId) {
47         super(messageId);
48         this.networkId = networkId;
49         this.neutronNetworkId = neutronNetworkId;
50         this.subnetMap = subnetMap;
51     }
52
53     public String getNetworkId() {
54         return networkId;
55     }
56
57     public void setNetworkId(String networkId) {
58         this.networkId = networkId;
59     }
60
61     public String getNeutronNetworkId() {
62         return neutronNetworkId;
63     }
64
65     public void setNeutronNetworkId(String neutronNetworkId) {
66         this.neutronNetworkId = neutronNetworkId;
67     }
68
69     public Map<String, String> getSubnetMap() {
70         return subnetMap;
71     }
72
73     public void setSubnetMap(Map<String, String> subnetMap) {
74         this.subnetMap = subnetMap;
75     }
76 }