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;
25 import org.onap.so.entity.MsoRequest;
26 import com.fasterxml.jackson.annotation.JsonRootName;
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,
39 // “requestId”: “<REQUEST_ID>”,
40 // “serviceInstanceId”: “<SERVICE_INSTANCE_ID>”
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;
53 public VolumeGroupRollback() {}
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;
66 public VolumeGroupRollback(String volumeGroupId, String volumeGroupStackId, boolean volumeGroupCreated,
67 String tenantId, String cloudOwnerId, String cloudSiteId, MsoRequest msoRequest, String messageId) {
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;
79 public String getVolumeGroupId() {
83 public void setVolumeGroupId(String volumeGroupId) {
84 this.volumeGroupId = volumeGroupId;
87 public String getVolumeGroupStackId() {
88 return volumeGroupStackId;
91 public void setVolumeGroupStackId(String volumeGroupStackId) {
92 this.volumeGroupStackId = volumeGroupStackId;
95 public String getTenantId() {
99 public void setTenantId(String tenantId) {
100 this.tenantId = tenantId;
103 public String getCloudSiteId() {
107 public void setCloudSiteId(String cloudSiteId) {
108 this.cloudSiteId = cloudSiteId;
111 public String getCloudOwnerId() {
115 public void setCloudOwnerId(String cloudOwnerId) {
116 this.cloudOwnerId = cloudOwnerId;
119 public boolean isVolumeGroupCreated() {
120 return volumeGroupCreated;
123 public void setVolumeGroupCreated(boolean volumeGroupCreated) {
124 this.volumeGroupCreated = volumeGroupCreated;
127 public MsoRequest getMsoRequest() {
131 public void setMsoRequest(MsoRequest msoRequest) {
132 this.msoRequest = msoRequest;
135 public String getMessageId() {
139 public void setMessageId(String messageId) {
140 this.messageId = messageId;