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