Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / openstack / beans / NetworkRollback.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.openstack.beans;
22
23
24 import java.io.Serializable;
25 import java.util.List;
26 import org.onap.so.entity.MsoRequest;
27 import com.fasterxml.jackson.annotation.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonInclude.Include;
29
30 /**
31  * Javabean representing the rollback criteria following a "Create Network" or "Update Network" operation. This
32  * structure can be passed back to the "Rollback Network" operation to undo the effects of the create/update.
33  *
34  * Once a network is created, the only possible update through MSO is to the set of VLANs supported by the network. The
35  * vlans attribute of the rollback object contains the previous VLANs before update.
36  *
37  *
38  */
39 @JsonInclude(Include.NON_EMPTY)
40 public class NetworkRollback implements Serializable {
41     /**
42      * 
43      */
44     private static final long serialVersionUID = 11949663223019185L;
45     private String networkId;
46     private String neutronNetworkId;
47     private String networkStackId;
48     private String tenantId;
49     private String cloudId;
50     private String networkType;
51     private String modelCustomizationUuid;
52     private boolean networkCreated = false;
53     // Previous values for updates
54     private String networkName = null;
55     private String physicalNetwork = null;
56     private List<Integer> vlans = null;
57     private MsoRequest msoRequest;
58
59     public String getNetworkId() {
60         return networkId;
61     }
62
63     public void setNetworkId(String networkId) {
64         this.networkId = networkId;
65     }
66
67     public String getNeutronNetworkId() {
68         return neutronNetworkId;
69     }
70
71     public void setNeutronNetworkId(String neutronNetworkId) {
72         this.neutronNetworkId = neutronNetworkId;
73     }
74
75     public String getNetworkStackId() {
76         return networkStackId;
77     }
78
79     public void setNetworkStackId(String networkStackId) {
80         this.networkStackId = networkStackId;
81     }
82
83     public String getTenantId() {
84         return tenantId;
85     }
86
87     public void setTenantId(String tenantId) {
88         this.tenantId = tenantId;
89     }
90
91     public String getCloudId() {
92         return cloudId;
93     }
94
95     public void setCloudId(String cloudId) {
96         this.cloudId = cloudId;
97     }
98
99     public String getNetworkType() {
100         return networkType;
101     }
102
103     public void setNetworkType(String networkType) {
104         this.networkType = networkType;
105     }
106
107     public String getModelCustomizationUuid() {
108         return this.modelCustomizationUuid;
109     }
110
111     public void setModelCustomizationUuid(String modelCustomizationUuid) {
112         this.modelCustomizationUuid = modelCustomizationUuid;
113     }
114
115     public boolean getNetworkCreated() {
116         return networkCreated;
117     }
118
119     public void setNetworkCreated(boolean networkCreated) {
120         this.networkCreated = networkCreated;
121     }
122
123     public String getNetworkName() {
124         return networkName;
125     }
126
127     public void setNetworkName(String networkName) {
128         this.networkName = networkName;
129     }
130
131     public String getPhysicalNetwork() {
132         return physicalNetwork;
133     }
134
135     public void setPhysicalNetwork(String physicalNetwork) {
136         this.physicalNetwork = physicalNetwork;
137     }
138
139     public List<Integer> getVlans() {
140         return vlans;
141     }
142
143     public void setVlans(List<Integer> vlans) {
144         this.vlans = vlans;
145     }
146
147     public MsoRequest getMsoRequest() {
148         return msoRequest;
149     }
150
151     public void setMsoRequest(MsoRequest msoRequest) {
152         this.msoRequest = msoRequest;
153     }
154
155     @Override
156     public String toString() {
157         return "NetworkRollback [networkId=" + networkId + ", neutronNetworkId=" + neutronNetworkId
158                 + ", networkStackId=" + networkStackId + ", tenantId=" + tenantId + ", cloudId=" + cloudId
159                 + ", networkType=" + networkType + ", networkCreated=" + networkCreated + ", networkName=" + networkName
160                 + ", physicalNetwork=" + physicalNetwork + "]";
161     }
162
163 }