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;
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;
32 import org.onap.so.entity.MsoRequest;
33 import org.onap.so.openstack.mappers.MapAdapter;
35 import com.fasterxml.jackson.annotation.JsonRootName;
37 @JsonRootName("updateVfModuleRequest")
38 @XmlRootElement(name = "updateVfModuleRequest")
39 @XmlAccessorType(XmlAccessType.FIELD)
40 public class UpdateVfModuleRequest extends VfRequestCommon {
42 private String cloudSiteId;
43 private String cloudOwner;
44 private String tenantId;
47 private String vnfType;
48 private String vnfVersion;
50 private String vfModuleName;
51 private String vfModuleType;
52 private String vfModuleId;
53 private String vfModuleStackId;
55 private String volumeGroupId;
56 private String volumeGroupStackId;
58 private String baseVfModuleId;
59 private String baseVfModuleStackId;
61 private String modelCustomizationUuid;
63 private String requestType;
64 private Boolean failIfExists;
65 private Boolean backout;
67 @XmlJavaTypeAdapter(MapAdapter.class)
68 private Map<String,Object> vfModuleParams = new HashMap<>();
69 private MsoRequest msoRequest = new MsoRequest();
71 public String getCloudSiteId() {
75 public void setCloudSiteId(String cloudSiteId) {
76 this.cloudSiteId = cloudSiteId;
79 public String getCloudOwner() {
83 public void setCloudOwner(String cloudOwner) {
84 this.cloudOwner = cloudOwner;
87 public String getTenantId() {
91 public void setTenantId(String tenantId) {
92 this.tenantId = tenantId;
95 public String getVnfId() {
99 public void setVnfId(String vnfId) {
103 public String getVfModuleName() {
107 public void setVfModuleName(String vfModuleName) {
108 this.vfModuleName = vfModuleName;
111 public String getVnfType() {
115 public void setVnfType(String vnfType) {
116 this.vnfType = vnfType;
119 public String getVnfVersion() {
123 public void setVnfVersion(String vnfVersion) {
124 this.vnfVersion = vnfVersion;
127 public String getVfModuleId() {
131 public void setVfModuleId(String vfModuleId) {
132 this.vfModuleId = vfModuleId;
135 public String getVfModuleType() {
139 public void setVfModuleType(String vfModuleType) {
140 this.vfModuleType = vfModuleType;
143 public String getVfModuleStackId() {
144 return vfModuleStackId;
147 public void setVfModuleStackId(String vfModuleStackId) {
148 this.vfModuleStackId = vfModuleStackId;
151 public String getVolumeGroupId() {
152 return volumeGroupId;
155 public void setVolumeGroupId(String volumeGroupId) {
156 this.volumeGroupId = volumeGroupId;
159 public String getVolumeGroupStackId() {
160 return volumeGroupStackId;
163 public void setVolumeGroupStackId(String volumeGroupStackId) {
164 this.volumeGroupStackId = volumeGroupStackId;
167 public String getBaseVfModuleId() {
168 return baseVfModuleId;
171 public String getModelCustomizationUuid() {
172 return this.modelCustomizationUuid;
175 public void setModelCustomizationUuid(String modelCustomizationUuid) {
176 this.modelCustomizationUuid = modelCustomizationUuid;
179 public void setBaseVfModuleId(String baseVfModuleId) {
180 this.baseVfModuleId = baseVfModuleId;
183 public String getBaseVfModuleStackId() {
184 return baseVfModuleStackId;
187 public void setBaseVfModuleStackId(String baseVfModuleStackId) {
188 this.baseVfModuleStackId = baseVfModuleStackId;
191 public String getRequestType() {
195 public void setRequestType(String requestType) {
196 this.requestType = requestType;
199 public Boolean getFailIfExists() {
203 public void setFailIfExists(Boolean failIfExists) {
204 this.failIfExists = failIfExists;
207 public Boolean getBackout() {
211 public void setBackout(Boolean backout) {
212 this.backout = backout;
215 public Map<String, Object> getVfModuleParams() {
216 return vfModuleParams;
219 public void setVfModuleParams(Map<String, Object> vfModuleParams) {
220 this.vfModuleParams = vfModuleParams;
223 public MsoRequest getMsoRequest() {
227 public void setMsoRequest(MsoRequest msoRequest) {
228 this.msoRequest = msoRequest;