c62dc0dfbfe21d2232b1fdc06ae58d591491b72c
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / CreateVfModuleRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.adapters.vnfrest;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26 import javax.xml.bind.annotation.XmlRootElement;
27
28 import org.onap.so.entity.MsoRequest;
29
30 import com.fasterxml.jackson.annotation.JsonRootName;
31
32 /* README
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.
35 */
36 @JsonRootName("createVfModuleRequest")
37 @XmlRootElement(name = "createVfModuleRequest")
38 public class CreateVfModuleRequest extends VfRequestCommon {
39         private String cloudSiteId;
40         private String tenantId;
41
42         private String vnfId;
43         private String vnfType;
44         private String vnfVersion;
45
46         private String vfModuleId;
47         private String vfModuleName;
48         private String vfModuleType;
49
50         private String volumeGroupId;
51         private String volumeGroupStackId;
52         private String baseVfModuleId;
53         private String baseVfModuleStackId;
54         private String modelCustomizationUuid;
55
56         private String requestType;
57         private Boolean failIfExists = false;
58         private Boolean backout = true;
59         private Boolean enableBridge;
60
61         private Map<String, Object> vfModuleParams = new HashMap<>();
62         private MsoRequest msoRequest = new MsoRequest();
63
64         public String getCloudSiteId() {
65                 return cloudSiteId;
66         }
67
68         public void setCloudSiteId(String cloudSiteId) {
69                 this.cloudSiteId = cloudSiteId;
70         }
71
72         public String getTenantId() {
73                 return tenantId;
74         }
75
76         public void setTenantId(String tenantId) {
77                 this.tenantId = tenantId;
78         }
79
80         public String getVnfId() {
81                 return vnfId;
82         }
83
84         public void setVnfId(String vnfId) {
85                 this.vnfId = vnfId;
86         }
87
88         public String getVfModuleName() {
89                 return vfModuleName;
90         }
91
92         public void setVfModuleName(String vfModuleName) {
93                 this.vfModuleName = vfModuleName;
94         }
95
96         public String getVnfType() {
97                 return vnfType;
98         }
99
100         public void setVnfType(String vnfType) {
101                 this.vnfType = vnfType;
102         }
103
104         public String getVnfVersion() {
105                 return vnfVersion;
106         }
107
108         public void setVnfVersion(String vnfVersion) {
109                 this.vnfVersion = vnfVersion;
110         }
111
112         public String getVfModuleId() {
113                 return vfModuleId;
114         }
115
116         public void setVfModuleId(String vfModuleId) {
117                 this.vfModuleId = vfModuleId;
118         }
119
120         public String getVfModuleType() {
121                 return vfModuleType;
122         }
123
124         public void setVfModuleType(String vfModuleType) {
125                 this.vfModuleType = vfModuleType;
126         }
127
128         public String getVolumeGroupId() {
129                 return volumeGroupId;
130         }
131
132         public void setVolumeGroupId(String volumeGroupId) {
133                 this.volumeGroupId = volumeGroupId;
134         }
135
136         public String getVolumeGroupStackId() {
137                 return volumeGroupStackId;
138         }
139
140         public void setVolumeGroupStackId(String volumeGroupStackId) {
141                 this.volumeGroupStackId = volumeGroupStackId;
142         }
143
144         public String getBaseVfModuleId() {
145                 return baseVfModuleId;
146         }
147
148         public void setBaseVfModuleId(String baseVfModuleId) {
149                 this.baseVfModuleId = baseVfModuleId;
150         }
151
152         public String getBaseVfModuleStackId() {
153                 return baseVfModuleStackId;
154         }
155
156         public void setBaseVfModuleStackId(String baseVfModuleStackId) {
157                 this.baseVfModuleStackId = baseVfModuleStackId;
158         }
159
160         public String getModelCustomizationUuid() {
161                 return this.modelCustomizationUuid;
162         }
163
164         public void setModelCustomizationUuid(String modelCustomizationUuid) {
165                 this.modelCustomizationUuid = modelCustomizationUuid;
166         }
167
168         public String getRequestType() {
169                 return requestType;
170         }
171
172         public void setRequestType(String requestType) {
173                 this.requestType = requestType;
174         }
175
176         public Boolean getFailIfExists() {
177                 return failIfExists;
178         }
179
180         public void setFailIfExists(Boolean failIfExists) {
181                 this.failIfExists = failIfExists;
182         }
183
184         public Boolean getBackout() {
185                 return backout;
186         }
187
188         public void setBackout(Boolean backout) {
189                 this.backout = backout;
190         }
191
192         public Map<String, Object> getVfModuleParams() {
193                 return vfModuleParams;
194         }
195
196         public void setVfModuleParams(Map<String, Object> vfModuleParams) {
197                 this.vfModuleParams = vfModuleParams;
198         }
199
200         public MsoRequest getMsoRequest() {
201                 return msoRequest;
202         }
203
204         public void setMsoRequest(MsoRequest msoRequest) {
205                 this.msoRequest = msoRequest;
206         }
207
208         public Boolean getEnableBridge() {
209                 return this.enableBridge;
210         }
211
212         public void setEnableBridge(Boolean enableBridge) {
213                 this.enableBridge = enableBridge;
214         }
215 }