Merge "Reorder modifiers"
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / vnfrest / VolumeGroupRollback.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
28 import com.fasterxml.jackson.annotation.JsonRootName;
29
30 @JsonRootName("VolumeGroupRollback")
31 @XmlRootElement(name = "VolumeGroupRollback")
32 public class VolumeGroupRollback {
33 //      “volumeGroupRollback”: {
34 //      “volumeGroupId”: “<A&AI_ VOLUME_GROUP_ID>”,
35 //      “volumeGroupStackId”: “<VOLUME_GROUP _STACK_ID>”,
36 //       “tenantId”: “<TENANT_ID>”,
37 //      “cloudSiteId”: “<CLOUD_CLLI>”,
38 //      “volumeGroupCreated”: TRUE|FALSE,
39 //      “msoRequest”: {
40 //              “requestId”: “<REQUEST_ID>”,
41 //              “serviceInstanceId”: “<SERVICE_INSTANCE_ID>”
42 //      }
43 //},
44
45         private String volumeGroupId;
46         private String volumeGroupStackId;
47         private String tenantId;
48         private String cloudSiteId;
49         private boolean volumeGroupCreated = false;
50         private MsoRequest msoRequest;
51         private String messageId;
52
53         public VolumeGroupRollback() {
54         }
55
56         public VolumeGroupRollback(VolumeGroupRollback vrb, String volumeGroupStackId, String messageId)
57         {
58                 this.volumeGroupId      = vrb.getVolumeGroupId();
59                 this.volumeGroupStackId = volumeGroupStackId;
60                 this.tenantId           = vrb.getTenantId();
61                 this.cloudSiteId        = vrb.getCloudSiteId();
62                 this.volumeGroupCreated = vrb.isVolumeGroupCreated();
63                 this.msoRequest         = vrb.getMsoRequest();
64                 this.messageId          = messageId;
65         }
66
67         public VolumeGroupRollback(
68                         String volumeGroupId,
69                         String volumeGroupStackId,
70                         boolean volumeGroupCreated,
71                         String tenantId,
72                         String cloudSiteId,
73                         MsoRequest msoRequest,
74                         String messageId)
75         {
76                 super();
77                 this.volumeGroupId = volumeGroupId;
78                 this.volumeGroupStackId = volumeGroupStackId;
79                 this.volumeGroupCreated = volumeGroupCreated;
80                 this.tenantId = tenantId;
81                 this.cloudSiteId = cloudSiteId;
82                 this.msoRequest = msoRequest;
83                 this.messageId = messageId;
84         }
85
86         public String getVolumeGroupId() {
87                 return volumeGroupId;
88         }
89         public void setVolumeGroupId(String volumeGroupId) {
90                 this.volumeGroupId = volumeGroupId;
91         }
92         public String getVolumeGroupStackId() {
93                 return volumeGroupStackId;
94         }
95         public void setVolumeGroupStackId(String volumeGroupStackId) {
96                 this.volumeGroupStackId = volumeGroupStackId;
97         }
98         public String getTenantId() {
99                 return tenantId;
100         }
101         public void setTenantId(String tenantId) {
102                 this.tenantId = tenantId;
103         }
104         public String getCloudSiteId() {
105                 return cloudSiteId;
106         }
107         public void setCloudSiteId(String cloudSiteId) {
108                 this.cloudSiteId = cloudSiteId;
109         }
110         public boolean isVolumeGroupCreated() {
111                 return volumeGroupCreated;
112         }
113         public void setVolumeGroupCreated(boolean volumeGroupCreated) {
114                 this.volumeGroupCreated = volumeGroupCreated;
115         }
116         public MsoRequest getMsoRequest() {
117                 return msoRequest;
118         }
119         public void setMsoRequest(MsoRequest msoRequest) {
120                 this.msoRequest = msoRequest;
121         }
122         public String getMessageId() {
123                 return messageId;
124         }
125         public void setMessageId(String messageId) {
126                 this.messageId = messageId;
127         }
128 }