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;
27 import javax.xml.bind.annotation.XmlRootElement;
29 import org.onap.so.openstack.beans.NetworkRollback;
31 import com.fasterxml.jackson.annotation.JsonRootName;
33 @JsonRootName("createNetworkResponse")
34 @XmlRootElement(name = "createNetworkResponse")
36 public class CreateNetworkResponse extends NetworkResponseCommon {
40 private static final long serialVersionUID = -7730406297031948309L;
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();
50 public CreateNetworkResponse() {
54 public CreateNetworkResponse(String networkId,
55 String neutronNetworkId,
56 String networkStackId,
58 Boolean networkCreated,
59 Map<String, String> subnetIdMap,
60 NetworkRollback rollback,
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;
72 public String getNetworkId() {
76 public void setNetworkId(String networkId) {
77 this.networkId = networkId;
80 public String getNeutronNetworkId() {
81 return neutronNetworkId;
84 public void setNeutronNetworkId(String neutronNetworkId) {
85 this.neutronNetworkId = neutronNetworkId;
88 public String getNetworkStackId() {
89 return networkStackId;
92 public void setNetworkStackId(String networkStackId) {
93 this.networkStackId = networkStackId;
96 public String getNetworkFqdn() {
100 public void setNetworkFqdn(String networkFqdn) {
101 this.networkFqdn = networkFqdn;
104 public Boolean getNetworkCreated() {
105 return networkCreated;
108 public void setNetworkCreated(Boolean networkCreated) {
109 this.networkCreated = networkCreated;
112 public Map<String, String> getSubnetMap() {
116 public void setSubnetMap(Map<String, String> subnetMap) {
117 this.subnetMap = subnetMap;
120 public NetworkRollback getRollback() {
124 public void setRollback(NetworkRollback rollback) {
125 this.rollback = rollback;