Change the header to SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / nwrest / CreateNetworkResponse.java
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.openecomp.mso.adapters.nwrest;
22
23
24
25 import org.openecomp.mso.openstack.beans.NetworkRollback;
26 import java.util.Map;
27
28 import javax.xml.bind.annotation.XmlRootElement;
29
30 import org.jboss.resteasy.annotations.providers.NoJackson;
31 import org.codehaus.jackson.map.annotate.JsonRootName;
32
33 @JsonRootName("createNetworkResponse")
34 @XmlRootElement(name = "createNetworkResponse")
35 @NoJackson
36 public class CreateNetworkResponse extends NetworkResponseCommon {
37         private String networkId;
38         private String neutronNetworkId;
39         private String networkStackId;
40         private String networkFqdn;
41         private Boolean networkCreated;
42         private Map<String, String> subnetMap;
43         private NetworkRollback rollback = new NetworkRollback();
44
45         public CreateNetworkResponse() {
46                 super();
47         }
48
49         public CreateNetworkResponse(String networkId,
50                         String neutronNetworkId,
51                         String networkStackId,
52                         String networkFqdn,
53                         Boolean networkCreated,
54                         Map<String, String> subnetIdMap,
55                         NetworkRollback rollback,
56                         String messageId) {
57                 super(messageId);
58                 this.networkId = networkId;
59                 this.neutronNetworkId = neutronNetworkId;
60                 this.networkStackId = networkStackId;
61                 this.networkFqdn = networkFqdn;
62                 this.networkCreated = networkCreated;
63                 this.subnetMap = subnetIdMap;
64                 this.rollback = rollback;
65         }
66
67         public String getNetworkId() {
68                 return networkId;
69         }
70
71         public void setNetworkId(String networkId) {
72                 this.networkId = networkId;
73         }
74
75         public String getNeutronNetworkId() {
76                 return neutronNetworkId;
77         }
78
79         public void setNeutronNetworkId(String neutronNetworkId) {
80                 this.neutronNetworkId = neutronNetworkId;
81         }
82
83         public String getNetworkStackId() {
84                 return networkStackId;
85         }
86
87         public void setNetworkStackId(String networkStackId) {
88                 this.networkStackId = networkStackId;
89         }
90
91         public String getNetworkFqdn() {
92                 return networkFqdn;
93         }
94
95         public void setNetworkFqdn(String networkFqdn) {
96                 this.networkFqdn = networkFqdn;
97         }
98
99         public Boolean getNetworkCreated() {
100                 return networkCreated;
101         }
102
103         public void setNetworkCreated(Boolean networkCreated) {
104                 this.networkCreated = networkCreated;
105         }
106
107         public Map<String, String> getSubnetMap() {
108                 return subnetMap;
109         }
110
111         public void setSubnetMap(Map<String, String> subnetMap) {
112                 this.subnetMap = subnetMap;
113         }
114
115         public NetworkRollback getRollback() {
116                 return rollback;
117         }
118
119         public void setRollback(NetworkRollback rollback) {
120                 this.rollback = rollback;
121         }
122 }