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.codehaus.jackson.map.annotate.JsonRootName;
27 import org.jboss.resteasy.annotations.providers.NoJackson;
29 import org.openecomp.mso.entity.MsoRequest;
31 @JsonRootName("VolumeGroupRollback")
32 @XmlRootElement(name = "VolumeGroupRollback")
34 public class VolumeGroupRollback {
35 // “volumeGroupRollback”: {
36 // “volumeGroupId”: “<A&AI_ VOLUME_GROUP_ID>”,
37 // “volumeGroupStackId”: “<VOLUME_GROUP _STACK_ID>”,
38 // “tenantId”: “<TENANT_ID>”,
39 // “cloudSiteId”: “<CLOUD_CLLI>”,
40 // “volumeGroupCreated”: TRUE|FALSE,
42 // “requestId”: “<REQUEST_ID>”,
43 // “serviceInstanceId”: “<SERVICE_INSTANCE_ID>”
47 private String volumeGroupId;
48 private String volumeGroupStackId;
49 private String tenantId;
50 private String cloudSiteId;
51 private boolean volumeGroupCreated = false;
52 private MsoRequest msoRequest;
53 private String messageId;
55 public VolumeGroupRollback() {
58 public VolumeGroupRollback(VolumeGroupRollback vrb, String volumeGroupStackId, String messageId)
60 this.volumeGroupId = vrb.getVolumeGroupId();
61 this.volumeGroupStackId = volumeGroupStackId;
62 this.tenantId = vrb.getTenantId();
63 this.cloudSiteId = vrb.getCloudSiteId();
64 this.volumeGroupCreated = vrb.isVolumeGroupCreated();
65 this.msoRequest = vrb.getMsoRequest();
66 this.messageId = messageId;
69 public VolumeGroupRollback(
71 String volumeGroupStackId,
72 boolean volumeGroupCreated,
75 MsoRequest msoRequest,
79 this.volumeGroupId = volumeGroupId;
80 this.volumeGroupStackId = volumeGroupStackId;
81 this.volumeGroupCreated = volumeGroupCreated;
82 this.tenantId = tenantId;
83 this.cloudSiteId = cloudSiteId;
84 this.msoRequest = msoRequest;
85 this.messageId = messageId;
88 public String getVolumeGroupId() {
91 public void setVolumeGroupId(String volumeGroupId) {
92 this.volumeGroupId = volumeGroupId;
94 public String getVolumeGroupStackId() {
95 return volumeGroupStackId;
97 public void setVolumeGroupStackId(String volumeGroupStackId) {
98 this.volumeGroupStackId = volumeGroupStackId;
100 public String getTenantId() {
103 public void setTenantId(String tenantId) {
104 this.tenantId = tenantId;
106 public String getCloudSiteId() {
109 public void setCloudSiteId(String cloudSiteId) {
110 this.cloudSiteId = cloudSiteId;
112 public boolean isVolumeGroupCreated() {
113 return volumeGroupCreated;
115 public void setVolumeGroupCreated(boolean volumeGroupCreated) {
116 this.volumeGroupCreated = volumeGroupCreated;
118 public MsoRequest getMsoRequest() {
121 public void setMsoRequest(MsoRequest msoRequest) {
122 this.msoRequest = msoRequest;
124 public String getMessageId() {
127 public void setMessageId(String messageId) {
128 this.messageId = messageId;