[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / main / java / org / openecomp / sdc / tosca / datatypes / model / TopologyTemplate.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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.openecomp.sdc.tosca.datatypes.model;
22
23 import java.util.HashMap;
24 import java.util.Map;
25 import java.util.Objects;
26
27 public class TopologyTemplate {
28
29   private String description;
30   private Map<String, ParameterDefinition> inputs;
31   private Map<String, NodeTemplate> node_templates;
32   private Map<String, RelationshipTemplate> relationship_templates;
33   private Map<String, GroupDefinition> groups;
34   private Map<String, ParameterDefinition> outputs;
35   private SubstitutionMapping substitution_mappings;
36   private Map<String, PolicyDefinition> policies;
37
38   public String getDescription() {
39     return description;
40   }
41
42   public void setDescription(String description) {
43     this.description = description;
44   }
45
46   public Map<String, ParameterDefinition> getInputs() {
47     return inputs;
48   }
49
50   public void setInputs(Map<String, ParameterDefinition> inputs) {
51     this.inputs = inputs;
52   }
53
54   public Map<String, NodeTemplate> getNode_templates() {
55     return node_templates;
56   }
57
58   public void setNode_templates(Map<String, NodeTemplate> nodeTemplates) {
59     this.node_templates = nodeTemplates;
60   }
61
62   public Map<String, RelationshipTemplate> getRelationship_templates() {
63     return relationship_templates;
64   }
65
66   public void setRelationship_templates(Map<String, RelationshipTemplate> relationshipTemplates) {
67     this.relationship_templates = relationshipTemplates;
68   }
69
70   public Map<String, GroupDefinition> getGroups() {
71     return groups;
72   }
73
74   public void setGroups(Map<String, GroupDefinition> groups) {
75     this.groups = groups;
76   }
77
78   /**
79    * Add group.
80    *
81    * @param groupKey        the group key
82    * @param groupDefinition the group definition
83    */
84   public void addGroup(String groupKey, GroupDefinition groupDefinition) {
85     if (Objects.isNull(this.groups)) {
86       this.groups = new HashMap<>();
87     }
88     this.groups.put(groupKey, groupDefinition);
89   }
90
91   public Map<String, ParameterDefinition> getOutputs() {
92     return outputs;
93   }
94
95   public void setOutputs(Map<String, ParameterDefinition> outputs) {
96     this.outputs = outputs;
97   }
98
99   public SubstitutionMapping getSubstitution_mappings() {
100     return substitution_mappings;
101   }
102
103   public void setSubstitution_mappings(SubstitutionMapping substitutionMapping) {
104     this.substitution_mappings = substitutionMapping;
105   }
106
107   public Map<String, PolicyDefinition> getPolicies() {
108     return policies;
109   }
110
111   public void setPolicies(Map<String, PolicyDefinition> policies) {
112     this.policies = policies;
113   }
114 }