Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / vdu / utils / VduBlueprint.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.vdu.utils;
22
23 import java.util.Map;
24
25 /*
26  * This Java bean class describes the template model of a VDU as distributed by SDC to SO. It is composed of one or more
27  * templates, one of which must be the main template,
28  * 
29  * The structure of this class corresponds to the format in which the templates and associated artifacts are represented
30  * in the SO Catalog.
31  * 
32  * The map keys will be the "path" that is used to reference these artifacts within the other templates. This may be
33  * relevant to how different VDU plugins package the files for delivery to the sub-orchestrator.
34  * 
35  * In the future, it is possible that pre-packaged blueprints (e.g. complete TOSCA CSARs) could be stored in the catalog
36  * (and added to this structure).
37  * 
38  * This bean is passed as an input to instantiateVdu and updateVdu.
39  */
40
41 public class VduBlueprint {
42     String vduModelId;
43     String mainTemplateName;
44     Map<String, byte[]> templateFiles;
45     Map<String, byte[]> attachedFiles;
46
47     public String getVduModelId() {
48         return vduModelId;
49     }
50
51     public void setVduModelId(String vduModelId) {
52         this.vduModelId = vduModelId;
53     }
54
55     public String getMainTemplateName() {
56         return mainTemplateName;
57     }
58
59     public void setMainTemplateName(String mainTemplateName) {
60         this.mainTemplateName = mainTemplateName;
61     }
62
63     public Map<String, byte[]> getTemplateFiles() {
64         return templateFiles;
65     }
66
67     public void setTemplateFiles(Map<String, byte[]> templateFiles) {
68         this.templateFiles = templateFiles;
69     }
70
71     public Map<String, byte[]> getAttachedFiles() {
72         return attachedFiles;
73     }
74
75     public void setAttachedFiles(Map<String, byte[]> attachedFiles) {
76         this.attachedFiles = attachedFiles;
77     }
78
79     @Override
80     public String toString() {
81         return "VduInfo {" + "id='" + vduModelId + '\'' + "mainTemplateName='" + mainTemplateName + '\'' + '}';
82     }
83
84 }
85