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.vnf;
25 import org.openecomp.mso.entity.MsoRequest;
27 public class VfRollback {
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;
43 public String getVnfId() {
46 public void setVnfId(String vnfId) {
49 public String getTenantId() {
53 public void setTenantId(String tenantId) {
54 this.tenantId = tenantId;
56 public String getCloudSiteId() {
59 public void setCloudSiteId(String cloudId) {
60 this.cloudSiteId = cloudId;
62 public boolean getTenantCreated() {
65 public void setTenantCreated(boolean tenantCreated) {
66 this.tenantCreated = tenantCreated;
68 public boolean getVnfCreated() {
71 public void setVnfCreated(boolean vnfCreated) {
72 this.vnfCreated = vnfCreated;
74 public MsoRequest getMsoRequest() {
77 public void setMsoRequest (MsoRequest msoRequest) {
78 this.msoRequest = msoRequest;
80 public String getVolumeGroupName() {
81 return this.volumeGroupName;
83 public void setVolumeGroupName(String volumeGroupName) {
84 this.volumeGroupName = volumeGroupName;
86 public String getVolumeGroupId() {
87 return this.volumeGroupId;
89 public void setVolumeGroupId(String volumeGroupId) {
90 this.volumeGroupId = volumeGroupId;
92 public String getRequestType() {
93 return this.requestType;
95 public void setRequestType(String requestType) {
96 this.requestType = requestType;
99 private String volumeGroupHeatStackId;
100 private String baseGroupHeatStackId;
101 private boolean isBase = false;
103 public String getVolumeGroupHeatStackId() {
104 return this.volumeGroupHeatStackId;
106 public void setVolumeGroupHeatStackId(String volumeGroupHeatStackId) {
107 this.volumeGroupHeatStackId = volumeGroupHeatStackId;
110 public String getBaseGroupHeatStackId() {
111 return this.baseGroupHeatStackId;
113 public void setBaseGroupHeatStackId(String baseGroupHeatStackId) {
114 this.baseGroupHeatStackId = baseGroupHeatStackId;
117 public boolean isBase() {
120 public void setIsBase(boolean isBase) {
121 this.isBase = isBase;
123 public String getVfModuleStackId() {
124 return this.vfModuleStackId;
126 public void setVfModuleStackId(String vfModuleStackId) {
127 this.vfModuleStackId = vfModuleStackId;
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;