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;
28 import com.fasterxml.jackson.annotation.JsonRootName;
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,
40 // “requestId”: “<REQUEST_ID>”,
41 // “serviceInstanceId”: “<SERVICE_INSTANCE_ID>”
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;
53 public VolumeGroupRollback() {
56 public VolumeGroupRollback(VolumeGroupRollback vrb, String volumeGroupStackId, String messageId)
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;
67 public VolumeGroupRollback(
69 String volumeGroupStackId,
70 boolean volumeGroupCreated,
73 MsoRequest msoRequest,
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;
86 public String getVolumeGroupId() {
89 public void setVolumeGroupId(String volumeGroupId) {
90 this.volumeGroupId = volumeGroupId;
92 public String getVolumeGroupStackId() {
93 return volumeGroupStackId;
95 public void setVolumeGroupStackId(String volumeGroupStackId) {
96 this.volumeGroupStackId = volumeGroupStackId;
98 public String getTenantId() {
101 public void setTenantId(String tenantId) {
102 this.tenantId = tenantId;
104 public String getCloudSiteId() {
107 public void setCloudSiteId(String cloudSiteId) {
108 this.cloudSiteId = cloudSiteId;
110 public boolean isVolumeGroupCreated() {
111 return volumeGroupCreated;
113 public void setVolumeGroupCreated(boolean volumeGroupCreated) {
114 this.volumeGroupCreated = volumeGroupCreated;
116 public MsoRequest getMsoRequest() {
119 public void setMsoRequest(MsoRequest msoRequest) {
120 this.msoRequest = msoRequest;
122 public String getMessageId() {
125 public void setMessageId(String messageId) {
126 this.messageId = messageId;