Change the header to SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / vnfrest / VfModuleRollback.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.mso.adapters.vnfrest;
22
23
24 import javax.xml.bind.annotation.XmlRootElement;
25
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;
30
31 @JsonRootName("VfModuleRollback")
32 @XmlRootElement(name = "VfModuleRollback")
33 @NoJackson
34 public class VfModuleRollback {
35         private String vnfId;
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;
43
44         public VfModuleRollback() {
45         }
46
47         public VfModuleRollback(VnfRollback vrb, String vfModuleId, String vfModuleStackId, String messageId)
48         {
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         }
58
59         public VfModuleRollback(String vnfId, String vfModuleId,
60                         String vfModuleStackId, boolean vfModuleCreated, String tenantId,
61                         String cloudSiteId,
62                         MsoRequest msoRequest,
63                         String messageId) {
64                 super();
65                 this.vnfId = vnfId;
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;
73         }
74
75         public String getVnfId() {
76                 return vnfId;
77         }
78         public void setVnfId(String vnfId) {
79                 this.vnfId = vnfId;
80         }
81         public String getVfModuleId() {
82                 return vfModuleId;
83         }
84         public void setVfModuleId(String vfModuleId) {
85                 this.vfModuleId = vfModuleId;
86         }
87         public String getVfModuleStackId() {
88                 return vfModuleStackId;
89         }
90         public void setVfModuleStackId(String vfModuleStackId) {
91                 this.vfModuleStackId = vfModuleStackId;
92         }
93         public boolean isVfModuleCreated() {
94                 return vfModuleCreated;
95         }
96         public void setVfModuleCreated(boolean vfModuleCreated) {
97                 this.vfModuleCreated = vfModuleCreated;
98         }
99         public String getTenantId() {
100                 return tenantId;
101         }
102         public void setTenantId(String tenantId) {
103                 this.tenantId = tenantId;
104         }
105         public String getCloudSiteId() {
106                 return cloudSiteId;
107         }
108         public void setCloudSiteId(String cloudSiteId) {
109                 this.cloudSiteId = cloudSiteId;
110         }
111         public MsoRequest getMsoRequest() {
112                 return msoRequest;
113         }
114         public void setMsoRequest(MsoRequest msoRequest) {
115                 this.msoRequest = msoRequest;
116         }
117         public String getMessageId() {
118                 return messageId;
119         }
120         public void setMessageId(String messageId) {
121                 this.messageId = messageId;
122         }
123 }