2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.adapters.nwrest;
26 import javax.xml.bind.annotation.XmlRootElement;
27 import org.onap.so.openstack.beans.NetworkRollback;
28 import com.fasterxml.jackson.annotation.JsonRootName;
30 @JsonRootName("createNetworkResponse")
31 @XmlRootElement(name = "createNetworkResponse")
33 public class CreateNetworkResponse extends NetworkResponseCommon {
37 private static final long serialVersionUID = -7730406297031948309L;
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();
47 public CreateNetworkResponse() {
51 public CreateNetworkResponse(String networkId, String neutronNetworkId, String networkStackId, String networkFqdn,
52 Boolean networkCreated, Map<String, String> subnetIdMap, NetworkRollback rollback, String 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;
63 public String getNetworkId() {
67 public void setNetworkId(String networkId) {
68 this.networkId = networkId;
71 public String getNeutronNetworkId() {
72 return neutronNetworkId;
75 public void setNeutronNetworkId(String neutronNetworkId) {
76 this.neutronNetworkId = neutronNetworkId;
79 public String getNetworkStackId() {
80 return networkStackId;
83 public void setNetworkStackId(String networkStackId) {
84 this.networkStackId = networkStackId;
87 public String getNetworkFqdn() {
91 public void setNetworkFqdn(String networkFqdn) {
92 this.networkFqdn = networkFqdn;
95 public Boolean getNetworkCreated() {
96 return networkCreated;
99 public void setNetworkCreated(Boolean networkCreated) {
100 this.networkCreated = networkCreated;
103 public Map<String, String> getSubnetMap() {
107 public void setSubnetMap(Map<String, String> subnetMap) {
108 this.subnetMap = subnetMap;
111 public NetworkRollback getRollback() {
115 public void setRollback(NetworkRollback rollback) {
116 this.rollback = rollback;