Openstack adapter can't resolve HEAT parameter
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / UpdateVfModuleRequest.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.XmlAccessType;
28 import javax.xml.bind.annotation.XmlAccessorType;
29 import javax.xml.bind.annotation.XmlRootElement;
30 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
31
32 import org.onap.so.entity.MsoRequest;
33 import org.onap.so.openstack.mappers.MapAdapter;
34
35 import com.fasterxml.jackson.annotation.JsonRootName;
36
37 @JsonRootName("updateVfModuleRequest")
38 @XmlRootElement(name = "updateVfModuleRequest")
39 @XmlAccessorType(XmlAccessType.FIELD)
40 public class UpdateVfModuleRequest extends VfRequestCommon {
41
42         private String cloudSiteId;
43         private String tenantId;
44
45         private String vnfId;
46         private String vnfType;
47         private String vnfVersion;
48
49         private String vfModuleName;
50         private String vfModuleType;
51         private String vfModuleId;
52         private String vfModuleStackId;
53
54         private String volumeGroupId;
55         private String volumeGroupStackId;
56
57         private String baseVfModuleId;
58         private String baseVfModuleStackId;
59
60         private String modelCustomizationUuid;
61
62         private String requestType;
63         private Boolean failIfExists;
64         private Boolean backout;
65         
66         @XmlJavaTypeAdapter(MapAdapter.class)
67         private Map<String,Object> vfModuleParams = new HashMap<>();
68         private MsoRequest msoRequest = new MsoRequest();
69
70         public String getCloudSiteId() {
71                 return cloudSiteId;
72         }
73
74         public void setCloudSiteId(String cloudSiteId) {
75                 this.cloudSiteId = cloudSiteId;
76         }
77
78         public String getTenantId() {
79                 return tenantId;
80         }
81
82         public void setTenantId(String tenantId) {
83                 this.tenantId = tenantId;
84         }
85
86         public String getVnfId() {
87                 return vnfId;
88         }
89
90         public void setVnfId(String vnfId) {
91                 this.vnfId = vnfId;
92         }
93
94         public String getVfModuleName() {
95                 return vfModuleName;
96         }
97
98         public void setVfModuleName(String vfModuleName) {
99                 this.vfModuleName = vfModuleName;
100         }
101
102         public String getVnfType() {
103                 return vnfType;
104         }
105
106         public void setVnfType(String vnfType) {
107                 this.vnfType = vnfType;
108         }
109
110         public String getVnfVersion() {
111                 return vnfVersion;
112         }
113
114         public void setVnfVersion(String vnfVersion) {
115                 this.vnfVersion = vnfVersion;
116         }
117
118         public String getVfModuleId() {
119                 return vfModuleId;
120         }
121
122         public void setVfModuleId(String vfModuleId) {
123                 this.vfModuleId = vfModuleId;
124         }
125
126         public String getVfModuleType() {
127                 return vfModuleType;
128         }
129
130         public void setVfModuleType(String vfModuleType) {
131                 this.vfModuleType = vfModuleType;
132         }
133
134         public String getVfModuleStackId() {
135                 return vfModuleStackId;
136         }
137
138         public void setVfModuleStackId(String vfModuleStackId) {
139                 this.vfModuleStackId = vfModuleStackId;
140         }
141
142         public String getVolumeGroupId() {
143                 return volumeGroupId;
144         }
145
146         public void setVolumeGroupId(String volumeGroupId) {
147                 this.volumeGroupId = volumeGroupId;
148         }
149
150         public String getVolumeGroupStackId() {
151                 return volumeGroupStackId;
152         }
153
154         public void setVolumeGroupStackId(String volumeGroupStackId) {
155                 this.volumeGroupStackId = volumeGroupStackId;
156         }
157
158         public String getBaseVfModuleId() {
159                 return baseVfModuleId;
160         }
161
162         public String getModelCustomizationUuid() {
163                 return this.modelCustomizationUuid;
164         }
165
166         public void setModelCustomizationUuid(String modelCustomizationUuid) {
167                 this.modelCustomizationUuid = modelCustomizationUuid;
168         }
169
170         public void setBaseVfModuleId(String baseVfModuleId) {
171                 this.baseVfModuleId = baseVfModuleId;
172         }
173
174         public String getBaseVfModuleStackId() {
175                 return baseVfModuleStackId;
176         }
177
178         public void setBaseVfModuleStackId(String baseVfModuleStackId) {
179                 this.baseVfModuleStackId = baseVfModuleStackId;
180         }
181
182         public String getRequestType() {
183                 return requestType;
184         }
185
186         public void setRequestType(String requestType) {
187                 this.requestType = requestType;
188         }
189
190         public Boolean getFailIfExists() {
191                 return failIfExists;
192         }
193
194         public void setFailIfExists(Boolean failIfExists) {
195                 this.failIfExists = failIfExists;
196         }
197
198         public Boolean getBackout() {
199                 return backout;
200         }
201
202         public void setBackout(Boolean backout) {
203                 this.backout = backout;
204         }
205
206         public Map<String, Object> getVfModuleParams() {
207                 return vfModuleParams;
208         }
209
210         public void setVfModuleParams(Map<String, Object> vfModuleParams) {
211                 this.vfModuleParams = vfModuleParams;
212         }
213
214         public MsoRequest getMsoRequest() {
215                 return msoRequest;
216         }
217
218         public void setMsoRequest(MsoRequest msoRequest) {
219                 this.msoRequest = msoRequest;
220         }
221 }