90ab01bd8c58024227502dc4363c3a2d057c6e28
[so.git] / adapters / mso-vnf-adapter / src / main / java / org / openecomp / mso / adapters / vnf / VfRollback.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
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.openecomp.mso.adapters.vnf;
22
23
24
25 import org.openecomp.mso.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         /*
99         private String volumeGroupHeatStackId;
100         private String baseGroupHeatStackId;
101         private boolean isBase = false;
102         */
103         public String getVolumeGroupHeatStackId() {
104                 return this.volumeGroupHeatStackId;
105         }
106         public void setVolumeGroupHeatStackId(String volumeGroupHeatStackId) {
107                 this.volumeGroupHeatStackId = volumeGroupHeatStackId;
108         }
109         
110         public String getBaseGroupHeatStackId() {
111                 return this.baseGroupHeatStackId;
112         }
113         public void setBaseGroupHeatStackId(String baseGroupHeatStackId) {
114                 this.baseGroupHeatStackId = baseGroupHeatStackId;
115         }
116         
117         public boolean isBase() {
118                 return this.isBase;
119         }
120         public void setIsBase(boolean isBase) {
121                 this.isBase = isBase;
122         }
123         public String getVfModuleStackId() {
124                 return this.vfModuleStackId;
125         }
126         public void setVfModuleStackId(String vfModuleStackId) {
127                 this.vfModuleStackId = vfModuleStackId;
128         }
129
130         @Override
131     public String toString() {
132                 return "VfRollback: cloud=" + cloudSiteId + ", tenant=" + tenantId +
133                                 ", vnf=" + vnfId + ", tenantCreated=" + tenantCreated +
134                                 ", vnfCreated=" + vnfCreated + ", requestType = " + requestType +
135                                 ", volumeGroupHeatStackId = " + this.volumeGroupHeatStackId;
136         }
137 }