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.vnfrest;
 
  24 import javax.xml.bind.annotation.XmlRootElement;
 
  26 import org.openecomp.mso.entity.MsoRequest;
 
  27 import org.openecomp.mso.openstack.beans.VnfRollback;
 
  28 import org.jboss.resteasy.annotations.providers.NoJackson;
 
  29 import org.codehaus.jackson.map.annotate.JsonRootName;
 
  31 @JsonRootName("VfModuleRollback")
 
  32 @XmlRootElement(name = "VfModuleRollback")
 
  34 public class VfModuleRollback {
 
  36         private String vfModuleId;
 
  37         private String vfModuleStackId;
 
  38         private boolean vfModuleCreated = false;
 
  39         private String tenantId;
 
  40         private String cloudSiteId;
 
  41         private MsoRequest msoRequest;
 
  42         private String messageId;
 
  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;
 
  59         public VfModuleRollback(String vnfId, String vfModuleId,
 
  60                         String vfModuleStackId, boolean vfModuleCreated, String tenantId,
 
  62                         MsoRequest msoRequest,
 
  66                 this.vfModuleId = vfModuleId;
 
  67                 this.vfModuleStackId = vfModuleStackId;
 
  68                 this.vfModuleCreated = vfModuleCreated;
 
  69                 this.tenantId = tenantId;
 
  70                 this.cloudSiteId = cloudSiteId;
 
  71                 this.msoRequest = msoRequest;
 
  72                 this.messageId = messageId;
 
  75         public String getVnfId() {
 
  78         public void setVnfId(String vnfId) {
 
  81         public String getVfModuleId() {
 
  84         public void setVfModuleId(String vfModuleId) {
 
  85                 this.vfModuleId = vfModuleId;
 
  87         public String getVfModuleStackId() {
 
  88                 return vfModuleStackId;
 
  90         public void setVfModuleStackId(String vfModuleStackId) {
 
  91                 this.vfModuleStackId = vfModuleStackId;
 
  93         public boolean isVfModuleCreated() {
 
  94                 return vfModuleCreated;
 
  96         public void setVfModuleCreated(boolean vfModuleCreated) {
 
  97                 this.vfModuleCreated = vfModuleCreated;
 
  99         public String getTenantId() {
 
 102         public void setTenantId(String tenantId) {
 
 103                 this.tenantId = tenantId;
 
 105         public String getCloudSiteId() {
 
 108         public void setCloudSiteId(String cloudSiteId) {
 
 109                 this.cloudSiteId = cloudSiteId;
 
 111         public MsoRequest getMsoRequest() {
 
 114         public void setMsoRequest(MsoRequest msoRequest) {
 
 115                 this.msoRequest = msoRequest;
 
 117         public String getMessageId() {
 
 120         public void setMessageId(String messageId) {
 
 121                 this.messageId = messageId;