2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.adapters.vnfrest;
24 import java.util.HashMap;
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;
34 @JsonRootName("updateVfModuleRequest")
35 @XmlRootElement(name = "updateVfModuleRequest")
36 @XmlAccessorType(XmlAccessType.FIELD)
37 public class UpdateVfModuleRequest extends VfRequestCommon {
39 private String cloudSiteId;
40 private String cloudOwner;
41 private String tenantId;
44 private String vnfType;
45 private String vnfVersion;
47 private String vfModuleName;
48 private String vfModuleType;
49 private String vfModuleId;
50 private String vfModuleStackId;
52 private String volumeGroupId;
53 private String volumeGroupStackId;
55 private String baseVfModuleId;
56 private String baseVfModuleStackId;
58 private String modelCustomizationUuid;
60 private String requestType;
61 private Boolean failIfExists;
62 private Boolean backout;
64 @XmlJavaTypeAdapter(MapAdapter.class)
65 private Map<String, Object> vfModuleParams = new HashMap<>();
66 private MsoRequest msoRequest = new MsoRequest();
68 public String getCloudSiteId() {
72 public void setCloudSiteId(String cloudSiteId) {
73 this.cloudSiteId = cloudSiteId;
76 public String getCloudOwner() {
80 public void setCloudOwner(String cloudOwner) {
81 this.cloudOwner = cloudOwner;
84 public String getTenantId() {
88 public void setTenantId(String tenantId) {
89 this.tenantId = tenantId;
92 public String getVnfId() {
96 public void setVnfId(String vnfId) {
100 public String getVfModuleName() {
104 public void setVfModuleName(String vfModuleName) {
105 this.vfModuleName = vfModuleName;
108 public String getVnfType() {
112 public void setVnfType(String vnfType) {
113 this.vnfType = vnfType;
116 public String getVnfVersion() {
120 public void setVnfVersion(String vnfVersion) {
121 this.vnfVersion = vnfVersion;
124 public String getVfModuleId() {
128 public void setVfModuleId(String vfModuleId) {
129 this.vfModuleId = vfModuleId;
132 public String getVfModuleType() {
136 public void setVfModuleType(String vfModuleType) {
137 this.vfModuleType = vfModuleType;
140 public String getVfModuleStackId() {
141 return vfModuleStackId;
144 public void setVfModuleStackId(String vfModuleStackId) {
145 this.vfModuleStackId = vfModuleStackId;
148 public String getVolumeGroupId() {
149 return volumeGroupId;
152 public void setVolumeGroupId(String volumeGroupId) {
153 this.volumeGroupId = volumeGroupId;
156 public String getVolumeGroupStackId() {
157 return volumeGroupStackId;
160 public void setVolumeGroupStackId(String volumeGroupStackId) {
161 this.volumeGroupStackId = volumeGroupStackId;
164 public String getBaseVfModuleId() {
165 return baseVfModuleId;
168 public String getModelCustomizationUuid() {
169 return this.modelCustomizationUuid;
172 public void setModelCustomizationUuid(String modelCustomizationUuid) {
173 this.modelCustomizationUuid = modelCustomizationUuid;
176 public void setBaseVfModuleId(String baseVfModuleId) {
177 this.baseVfModuleId = baseVfModuleId;
180 public String getBaseVfModuleStackId() {
181 return baseVfModuleStackId;
184 public void setBaseVfModuleStackId(String baseVfModuleStackId) {
185 this.baseVfModuleStackId = baseVfModuleStackId;
188 public String getRequestType() {
192 public void setRequestType(String requestType) {
193 this.requestType = requestType;
196 public Boolean getFailIfExists() {
200 public void setFailIfExists(Boolean failIfExists) {
201 this.failIfExists = failIfExists;
204 public Boolean getBackout() {
208 public void setBackout(Boolean backout) {
209 this.backout = backout;
212 public Map<String, Object> getVfModuleParams() {
213 return vfModuleParams;
216 public void setVfModuleParams(Map<String, Object> vfModuleParams) {
217 this.vfModuleParams = vfModuleParams;
220 public MsoRequest getMsoRequest() {
224 public void setMsoRequest(MsoRequest msoRequest) {
225 this.msoRequest = msoRequest;