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