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.openecomp.mso.adapters.nwrest;
25 import org.openecomp.mso.openstack.beans.NetworkRollback;
28 import javax.xml.bind.annotation.XmlRootElement;
30 import org.jboss.resteasy.annotations.providers.NoJackson;
31 import org.codehaus.jackson.map.annotate.JsonRootName;
33 @JsonRootName("createNetworkResponse")
34 @XmlRootElement(name = "createNetworkResponse")
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();
45 public CreateNetworkResponse() {
49 public CreateNetworkResponse(String networkId,
50 String neutronNetworkId,
51 String networkStackId,
53 Boolean networkCreated,
54 Map<String, String> subnetIdMap,
55 NetworkRollback rollback,
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;
67 public String getNetworkId() {
71 public void setNetworkId(String networkId) {
72 this.networkId = networkId;
75 public String getNeutronNetworkId() {
76 return neutronNetworkId;
79 public void setNeutronNetworkId(String neutronNetworkId) {
80 this.neutronNetworkId = neutronNetworkId;
83 public String getNetworkStackId() {
84 return networkStackId;
87 public void setNetworkStackId(String networkStackId) {
88 this.networkStackId = networkStackId;
91 public String getNetworkFqdn() {
95 public void setNetworkFqdn(String networkFqdn) {
96 this.networkFqdn = networkFqdn;
99 public Boolean getNetworkCreated() {
100 return networkCreated;
103 public void setNetworkCreated(Boolean networkCreated) {
104 this.networkCreated = networkCreated;
107 public Map<String, String> getSubnetMap() {
111 public void setSubnetMap(Map<String, String> subnetMap) {
112 this.subnetMap = subnetMap;
115 public NetworkRollback getRollback() {
119 public void setRollback(NetworkRollback rollback) {
120 this.rollback = rollback;