3736669094c90c4274959252bad19f9f4751752f
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / vnf / VfRollback.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.adapters.vnf;
22
23
24
25 import org.onap.so.entity.MsoRequest;
26
27 public class VfRollback {
28         private String vnfId;
29         private String tenantId;
30         private String cloudSiteId;
31         private boolean tenantCreated = false;
32         private boolean vnfCreated = false;
33         private MsoRequest msoRequest;
34         private String volumeGroupName;
35         private String volumeGroupId;
36         private String requestType;
37         private String volumeGroupHeatStackId;
38         private String baseGroupHeatStackId;
39         private boolean isBase = false;
40         private String vfModuleStackId;
41
42
43         public String getVnfId() {
44                 return vnfId;
45         }
46         public void setVnfId(String vnfId) {
47                 this.vnfId = vnfId;
48         }
49         public String getTenantId() {
50                 return tenantId;
51         }
52
53         public void setTenantId(String tenantId) {
54                 this.tenantId = tenantId;
55         }
56         public String getCloudSiteId() {
57                 return cloudSiteId;
58         }
59         public void setCloudSiteId(String cloudId) {
60                 this.cloudSiteId = cloudId;
61         }
62         public boolean getTenantCreated() {
63                 return tenantCreated;
64         }
65         public void setTenantCreated(boolean tenantCreated) {
66                 this.tenantCreated = tenantCreated;
67         }
68         public boolean getVnfCreated() {
69                 return vnfCreated;
70         }
71         public void setVnfCreated(boolean vnfCreated) {
72                 this.vnfCreated = vnfCreated;
73         }
74         public MsoRequest getMsoRequest() {
75                 return msoRequest;
76         }
77         public void setMsoRequest (MsoRequest msoRequest) {
78                 this.msoRequest = msoRequest;
79         }
80         public String getVolumeGroupName() {
81                 return this.volumeGroupName;
82         }
83         public void setVolumeGroupName(String volumeGroupName) {
84                 this.volumeGroupName = volumeGroupName;
85         }
86         public String getVolumeGroupId() {
87                 return this.volumeGroupId;
88         }
89         public void setVolumeGroupId(String volumeGroupId) {
90                 this.volumeGroupId = volumeGroupId;
91         }
92         public String getRequestType() {
93                 return this.requestType;
94         }
95         public void setRequestType(String requestType) {
96                 this.requestType = requestType;
97         }
98         public String getVolumeGroupHeatStackId() {
99                 return this.volumeGroupHeatStackId;
100         }
101         public void setVolumeGroupHeatStackId(String volumeGroupHeatStackId) {
102                 this.volumeGroupHeatStackId = volumeGroupHeatStackId;
103         }
104         
105         public String getBaseGroupHeatStackId() {
106                 return this.baseGroupHeatStackId;
107         }
108         public void setBaseGroupHeatStackId(String baseGroupHeatStackId) {
109                 this.baseGroupHeatStackId = baseGroupHeatStackId;
110         }
111         
112         public boolean isBase() {
113                 return this.isBase;
114         }
115         public void setIsBase(boolean isBase) {
116                 this.isBase = isBase;
117         }
118         public String getVfModuleStackId() {
119                 return this.vfModuleStackId;
120         }
121         public void setVfModuleStackId(String vfModuleStackId) {
122                 this.vfModuleStackId = vfModuleStackId;
123         }
124
125         @Override
126     public String toString() {
127                 return "VfRollback: cloud=" + cloudSiteId + ", tenant=" + tenantId +
128                                 ", vnf=" + vnfId + ", tenantCreated=" + tenantCreated +
129                                 ", vnfCreated=" + vnfCreated + ", requestType = " + requestType +
130                                 ", volumeGroupHeatStackId = " + this.volumeGroupHeatStackId;
131         }
132 }