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