Tosca for Workflow operations
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaTemplate.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.be.tosca.model;
22
23 import java.util.List;
24 import java.util.Map;
25 import org.apache.commons.lang3.tuple.Triple;
26 import org.openecomp.sdc.be.model.Component;
27
28 public class ToscaTemplate {
29
30     private String tosca_definitions_version;
31     private ToscaMetadata metadata;
32     private List<Map<String, Map<String, String>>> imports;
33     private Map<String, Object> interface_types;
34     private Map<String, ToscaNodeType> node_types;
35     private ToscaTopolgyTemplate topology_template;
36
37     private List<Triple<String, String, Component>> dependencies;
38
39     public ToscaTemplate(String tosca_definitions_version) {
40         this.tosca_definitions_version = tosca_definitions_version;
41     }
42
43     public Map<String, ToscaNodeType> getNode_types() {
44         return node_types;
45     }
46
47     public void setNode_types(Map<String, ToscaNodeType> node_types) {
48         this.node_types = node_types;
49     }
50
51
52     public List<Map<String, Map<String, String>>> getImports() {
53         return imports;
54     }
55
56     public void setImports(List<Map<String, Map<String, String>>> imports) {
57         this.imports = imports;
58     }
59
60     public String getTosca_definitions_version() {
61         return tosca_definitions_version;
62     }
63
64     public void setTosca_definitions_version(String tosca_definitions_version) {
65         this.tosca_definitions_version = tosca_definitions_version;
66     }
67
68     public ToscaMetadata getMetadata() {
69         return metadata;
70     }
71
72     public void setMetadata(ToscaMetadata metadata) {
73         this.metadata = metadata;
74     }
75
76     public ToscaTopolgyTemplate getTopology_template() {
77         return topology_template;
78     }
79
80     public void setTopology_template(ToscaTopolgyTemplate topology_template) {
81         this.topology_template = topology_template;
82     }
83
84     public List<Triple<String, String, Component>> getDependencies() {
85         return dependencies;
86     }
87
88     public void setDependencies(List<Triple<String, String, Component>> dependencies) {
89         this.dependencies = dependencies;
90     }
91
92     public Map<String, Object> getInterface_types() {
93         return interface_types;
94     }
95
96     //    public void setInterface_types(Map<String, Object> interface_types) {
97     //        this.interface_types = interface_types;
98     //    }
99
100     public void setInterface_types(Map<String, Object> interface_types) {
101         this.interface_types = interface_types;
102
103     }
104 }
105