Containerization feature of SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / UpdateVolumeGroupResponse.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("updateVolumeGroupResponse")
33 @XmlRootElement(name = "updateVolumeGroupResponse")
34 public class UpdateVolumeGroupResponse extends VfResponseCommon {
35         private String volumeGroupId;
36         private String volumeGroupStackId;
37         private Map<String,String> volumeGroupOutputs;
38
39         public UpdateVolumeGroupResponse() {
40                 super();
41                 this.volumeGroupOutputs = new HashMap<>();
42         }
43
44         public UpdateVolumeGroupResponse(
45                         String volumeGroupId,
46                         String volumeGroupStackId,
47                         Map<String, String> volumeGroupOutputs,
48                         String messageId)
49         {
50                 super(messageId);
51                 this.volumeGroupId = volumeGroupId;
52                 this.volumeGroupStackId = volumeGroupStackId;
53                 this.volumeGroupOutputs = volumeGroupOutputs;
54         }
55
56         public String getVolumeGroupId() {
57                 return volumeGroupId;
58         }
59
60         public void setVolumeGroupId(String volumeGroupId) {
61                 this.volumeGroupId = volumeGroupId;
62         }
63
64         public String getVolumeGroupStackId() {
65                 return volumeGroupStackId;
66         }
67
68         public void setVolumeGroupStackId(String volumeGroupStackId) {
69                 this.volumeGroupStackId = volumeGroupStackId;
70         }
71
72         public Map<String, String> getVolumeGroupOutputs() {
73                 return volumeGroupOutputs;
74         }
75
76         public void setVolumeGroupOutputs(Map<String, String> volumeGroupOutputs) {
77                 this.volumeGroupOutputs = volumeGroupOutputs;
78         }
79 }