a02dc1f94ef774f44819000eabfa65c1cfc0773c
[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 cloudOwner;
44         private String tenantId;
45
46         private String vnfId;
47         private String vnfType;
48         private String vnfVersion;
49
50         private String vfModuleName;
51         private String vfModuleType;
52         private String vfModuleId;
53         private String vfModuleStackId;
54
55         private String volumeGroupId;
56         private String volumeGroupStackId;
57
58         private String baseVfModuleId;
59         private String baseVfModuleStackId;
60
61         private String modelCustomizationUuid;
62
63         private String requestType;
64         private Boolean failIfExists;
65         private Boolean backout;
66
67         @XmlJavaTypeAdapter(MapAdapter.class)
68         private Map<String,Object> vfModuleParams = new HashMap<>();
69         private MsoRequest msoRequest = new MsoRequest();
70
71         public String getCloudSiteId() {
72                 return cloudSiteId;
73         }
74
75         public void setCloudSiteId(String cloudSiteId) {
76                 this.cloudSiteId = cloudSiteId;
77         }
78
79     public String getCloudOwner() {
80         return cloudOwner;
81     }
82
83     public void setCloudOwner(String cloudOwner) {
84         this.cloudOwner = cloudOwner;
85     }
86
87         public String getTenantId() {
88                 return tenantId;
89         }
90
91         public void setTenantId(String tenantId) {
92                 this.tenantId = tenantId;
93         }
94
95         public String getVnfId() {
96                 return vnfId;
97         }
98
99         public void setVnfId(String vnfId) {
100                 this.vnfId = vnfId;
101         }
102
103         public String getVfModuleName() {
104                 return vfModuleName;
105         }
106
107         public void setVfModuleName(String vfModuleName) {
108                 this.vfModuleName = vfModuleName;
109         }
110
111         public String getVnfType() {
112                 return vnfType;
113         }
114
115         public void setVnfType(String vnfType) {
116                 this.vnfType = vnfType;
117         }
118
119         public String getVnfVersion() {
120                 return vnfVersion;
121         }
122
123         public void setVnfVersion(String vnfVersion) {
124                 this.vnfVersion = vnfVersion;
125         }
126
127         public String getVfModuleId() {
128                 return vfModuleId;
129         }
130
131         public void setVfModuleId(String vfModuleId) {
132                 this.vfModuleId = vfModuleId;
133         }
134
135         public String getVfModuleType() {
136                 return vfModuleType;
137         }
138
139         public void setVfModuleType(String vfModuleType) {
140                 this.vfModuleType = vfModuleType;
141         }
142
143         public String getVfModuleStackId() {
144                 return vfModuleStackId;
145         }
146
147         public void setVfModuleStackId(String vfModuleStackId) {
148                 this.vfModuleStackId = vfModuleStackId;
149         }
150
151         public String getVolumeGroupId() {
152                 return volumeGroupId;
153         }
154
155         public void setVolumeGroupId(String volumeGroupId) {
156                 this.volumeGroupId = volumeGroupId;
157         }
158
159         public String getVolumeGroupStackId() {
160                 return volumeGroupStackId;
161         }
162
163         public void setVolumeGroupStackId(String volumeGroupStackId) {
164                 this.volumeGroupStackId = volumeGroupStackId;
165         }
166
167         public String getBaseVfModuleId() {
168                 return baseVfModuleId;
169         }
170
171         public String getModelCustomizationUuid() {
172                 return this.modelCustomizationUuid;
173         }
174
175         public void setModelCustomizationUuid(String modelCustomizationUuid) {
176                 this.modelCustomizationUuid = modelCustomizationUuid;
177         }
178
179         public void setBaseVfModuleId(String baseVfModuleId) {
180                 this.baseVfModuleId = baseVfModuleId;
181         }
182
183         public String getBaseVfModuleStackId() {
184                 return baseVfModuleStackId;
185         }
186
187         public void setBaseVfModuleStackId(String baseVfModuleStackId) {
188                 this.baseVfModuleStackId = baseVfModuleStackId;
189         }
190
191         public String getRequestType() {
192                 return requestType;
193         }
194
195         public void setRequestType(String requestType) {
196                 this.requestType = requestType;
197         }
198
199         public Boolean getFailIfExists() {
200                 return failIfExists;
201         }
202
203         public void setFailIfExists(Boolean failIfExists) {
204                 this.failIfExists = failIfExists;
205         }
206
207         public Boolean getBackout() {
208                 return backout;
209         }
210
211         public void setBackout(Boolean backout) {
212                 this.backout = backout;
213         }
214
215         public Map<String, Object> getVfModuleParams() {
216                 return vfModuleParams;
217         }
218
219         public void setVfModuleParams(Map<String, Object> vfModuleParams) {
220                 this.vfModuleParams = vfModuleParams;
221         }
222
223         public MsoRequest getMsoRequest() {
224                 return msoRequest;
225         }
226
227         public void setMsoRequest(MsoRequest msoRequest) {
228                 this.msoRequest = msoRequest;
229         }
230 }