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.openecomp.mso.adapters.vnfrest;
24 import org.openecomp.mso.entity.MsoRequest;
27 import java.util.HashMap;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import org.jboss.resteasy.annotations.providers.NoJackson;
30 import org.codehaus.jackson.map.annotate.JsonRootName;
32 @JsonRootName("updateVfModuleRequest")
33 @XmlRootElement(name = "updateVfModuleRequest")
35 public class UpdateVfModuleRequest extends VfRequestCommon {
37 private String cloudSiteId;
38 private String tenantId;
41 private String vnfType;
42 private String vnfVersion;
44 private String vfModuleName;
45 private String vfModuleType;
46 private String vfModuleId;
47 private String vfModuleStackId;
49 private String volumeGroupId;
50 private String volumeGroupStackId;
52 private String baseVfModuleId;
53 private String baseVfModuleStackId;
55 private String requestType;
56 private Boolean failIfExists;
57 private Boolean backout;
59 private Map<String,String> vfModuleParams = new HashMap<String, String>();
60 private MsoRequest msoRequest = new MsoRequest();
62 public String getCloudSiteId() {
66 public void setCloudSiteId(String cloudSiteId) {
67 this.cloudSiteId = cloudSiteId;
70 public String getTenantId() {
74 public void setTenantId(String tenantId) {
75 this.tenantId = tenantId;
78 public String getVnfId() {
82 public void setVnfId(String vnfId) {
86 public String getVfModuleName() {
90 public void setVfModuleName(String vfModuleName) {
91 this.vfModuleName = vfModuleName;
94 public String getVnfType() {
98 public void setVnfType(String vnfType) {
99 this.vnfType = vnfType;
102 public String getVnfVersion() {
106 public void setVnfVersion(String vnfVersion) {
107 this.vnfVersion = vnfVersion;
110 public String getVfModuleId() {
114 public void setVfModuleId(String vfModuleId) {
115 this.vfModuleId = vfModuleId;
118 public String getVfModuleType() {
122 public void setVfModuleType(String vfModuleType) {
123 this.vfModuleType = vfModuleType;
126 public String getVfModuleStackId() {
127 return vfModuleStackId;
130 public void setVfModuleStackId(String vfModuleStackId) {
131 this.vfModuleStackId = vfModuleStackId;
134 public String getVolumeGroupId() {
135 return volumeGroupId;
138 public void setVolumeGroupId(String volumeGroupId) {
139 this.volumeGroupId = volumeGroupId;
142 public String getVolumeGroupStackId() {
143 return volumeGroupStackId;
146 public void setVolumeGroupStackId(String volumeGroupStackId) {
147 this.volumeGroupStackId = volumeGroupStackId;
150 public String getBaseVfModuleId() {
151 return baseVfModuleId;
154 public void setBaseVfModuleId(String baseVfModuleId) {
155 this.baseVfModuleId = baseVfModuleId;
158 public String getBaseVfModuleStackId() {
159 return baseVfModuleStackId;
162 public void setBaseVfModuleStackId(String baseVfModuleStackId) {
163 this.baseVfModuleStackId = baseVfModuleStackId;
166 public String getRequestType() {
170 public void setRequestType(String requestType) {
171 this.requestType = requestType;
174 public Boolean getFailIfExists() {
178 public void setFailIfExists(Boolean failIfExists) {
179 this.failIfExists = failIfExists;
182 public Boolean getBackout() {
186 public void setBackout(Boolean backout) {
187 this.backout = backout;
190 public Map<String, String> getVfModuleParams() {
191 return vfModuleParams;
194 public void setVfModuleParams(Map<String, String> vfModuleParams) {
195 this.vfModuleParams = vfModuleParams;
198 public MsoRequest getMsoRequest() {
202 public void setMsoRequest(MsoRequest msoRequest) {
203 this.msoRequest = msoRequest;