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;
23 import java.util.HashMap;
26 import javax.xml.bind.annotation.XmlRootElement;
28 import org.onap.so.entity.MsoRequest;
30 import com.fasterxml.jackson.annotation.JsonRootName;
33 Map<String, String> elements when marshalled to XML produce a list of <entry><key>${MsoUtils.xmlEscape(key)}</key><value>${MsoUtils.xmlEscape(value)}</value></entry> elements.
34 When marshalling to JSON they create a list of "${key}" : "${value}" pairs with no extra wrappers.
36 @JsonRootName("createVfModuleRequest")
37 @XmlRootElement(name = "createVfModuleRequest")
38 public class CreateVfModuleRequest extends VfRequestCommon {
39 private String cloudSiteId;
40 private String tenantId;
43 private String vnfType;
44 private String vnfVersion;
46 private String vfModuleId;
47 private String vfModuleName;
48 private String vfModuleType;
50 private String volumeGroupId;
51 private String volumeGroupStackId;
52 private String baseVfModuleId;
53 private String baseVfModuleStackId;
54 private String modelCustomizationUuid;
56 private String requestType;
57 private Boolean failIfExists;
58 private Boolean backout;
59 private Boolean enableBridge;
61 private Map<String, String> vfModuleParams = new HashMap<>();
62 private MsoRequest msoRequest = new MsoRequest();
64 public String getCloudSiteId() {
68 public void setCloudSiteId(String cloudSiteId) {
69 this.cloudSiteId = cloudSiteId;
72 public String getTenantId() {
76 public void setTenantId(String tenantId) {
77 this.tenantId = tenantId;
80 public String getVnfId() {
84 public void setVnfId(String vnfId) {
88 public String getVfModuleName() {
92 public void setVfModuleName(String vfModuleName) {
93 this.vfModuleName = vfModuleName;
96 public String getVnfType() {
100 public void setVnfType(String vnfType) {
101 this.vnfType = vnfType;
104 public String getVnfVersion() {
108 public void setVnfVersion(String vnfVersion) {
109 this.vnfVersion = vnfVersion;
112 public String getVfModuleId() {
116 public void setVfModuleId(String vfModuleId) {
117 this.vfModuleId = vfModuleId;
120 public String getVfModuleType() {
124 public void setVfModuleType(String vfModuleType) {
125 this.vfModuleType = vfModuleType;
128 public String getVolumeGroupId() {
129 return volumeGroupId;
132 public void setVolumeGroupId(String volumeGroupId) {
133 this.volumeGroupId = volumeGroupId;
136 public String getVolumeGroupStackId() {
137 return volumeGroupStackId;
140 public void setVolumeGroupStackId(String volumeGroupStackId) {
141 this.volumeGroupStackId = volumeGroupStackId;
144 public String getBaseVfModuleId() {
145 return baseVfModuleId;
148 public void setBaseVfModuleId(String baseVfModuleId) {
149 this.baseVfModuleId = baseVfModuleId;
152 public String getBaseVfModuleStackId() {
153 return baseVfModuleStackId;
156 public void setBaseVfModuleStackId(String baseVfModuleStackId) {
157 this.baseVfModuleStackId = baseVfModuleStackId;
160 public String getModelCustomizationUuid() {
161 return this.modelCustomizationUuid;
164 public void setModelCustomizationUuid(String modelCustomizationUuid) {
165 this.modelCustomizationUuid = modelCustomizationUuid;
168 public String getRequestType() {
172 public void setRequestType(String requestType) {
173 this.requestType = requestType;
176 public Boolean getFailIfExists() {
180 public void setFailIfExists(Boolean failIfExists) {
181 this.failIfExists = failIfExists;
184 public Boolean getBackout() {
188 public void setBackout(Boolean backout) {
189 this.backout = backout;
192 public Map<String, String> getVfModuleParams() {
193 return vfModuleParams;
196 public void setVfModuleParams(Map<String, String> vfModuleParams) {
197 this.vfModuleParams = vfModuleParams;
200 public MsoRequest getMsoRequest() {
204 public void setMsoRequest(MsoRequest msoRequest) {
205 this.msoRequest = msoRequest;
208 public Boolean getEnableBridge() {
209 return this.enableBridge;
212 public void setEnableBridge(Boolean enableBridge) {
213 this.enableBridge = enableBridge;