1290f2aeef9b0165d103f2e6152eb673afd628dc
[so.git] /
1 package org.onap.so.bpmn.servicedecomposition.tasks;
2
3 import java.util.Collections;
4 import java.util.List;
5 import java.util.Map;
6 import org.onap.so.bpmn.servicedecomposition.bbobjects.Customer;
7 import org.onap.so.bpmn.servicedecomposition.bbobjects.ServiceInstance;
8 import org.onap.so.bpmn.servicedecomposition.entities.ConfigurationResourceKeys;
9 import org.onap.so.bpmn.servicedecomposition.entities.ExecuteBuildingBlock;
10 import org.onap.so.bpmn.servicedecomposition.entities.ResourceKey;
11 import org.onap.so.bpmn.servicedecomposition.entities.ServiceModel;
12 import org.onap.so.db.catalog.beans.Service;
13 import org.onap.so.serviceinstancebeans.CloudConfiguration;
14 import org.onap.so.serviceinstancebeans.LineOfBusiness;
15 import org.onap.so.serviceinstancebeans.ModelInfo;
16 import org.onap.so.serviceinstancebeans.Platform;
17 import org.onap.so.serviceinstancebeans.RelatedInstanceList;
18 import org.onap.so.serviceinstancebeans.RequestDetails;
19
20 public class BBInputSetupParameter {
21     private CloudConfiguration cloudConfiguration;
22     private ConfigurationResourceKeys configurationResourceKeys;
23     private List<Map<String, String>> instanceParams;
24     private Map<ResourceKey, String> lookupKeyMap;
25     private ModelInfo modelInfo;
26     private LineOfBusiness lineOfBusiness;
27     private Platform platform;
28     private RelatedInstanceList[] relatedInstanceList;
29     private RequestDetails requestDetails;
30     private Service service;
31     private ServiceInstance serviceInstance;
32     private String bbName;
33     private String instanceGroupId;
34     private String instanceName;
35     private String productFamilyId;
36     private String resourceId;
37     private String vnfType;
38     private ExecuteBuildingBlock executeBB;
39     private String requestAction;
40     private boolean aLaCarte;
41     private Customer customer;
42     private String requestId;
43     private String configurationKey;
44     private String key;
45     private String applicationId;
46     private boolean isReplace;
47     private ServiceModel serviceModel;
48     private boolean isHelm;
49
50     private BBInputSetupParameter(Builder builder) {
51         this.cloudConfiguration = builder.cloudConfiguration;
52         this.configurationResourceKeys = builder.configurationResourceKeys;
53         this.instanceParams = builder.instanceParams;
54         this.lookupKeyMap = builder.lookupKeyMap;
55         this.modelInfo = builder.modelInfo;
56         this.lineOfBusiness = builder.lineOfBusiness;
57         this.platform = builder.platform;
58         this.relatedInstanceList = builder.relatedInstanceList;
59         this.requestDetails = builder.requestDetails;
60         this.service = builder.service;
61         this.serviceInstance = builder.serviceInstance;
62         this.bbName = builder.bbName;
63         this.instanceGroupId = builder.instanceGroupId;
64         this.instanceName = builder.instanceName;
65         this.productFamilyId = builder.productFamilyId;
66         this.resourceId = builder.resourceId;
67         this.vnfType = builder.vnfType;
68         this.executeBB = builder.executeBB;
69         this.requestAction = builder.requestAction;
70         this.aLaCarte = builder.aLaCarte;
71         this.customer = builder.customer;
72         this.requestId = builder.requestId;
73         this.configurationKey = builder.configurationKey;
74         this.key = builder.key;
75         this.applicationId = builder.applicationId;
76         this.isReplace = builder.isReplace;
77         this.serviceModel = builder.serviceModel;
78         this.isHelm = builder.isHelm;
79     }
80
81
82     protected CloudConfiguration getCloudConfiguration() {
83         return cloudConfiguration;
84     }
85
86
87     protected void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
88         this.cloudConfiguration = cloudConfiguration;
89     }
90
91
92     protected ConfigurationResourceKeys getConfigurationResourceKeys() {
93         return configurationResourceKeys;
94     }
95
96
97     protected void setConfigurationResourceKeys(ConfigurationResourceKeys configurationResourceKeys) {
98         this.configurationResourceKeys = configurationResourceKeys;
99     }
100
101
102     protected List<Map<String, String>> getInstanceParams() {
103         return instanceParams;
104     }
105
106
107     protected void setInstanceParams(List<Map<String, String>> instanceParams) {
108         this.instanceParams = instanceParams;
109     }
110
111
112     protected Map<ResourceKey, String> getLookupKeyMap() {
113         return lookupKeyMap;
114     }
115
116
117     protected void setLookupKeyMap(Map<ResourceKey, String> lookupKeyMap) {
118         this.lookupKeyMap = lookupKeyMap;
119     }
120
121
122     protected ModelInfo getModelInfo() {
123         return modelInfo;
124     }
125
126
127     protected void setModelInfo(ModelInfo modelInfo) {
128         this.modelInfo = modelInfo;
129     }
130
131
132     protected LineOfBusiness getLineOfBusiness() {
133         return lineOfBusiness;
134     }
135
136
137     protected void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
138         this.lineOfBusiness = lineOfBusiness;
139     }
140
141
142     protected Platform getPlatform() {
143         return platform;
144     }
145
146
147     protected void setPlatform(Platform platform) {
148         this.platform = platform;
149     }
150
151
152     protected RelatedInstanceList[] getRelatedInstanceList() {
153         return relatedInstanceList;
154     }
155
156
157     protected void setRelatedInstanceList(RelatedInstanceList[] relatedInstanceList) {
158         this.relatedInstanceList = relatedInstanceList;
159     }
160
161
162     protected RequestDetails getRequestDetails() {
163         return requestDetails;
164     }
165
166
167     protected void setRequestDetails(RequestDetails requestDetails) {
168         this.requestDetails = requestDetails;
169     }
170
171
172     protected Service getService() {
173         return service;
174     }
175
176
177     protected void setService(Service service) {
178         this.service = service;
179     }
180
181
182     protected ServiceInstance getServiceInstance() {
183         return serviceInstance;
184     }
185
186
187     protected void setServiceInstance(ServiceInstance serviceInstance) {
188         this.serviceInstance = serviceInstance;
189     }
190
191
192     protected String getBbName() {
193         return bbName;
194     }
195
196
197     protected void setBbName(String bbName) {
198         this.bbName = bbName;
199     }
200
201
202     protected String getInstanceGroupId() {
203         return instanceGroupId;
204     }
205
206
207     protected void setInstanceGroupId(String instanceGroupId) {
208         this.instanceGroupId = instanceGroupId;
209     }
210
211
212     protected String getInstanceName() {
213         return instanceName;
214     }
215
216
217     protected void setInstanceName(String instanceName) {
218         this.instanceName = instanceName;
219     }
220
221
222     protected String getProductFamilyId() {
223         return productFamilyId;
224     }
225
226
227     protected void setProductFamilyId(String productFamilyId) {
228         this.productFamilyId = productFamilyId;
229     }
230
231
232     protected String getResourceId() {
233         return resourceId;
234     }
235
236
237     protected void setResourceId(String resourceId) {
238         this.resourceId = resourceId;
239     }
240
241
242     protected String getVnfType() {
243         return vnfType;
244     }
245
246
247     protected void setVnfType(String vnfType) {
248         this.vnfType = vnfType;
249     }
250
251
252     protected ExecuteBuildingBlock getExecuteBB() {
253         return executeBB;
254     }
255
256
257     protected void setExecuteBB(ExecuteBuildingBlock executeBB) {
258         this.executeBB = executeBB;
259     }
260
261
262     protected String getRequestAction() {
263         return requestAction;
264     }
265
266
267     protected void setRequestAction(String requestAction) {
268         this.requestAction = requestAction;
269     }
270
271
272     protected boolean getaLaCarte() {
273         return aLaCarte;
274     }
275
276     protected void setaLaCarte(boolean aLaCarte) {
277         this.aLaCarte = aLaCarte;
278     }
279
280     protected Customer getCustomer() {
281         return customer;
282     }
283
284     protected void setCustomer(Customer customer) {
285         this.customer = customer;
286     }
287
288     protected void setRequestId(String requestId) {
289         this.requestId = requestId;
290     }
291
292     protected String getRequestId() {
293         return requestId;
294     }
295
296     protected void setConfigurationKey(String configurationKey) {
297         this.configurationKey = configurationKey;
298     }
299
300     protected String getConfigurationKey() {
301         return configurationKey;
302     }
303
304     protected String getKey() {
305         return key;
306     }
307
308     protected void setKey(String key) {
309         this.key = key;
310     }
311
312     protected String getApplicationId() {
313         return applicationId;
314     }
315
316     protected void setApplicationId(String applicationId) {
317         this.applicationId = applicationId;
318     }
319
320     protected boolean getIsReplace() {
321         return isReplace;
322     }
323
324     protected void setIsReplace(boolean isReplace) {
325         this.isReplace = isReplace;
326     }
327
328     protected ServiceModel getServiceModel() {
329         return this.serviceModel;
330     }
331
332     protected void setServiceModel(ServiceModel serviceModel) {
333         this.serviceModel = serviceModel;
334     }
335
336     protected boolean getIsHelm() {
337         return isHelm;
338     }
339
340
341     protected void setIsHelm(boolean isHelm) {
342         this.isHelm = isHelm;
343     }
344
345     public static class Builder {
346         private CloudConfiguration cloudConfiguration;
347         private ConfigurationResourceKeys configurationResourceKeys;
348         private List<Map<String, String>> instanceParams = Collections.emptyList();
349         private Map<ResourceKey, String> lookupKeyMap = Collections.emptyMap();
350         private ModelInfo modelInfo;
351         private LineOfBusiness lineOfBusiness;
352         private Platform platform;
353         private RelatedInstanceList[] relatedInstanceList;
354         private RequestDetails requestDetails;
355         private Service service;
356         private ServiceInstance serviceInstance;
357         private String bbName;
358         private String instanceGroupId;
359         private String instanceName;
360         private String productFamilyId;
361         private String resourceId;
362         private String vnfType;
363         private ExecuteBuildingBlock executeBB;
364         private String requestAction;
365         private boolean aLaCarte;
366         private Customer customer;
367         private String requestId;
368         private String configurationKey;
369         private String key;
370         private String applicationId;
371         private boolean isReplace;
372         private ServiceModel serviceModel;
373         private boolean isHelm;
374
375         public Builder setCloudConfiguration(CloudConfiguration cloudConfiguration) {
376             this.cloudConfiguration = cloudConfiguration;
377             return this;
378         }
379
380         public Builder setConfigurationResourceKeys(ConfigurationResourceKeys configurationResourceKeys) {
381             this.configurationResourceKeys = configurationResourceKeys;
382             return this;
383         }
384
385         public Builder setInstanceParams(List<Map<String, String>> instanceParams) {
386             this.instanceParams = instanceParams;
387             return this;
388         }
389
390         public Builder setLookupKeyMap(Map<ResourceKey, String> lookupKeyMap) {
391             this.lookupKeyMap = lookupKeyMap;
392             return this;
393         }
394
395         public Builder setModelInfo(ModelInfo modelInfo) {
396             this.modelInfo = modelInfo;
397             return this;
398         }
399
400         public Builder setLineOfBusiness(LineOfBusiness lineOfBusiness) {
401             this.lineOfBusiness = lineOfBusiness;
402             return this;
403         }
404
405         public Builder setPlatform(Platform platform) {
406             this.platform = platform;
407             return this;
408         }
409
410         public Builder setRelatedInstanceList(RelatedInstanceList[] relatedInstanceList) {
411             this.relatedInstanceList = relatedInstanceList;
412             return this;
413         }
414
415         public Builder setRequestDetails(RequestDetails requestDetails) {
416             this.requestDetails = requestDetails;
417             return this;
418         }
419
420         public Builder setService(Service service) {
421             this.service = service;
422             return this;
423         }
424
425         public Builder setServiceInstance(ServiceInstance serviceInstance) {
426             this.serviceInstance = serviceInstance;
427             return this;
428         }
429
430         public Builder setBbName(String bbName) {
431             this.bbName = bbName;
432             return this;
433         }
434
435         public Builder setInstanceGroupId(String instanceGroupId) {
436             this.instanceGroupId = instanceGroupId;
437             return this;
438         }
439
440         public Builder setInstanceName(String instanceName) {
441             this.instanceName = instanceName;
442             return this;
443         }
444
445         public Builder setProductFamilyId(String productFamilyId) {
446             this.productFamilyId = productFamilyId;
447             return this;
448         }
449
450         public Builder setResourceId(String resourceId) {
451             this.resourceId = resourceId;
452             return this;
453         }
454
455         public Builder setVnfType(String vnfType) {
456             this.vnfType = vnfType;
457             return this;
458         }
459
460         public Builder setExecuteBB(ExecuteBuildingBlock executeBB) {
461             this.executeBB = executeBB;
462             return this;
463         }
464
465         public Builder setRequestAction(String requestAction) {
466             this.requestAction = requestAction;
467             return this;
468         }
469
470         public Builder setALaCarte(boolean aLaCarte) {
471             this.aLaCarte = aLaCarte;
472             return this;
473         }
474
475         public Builder setCustomer(Customer customer) {
476             this.customer = customer;
477             return this;
478         }
479
480         public Builder setRequestId(String requestId) {
481             this.requestId = requestId;
482             return this;
483         }
484
485         public Builder setConfigurationKey(String configurationKey) {
486             this.configurationKey = configurationKey;
487             return this;
488         }
489
490         public Builder setKey(String key) {
491             this.key = key;
492             return this;
493         }
494
495         protected Builder setApplicationId(String applicationId) {
496             this.applicationId = applicationId;
497             return this;
498         }
499
500         protected Builder setIsReplace(boolean isReplace) {
501             this.isReplace = isReplace;
502             return this;
503         }
504
505         protected Builder setServiceModel(ServiceModel serviceModel) {
506             this.serviceModel = serviceModel;
507             return this;
508         }
509
510         protected boolean getIsHelm() {
511             return isHelm;
512         }
513
514
515         protected void setIsHelm(boolean isHelm) {
516             this.isHelm = isHelm;
517         }
518
519         public BBInputSetupParameter build() {
520             return new BBInputSetupParameter(this);
521         }
522     }
523
524 }