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 java.util.HashMap;
26 import javax.xml.bind.annotation.XmlRootElement;
27 import com.fasterxml.jackson.annotation.JsonRootName;
30 @JsonRootName("createVolumeGroupResponse")
31 @XmlRootElement(name = "createVolumeGroupResponse")
32 public class CreateVolumeGroupResponse extends VfResponseCommon {
33 private String volumeGroupId;
34 private String volumeGroupStackId;
35 private Boolean volumeGroupCreated;
36 private Map<String, String> volumeGroupOutputs = new HashMap<>();
37 private VolumeGroupRollback volumeGroupRollback = new VolumeGroupRollback();
39 public CreateVolumeGroupResponse() {
43 public CreateVolumeGroupResponse(String volumeGroupId, String volumeGroupStackId, Boolean volumeGroupCreated,
44 Map<String, String> volumeGroupOutputs, VolumeGroupRollback volumeGroupRollback, String messageId) {
46 this.volumeGroupId = volumeGroupId;
47 this.volumeGroupStackId = volumeGroupStackId;
48 this.volumeGroupCreated = volumeGroupCreated;
49 this.volumeGroupOutputs = volumeGroupOutputs;
50 this.volumeGroupRollback = volumeGroupRollback;
53 public String getVolumeGroupId() {
57 public void setVolumeGroupId(String volumeGroupId) {
58 this.volumeGroupId = volumeGroupId;
61 public String getVolumeGroupStackId() {
62 return volumeGroupStackId;
65 public void setVolumeGroupStackId(String volumeGroupStackId) {
66 this.volumeGroupStackId = volumeGroupStackId;
69 public Boolean getVolumeGroupCreated() {
70 return volumeGroupCreated;
73 public void setVolumeGroupCreated(Boolean volumeGroupCreated) {
74 this.volumeGroupCreated = volumeGroupCreated;
77 public Map<String, String> getVolumeGroupOutputs() {
78 return volumeGroupOutputs;
81 public void setVolumeGroupOutputs(Map<String, String> volumeGroupOutputs) {
82 this.volumeGroupOutputs = volumeGroupOutputs;
85 public VolumeGroupRollback getVolumeGroupRollback() {
86 return volumeGroupRollback;
89 public void setVolumeGroupRollback(VolumeGroupRollback volumeGroupRollback) {
90 this.volumeGroupRollback = volumeGroupRollback;