2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.tosca.datatypes.model;
23 import java.util.List;
28 public class ServiceTemplate implements Template {
30 private String tosca_definitions_version;
31 private Map<String, String> metadata;
32 private String description;
33 private List<Map<String, Import>> imports;
34 private Map<String, ArtifactType> artifact_types;
35 private Map<String, DataType> data_types;
36 private Map<String, CapabilityType> capability_types;
37 private Map<String, Object> interface_types;
38 private Map<String, RelationshipType> relationship_types;
39 private Map<String, NodeType> node_types;
40 private Map<String, GroupType> group_types;
41 private Map<String, PolicyType> policy_types;
42 private TopologyTemplate topology_template;
44 public String getTosca_definitions_version() {
45 return tosca_definitions_version;
48 public void setTosca_definitions_version(String tosca_definitions_version) {
49 this.tosca_definitions_version = tosca_definitions_version;
52 public Map<String, String> getMetadata() {
56 public void setMetadata(Map<String, String> metadata) {
57 this.metadata = metadata;
60 public String getDescription() {
64 public void setDescription(String description) {
65 this.description = description;
68 public List<Map<String, Import>> getImports() {
72 public void setImports(
73 List<Map<String, Import>> imports) {
74 this.imports = imports;
77 public Map<String, ArtifactType> getArtifact_types() {
78 return artifact_types;
81 public void setArtifact_types(Map<String, ArtifactType> artifact_types) {
82 this.artifact_types = artifact_types;
85 public Map<String, DataType> getData_types() {
89 public void setData_types(Map<String, DataType> data_types) {
90 this.data_types = data_types;
93 public Map<String, CapabilityType> getCapability_types() {
94 return capability_types;
97 public void setCapability_types(Map<String, CapabilityType> capability_types) {
98 this.capability_types = capability_types;
101 public Map<String, RelationshipType> getRelationship_types() {
102 return relationship_types;
105 public void setRelationship_types(Map<String, RelationshipType> relationship_types) {
106 this.relationship_types = relationship_types;
109 public Map<String, NodeType> getNode_types() {
113 public void setNode_types(Map<String, NodeType> node_types) {
114 this.node_types = node_types;
117 public Map<String, GroupType> getGroup_types() {
121 public void setGroup_types(Map<String, GroupType> group_types) {
122 this.group_types = group_types;
125 public Map<String, Object> getInterface_types() {
126 return interface_types;
129 public void setInterface_types(Map<String, Object> interface_types) {
130 this.interface_types = interface_types;
133 public Map<String, PolicyType> getPolicy_types() {
137 public void setPolicy_types(Map<String, PolicyType> policy_types) {
138 this.policy_types = policy_types;
141 public TopologyTemplate getTopology_template() {
142 return topology_template;
145 public void setTopology_template(TopologyTemplate topology_template) {
146 this.topology_template = topology_template;