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 java.util.HashMap;
27 import javax.xml.bind.annotation.XmlRootElement;
29 import org.openecomp.mso.entity.MsoRequest;
31 import com.fasterxml.jackson.annotation.JsonRootName;
35 Map<String, String> elements when marshalled to XML produce a list of <entry><key>${key}</key><value>${value}</value></entry> elements.
36 When marshalling to JSON they create a list of "${key}" : "${value}" pairs with no extra wrappers.
38 @JsonRootName("createVfModuleRequest")
39 @XmlRootElement(name = "createVfModuleRequest")
40 public class CreateVfModuleRequest extends VfRequestCommon {
41 private String cloudSiteId;
42 private String tenantId;
45 private String vnfType;
46 private String vnfVersion;
48 private String vfModuleId;
49 private String vfModuleName;
50 private String vfModuleType;
52 private String volumeGroupId;
53 private String volumeGroupStackId;
54 private String baseVfModuleId;
55 private String baseVfModuleStackId;
56 private String modelCustomizationUuid;
58 private String requestType;
59 private Boolean failIfExists;
60 private Boolean backout;
62 private Map<String,String> vfModuleParams = new HashMap<>();
63 private MsoRequest msoRequest = new MsoRequest();
65 public String getCloudSiteId() {
69 public void setCloudSiteId(String cloudSiteId) {
70 this.cloudSiteId = cloudSiteId;
73 public String getTenantId() {
77 public void setTenantId(String tenantId) {
78 this.tenantId = tenantId;
81 public String getVnfId() {
85 public void setVnfId(String vnfId) {
89 public String getVfModuleName() {
93 public void setVfModuleName(String vfModuleName) {
94 this.vfModuleName = vfModuleName;
97 public String getVnfType() {
101 public void setVnfType(String vnfType) {
102 this.vnfType = vnfType;
105 public String getVnfVersion() {
109 public void setVnfVersion(String vnfVersion) {
110 this.vnfVersion = vnfVersion;
113 public String getVfModuleId() {
117 public void setVfModuleId(String vfModuleId) {
118 this.vfModuleId = vfModuleId;
121 public String getVfModuleType() {
125 public void setVfModuleType(String vfModuleType) {
126 this.vfModuleType = vfModuleType;
129 public String getVolumeGroupId() {
130 return volumeGroupId;
133 public void setVolumeGroupId(String volumeGroupId) {
134 this.volumeGroupId = volumeGroupId;
137 public String getVolumeGroupStackId() {
138 return volumeGroupStackId;
141 public void setVolumeGroupStackId(String volumeGroupStackId) {
142 this.volumeGroupStackId = volumeGroupStackId;
145 public String getBaseVfModuleId() {
146 return baseVfModuleId;
149 public void setBaseVfModuleId(String baseVfModuleId) {
150 this.baseVfModuleId = baseVfModuleId;
153 public String getBaseVfModuleStackId() {
154 return baseVfModuleStackId;
157 public void setBaseVfModuleStackId(String baseVfModuleStackId) {
158 this.baseVfModuleStackId = baseVfModuleStackId;
161 public String getModelCustomizationUuid() {
162 return this.modelCustomizationUuid;
165 public void setModelCustomizationUuid(String modelCustomizationUuid) {
166 this.modelCustomizationUuid = modelCustomizationUuid;
169 public String getRequestType() {
173 public void setRequestType(String requestType) {
174 this.requestType = requestType;
177 public Boolean getFailIfExists() {
181 public void setFailIfExists(Boolean failIfExists) {
182 this.failIfExists = failIfExists;
185 public Boolean getBackout() {
189 public void setBackout(Boolean backout) {
190 this.backout = backout;
193 public Map<String, String> getVfModuleParams() {
194 return vfModuleParams;
197 public void setVfModuleParams(Map<String, String> vfModuleParams) {
198 this.vfModuleParams = vfModuleParams;
201 public MsoRequest getMsoRequest() {
205 public void setMsoRequest(MsoRequest msoRequest) {
206 this.msoRequest = msoRequest;