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 cloudSiteId;
40 private MsoRequest msoRequest;
41 private String messageId;
42 private String mode = "HEAT"; // default
44 public VfModuleRollback() {
47 public VfModuleRollback(VnfRollback vrb, String vfModuleId, String vfModuleStackId, String messageId)
49 this.vnfId = vrb.getVnfId();
50 this.vfModuleId = vfModuleId;
51 this.vfModuleStackId = vfModuleStackId;
52 this.vfModuleCreated = vrb.getVnfCreated();
53 this.tenantId = vrb.getTenantId();
54 this.cloudSiteId = vrb.getCloudSiteId();
55 this.msoRequest = vrb.getMsoRequest();
56 this.messageId = messageId;
57 this.mode = vrb.getMode();
60 public VfModuleRollback(String vnfId, String vfModuleId,
61 String vfModuleStackId, boolean vfModuleCreated, String tenantId,
63 MsoRequest msoRequest,
67 this.vfModuleId = vfModuleId;
68 this.vfModuleStackId = vfModuleStackId;
69 this.vfModuleCreated = vfModuleCreated;
70 this.tenantId = tenantId;
71 this.cloudSiteId = cloudSiteId;
72 this.msoRequest = msoRequest;
73 this.messageId = messageId;
76 public String getVnfId() {
79 public void setVnfId(String vnfId) {
82 public String getVfModuleId() {
85 public void setVfModuleId(String vfModuleId) {
86 this.vfModuleId = vfModuleId;
88 public String getVfModuleStackId() {
89 return vfModuleStackId;
91 public void setVfModuleStackId(String vfModuleStackId) {
92 this.vfModuleStackId = vfModuleStackId;
94 public boolean isVfModuleCreated() {
95 return vfModuleCreated;
97 public void setVfModuleCreated(boolean vfModuleCreated) {
98 this.vfModuleCreated = vfModuleCreated;
100 public String getTenantId() {
103 public void setTenantId(String tenantId) {
104 this.tenantId = tenantId;
106 public String getCloudSiteId() {
109 public void setCloudSiteId(String cloudSiteId) {
110 this.cloudSiteId = cloudSiteId;
112 public MsoRequest getMsoRequest() {
115 public void setMsoRequest(MsoRequest msoRequest) {
116 this.msoRequest = msoRequest;
118 public String getMessageId() {
121 public void setMessageId(String messageId) {
122 this.messageId = messageId;
124 public String getMode() {
127 public void setMode(String mode) {