70830715e9209982d193fe19041a05ce4455af3f
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / beans / tosca / TopologyTemplate.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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.vid.asdc.beans.tosca;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26 /**
27  * The Class TopologyTemplate.
28  */
29 public class TopologyTemplate {
30         
31         /** The substitution mappings. */
32         private SubstitutionMappings substitution_mappings;
33         
34         /** The inputs. */
35         private Map<String, Input> inputs;
36         
37         /** The node templates. */
38         private Map<String, NodeTemplate> node_templates;
39         
40         /** The groups. */
41         private Map<String, Group> groups;
42         
43         /**
44          * Instantiates a new topology template.
45          */
46         public TopologyTemplate() {
47                 substitution_mappings = new SubstitutionMappings();
48                 inputs = new HashMap<String, Input> ();
49                 node_templates = new HashMap<String, NodeTemplate> ();
50                 groups = new HashMap<String, Group> ();
51         }
52         
53         /**
54          * Gets the substitution mappings.
55          *
56          * @return the substitution mappings
57          */
58         public SubstitutionMappings getsubstitution_mappings() {
59                 return this.substitution_mappings;
60         }
61         
62         /**
63          * Sets the substitution mappings.
64          *
65          * @param substitution_mappings the new substitution mappings
66          */
67         public void setsubstitution_mappings(SubstitutionMappings substitution_mappings) {
68                 this.substitution_mappings = substitution_mappings;
69         }
70         
71         /**
72          * Gets the inputs.
73          *
74          * @return the inputs
75          */
76         public Map<String, Input> getInputs() {
77                 return inputs;
78         }
79         
80         /**
81          * Sets the inputs.
82          *
83          * @param inputs the inputs
84          */
85         public void setInputs(Map<String, Input> inputs) {
86                 this.inputs = inputs;
87         }
88         
89         /**
90          * Gets the node templates.
91          *
92          * @return the node templates
93          */
94         public Map<String, NodeTemplate> getnode_templates() {
95                 return node_templates;
96         }
97         
98         /**
99          * Setnode templates.
100          *
101          * @param node_templates the node templates
102          */
103         public void setnode_templates(Map<String, NodeTemplate> node_templates) {
104                 this.node_templates = node_templates;
105         }
106
107         /**
108          * Gets the groups.
109          *
110          * @return the groups
111          */
112         public Map<String, Group> getGroups() {
113                 return groups;
114         }
115
116         /**
117          * Sets the groups.
118          *
119          * @param groups the groups
120          */
121         public void setGroups(Map<String, Group> groups) {
122                 this.groups = groups;
123         }
124 }