d98318d3e6635b36277486d7b86c58cf7c0ddc5f
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / CreateVolumeGroupResponse.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 java.util.HashMap;
25 import java.util.Map;
26
27 import javax.xml.bind.annotation.XmlRootElement;
28
29 import com.fasterxml.jackson.annotation.JsonRootName;
30
31
32 @JsonRootName("createVolumeGroupResponse")
33 @XmlRootElement(name = "createVolumeGroupResponse")
34 public class CreateVolumeGroupResponse extends VfResponseCommon {
35         private String volumeGroupId;
36         private String volumeGroupStackId;
37         private Boolean volumeGroupCreated;
38         private Map<String,String> volumeGroupOutputs = new HashMap<>();
39         private VolumeGroupRollback volumeGroupRollback = new VolumeGroupRollback();
40
41         public CreateVolumeGroupResponse() {
42                 super();
43         }
44
45         public CreateVolumeGroupResponse(
46                         String volumeGroupId,
47                         String volumeGroupStackId,
48                         Boolean volumeGroupCreated,
49                         Map<String, String> volumeGroupOutputs,
50                         VolumeGroupRollback volumeGroupRollback,
51                         String messageId)
52         {
53                 super(messageId);
54                 this.volumeGroupId = volumeGroupId;
55                 this.volumeGroupStackId = volumeGroupStackId;
56                 this.volumeGroupCreated = volumeGroupCreated;
57                 this.volumeGroupOutputs = volumeGroupOutputs;
58                 this.volumeGroupRollback = volumeGroupRollback;
59         }
60
61         public String getVolumeGroupId() {
62                 return volumeGroupId;
63         }
64
65         public void setVolumeGroupId(String volumeGroupId) {
66                 this.volumeGroupId = volumeGroupId;
67         }
68
69         public String getVolumeGroupStackId() {
70                 return volumeGroupStackId;
71         }
72
73         public void setVolumeGroupStackId(String volumeGroupStackId) {
74                 this.volumeGroupStackId = volumeGroupStackId;
75         }
76
77         public Boolean getVolumeGroupCreated() {
78                 return volumeGroupCreated;
79         }
80
81         public void setVolumeGroupCreated(Boolean volumeGroupCreated) {
82                 this.volumeGroupCreated = volumeGroupCreated;
83         }
84
85         public Map<String, String> getVolumeGroupOutputs() {
86                 return volumeGroupOutputs;
87         }
88
89         public void setVolumeGroupOutputs(Map<String, String> volumeGroupOutputs) {
90                 this.volumeGroupOutputs = volumeGroupOutputs;
91         }
92
93         public VolumeGroupRollback getVolumeGroupRollback() {
94                 return volumeGroupRollback;
95         }
96
97         public void setVolumeGroupRollback(VolumeGroupRollback volumeGroupRollback) {
98                 this.volumeGroupRollback = volumeGroupRollback;
99         }
100 }