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.vnfrest;
24 import javax.xml.bind.annotation.XmlRootElement;
26 import org.onap.so.entity.MsoRequest;
27 import org.onap.so.openstack.beans.VnfRollback;
29 import com.fasterxml.jackson.annotation.JsonRootName;
31 @JsonRootName("VfModuleRollback")
32 @XmlRootElement(name = "VfModuleRollback")
33 public class VfModuleRollback {
35 private String vfModuleId;
36 private String vfModuleStackId;
37 private boolean vfModuleCreated = false;
38 private String tenantId;
39 private String cloudOwner;
40 private String cloudSiteId;
41 private MsoRequest msoRequest;
42 private String messageId;
43 private String mode = "HEAT"; // default
45 public VfModuleRollback() {
48 public VfModuleRollback(VnfRollback vrb, String vfModuleId, String vfModuleStackId, String messageId)
50 this.vnfId = vrb.getVnfId();
51 this.vfModuleId = vfModuleId;
52 this.vfModuleStackId = vfModuleStackId;
53 this.vfModuleCreated = vrb.getVnfCreated();
54 this.tenantId = vrb.getTenantId();
55 this.cloudOwner = vrb.getCloudOwner();
56 this.cloudSiteId = vrb.getCloudSiteId();
57 this.msoRequest = vrb.getMsoRequest();
58 this.messageId = messageId;
59 this.mode = vrb.getMode();
62 public VfModuleRollback(String vnfId, String vfModuleId,
63 String vfModuleStackId, boolean vfModuleCreated, String tenantId,
66 MsoRequest msoRequest,
70 this.vfModuleId = vfModuleId;
71 this.vfModuleStackId = vfModuleStackId;
72 this.vfModuleCreated = vfModuleCreated;
73 this.tenantId = tenantId;
74 this.cloudOwner = cloudOwner;
75 this.cloudSiteId = cloudSiteId;
76 this.msoRequest = msoRequest;
77 this.messageId = messageId;
80 public String getVnfId() {
83 public void setVnfId(String vnfId) {
86 public String getVfModuleId() {
89 public void setVfModuleId(String vfModuleId) {
90 this.vfModuleId = vfModuleId;
92 public String getVfModuleStackId() {
93 return vfModuleStackId;
95 public void setVfModuleStackId(String vfModuleStackId) {
96 this.vfModuleStackId = vfModuleStackId;
98 public boolean isVfModuleCreated() {
99 return vfModuleCreated;
101 public void setVfModuleCreated(boolean vfModuleCreated) {
102 this.vfModuleCreated = vfModuleCreated;
104 public String getTenantId() {
107 public void setTenantId(String tenantId) {
108 this.tenantId = tenantId;
110 public String getCloudSiteId() {
113 public void setCloudSiteId(String cloudSiteId) {
114 this.cloudSiteId = cloudSiteId;
116 public String getCloudOwner() {
119 public void setCloudOwner(String cloudOwner) {
120 this.cloudOwner = cloudOwner;
122 public MsoRequest getMsoRequest() {
125 public void setMsoRequest(MsoRequest msoRequest) {
126 this.msoRequest = msoRequest;
128 public String getMessageId() {
131 public void setMessageId(String messageId) {
132 this.messageId = messageId;
134 public String getMode() {
137 public void setMode(String mode) {