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