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.translator.datatypes.heattotosca.to;
24 import org.openecomp.sdc.heat.datatypes.model.HeatOrchestrationTemplate;
25 import org.openecomp.sdc.heat.datatypes.model.Resource;
26 import org.openecomp.sdc.tosca.datatypes.model.ServiceTemplate;
27 import org.openecomp.sdc.translator.services.heattotosca.TranslationContext;
29 public class TranslateTo {
30 private String heatFileName;
31 private ServiceTemplate serviceTemplate;
32 private HeatOrchestrationTemplate heatOrchestrationTemplate;
33 private Resource resource;
34 private String resourceId;
35 private String translatedId;
36 private TranslationContext context;
38 public TranslateTo() {
42 * Instantiates a new Translate to.
44 * @param heatFileName the heat file name
45 * @param serviceTemplate the service template
46 * @param heatOrchestrationTemplate the heat orchestration template
47 * @param resource the resource
48 * @param resourceId the resource id
49 * @param translatedId the translated id
50 * @param context the context
52 public TranslateTo(String heatFileName, ServiceTemplate serviceTemplate,
53 HeatOrchestrationTemplate heatOrchestrationTemplate, Resource resource,
54 String resourceId, String translatedId, TranslationContext context) {
55 this.heatFileName = heatFileName;
56 this.serviceTemplate = serviceTemplate;
57 this.heatOrchestrationTemplate = heatOrchestrationTemplate;
58 this.resource = resource;
59 this.resourceId = resourceId;
60 this.translatedId = translatedId;
61 this.context = context;
64 public String getHeatFileName() {
68 public void setHeatFileName(String heatFileName) {
69 this.heatFileName = heatFileName;
72 public ServiceTemplate getServiceTemplate() {
73 return serviceTemplate;
76 public void setServiceTemplate(ServiceTemplate serviceTemplate) {
77 this.serviceTemplate = serviceTemplate;
80 public HeatOrchestrationTemplate getHeatOrchestrationTemplate() {
81 return heatOrchestrationTemplate;
84 public void setHeatOrchestrationTemplate(HeatOrchestrationTemplate heatOrchestrationTemplate) {
85 this.heatOrchestrationTemplate = heatOrchestrationTemplate;
88 public Resource getResource() {
92 public void setResource(Resource resource) {
93 this.resource = resource;
96 public String getResourceId() {
100 public void setResourceId(String resourceId) {
101 this.resourceId = resourceId;
104 public String getTranslatedId() {
108 public void setTranslatedId(String translatedId) {
109 this.translatedId = translatedId;
112 public TranslationContext getContext() {
116 public void setContext(TranslationContext context) {
117 this.context = context;
121 public String toString() {
122 return "TranslateTo{"
123 + "heatFileName='" + heatFileName + '\''
124 + ", serviceTemplate=" + serviceTemplate
125 + ", heatOrchestrationTemplate=" + heatOrchestrationTemplate
126 + ", resource=" + resource
127 + ", resourceId='" + resourceId + '\''
128 + ", translatedId='" + translatedId + '\''
129 + ", context=" + context