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