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.onap.so.adapters.vnf;
25 import org.onap.so.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() {
47 public void setVnfId(String vnfId) {
51 public String getTenantId() {
55 public void setTenantId(String tenantId) {
56 this.tenantId = tenantId;
59 public String getCloudSiteId() {
63 public void setCloudSiteId(String cloudId) {
64 this.cloudSiteId = cloudId;
67 public boolean getTenantCreated() {
71 public void setTenantCreated(boolean tenantCreated) {
72 this.tenantCreated = tenantCreated;
75 public boolean getVnfCreated() {
79 public void setVnfCreated(boolean vnfCreated) {
80 this.vnfCreated = vnfCreated;
83 public MsoRequest getMsoRequest() {
87 public void setMsoRequest(MsoRequest msoRequest) {
88 this.msoRequest = msoRequest;
91 public String getVolumeGroupName() {
92 return this.volumeGroupName;
95 public void setVolumeGroupName(String volumeGroupName) {
96 this.volumeGroupName = volumeGroupName;
99 public String getVolumeGroupId() {
100 return this.volumeGroupId;
103 public void setVolumeGroupId(String volumeGroupId) {
104 this.volumeGroupId = volumeGroupId;
107 public String getRequestType() {
108 return this.requestType;
111 public void setRequestType(String requestType) {
112 this.requestType = requestType;
115 public String getVolumeGroupHeatStackId() {
116 return this.volumeGroupHeatStackId;
119 public void setVolumeGroupHeatStackId(String volumeGroupHeatStackId) {
120 this.volumeGroupHeatStackId = volumeGroupHeatStackId;
123 public String getBaseGroupHeatStackId() {
124 return this.baseGroupHeatStackId;
127 public void setBaseGroupHeatStackId(String baseGroupHeatStackId) {
128 this.baseGroupHeatStackId = baseGroupHeatStackId;
131 public boolean isBase() {
135 public void setIsBase(boolean isBase) {
136 this.isBase = isBase;
139 public String getVfModuleStackId() {
140 return this.vfModuleStackId;
143 public void setVfModuleStackId(String vfModuleStackId) {
144 this.vfModuleStackId = vfModuleStackId;
148 public String toString() {
149 return "VfRollback: cloud=" + cloudSiteId + ", tenant=" + tenantId + ", vnf=" + vnfId + ", tenantCreated="
150 + tenantCreated + ", vnfCreated=" + vnfCreated + ", requestType = " + requestType
151 + ", volumeGroupHeatStackId = " + this.volumeGroupHeatStackId;