3b480d8ea94421fd7d8ad1f7d620137b01d7492d
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / QueryVfModuleResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
7  * Modifications Copyright (c) 2019 Samsung
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.so.adapters.vnfrest;
24
25 import java.util.Map;
26
27 import javax.xml.bind.annotation.XmlRootElement;
28 import org.onap.so.openstack.beans.VnfStatus;
29 import com.fasterxml.jackson.annotation.JsonRootName;
30 import org.slf4j.Logger;
31 import org.slf4j.LoggerFactory;
32
33 @JsonRootName("queryVfModuleResponse")
34 @XmlRootElement(name = "queryVfModuleResponse")
35 public class QueryVfModuleResponse extends VfResponseCommon{
36         private static final Logger logger = LoggerFactory.getLogger(QueryVfModuleResponse.class);
37         private String vnfId;
38         private String vfModuleId;
39         private String vfModuleStackId;
40         private VnfStatus vnfStatus;
41         private Map<String, String> vfModuleOutputs;
42
43         public QueryVfModuleResponse() {
44                 super();
45         }
46
47         public QueryVfModuleResponse(String vnfId, String vfModuleId, String vfModuleStackId, VnfStatus vnfStatus,
48                         Map<String, String> vfModuleOutputs) {
49                 super();
50                 this.vnfId = vnfId;
51                 this.vfModuleId = vfModuleId;
52                 this.vfModuleStackId = vfModuleStackId;
53                 this.vnfStatus = vnfStatus;
54                 this.vfModuleOutputs = vfModuleOutputs;
55         }
56
57         public String getVnfId() {
58                 return vnfId;
59         }
60
61         public void setVnfId(String vnfId) {
62                 this.vnfId = vnfId;
63         }
64
65         public String getVfModuleId() {
66                 return vfModuleId;
67         }
68
69         public void setVfModuleId(String vfModuleId) {
70                 this.vfModuleId = vfModuleId;
71         }
72
73         public String getVfModuleStackId() {
74                 return vfModuleStackId;
75         }
76
77         public void setVfModuleStackId(String vfModuleStackId) {
78                 this.vfModuleStackId = vfModuleStackId;
79         }
80
81         public VnfStatus getVnfStatus() {
82                 return vnfStatus;
83         }
84
85         public void setVnfStatus(VnfStatus vnfStatus) {
86                 this.vnfStatus = vnfStatus;
87         }
88
89         public Map<String, String> getVfModuleOutputs() {
90                 return vfModuleOutputs;
91         }
92
93         public void setVfModuleOutputs(Map<String, String> vfModuleOutputs) {
94                 this.vfModuleOutputs = vfModuleOutputs;
95         }
96         
97 }