Rename packages from openecomp to onap.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / main / java / org / openecomp / sdc / translator / datatypes / heattotosca / to / TranslateTo.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.translator.datatypes.heattotosca.to;
22
23
24 import org.openecomp.sdc.heat.datatypes.model.HeatOrchestrationTemplate;
25 import org.openecomp.sdc.heat.datatypes.model.Resource;
26 import org.onap.sdc.tosca.datatypes.model.ServiceTemplate;
27 import org.openecomp.sdc.translator.datatypes.heattotosca.TranslationContext;
28
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;
37
38   public TranslateTo() {
39   }
40
41   /**
42    * Instantiates a new Translate to.
43    *
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
51    */
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;
62   }
63
64   public String getHeatFileName() {
65     return heatFileName;
66   }
67
68   public void setHeatFileName(String heatFileName) {
69     this.heatFileName = heatFileName;
70   }
71
72   public ServiceTemplate getServiceTemplate() {
73     return serviceTemplate;
74   }
75
76   public void setServiceTemplate(ServiceTemplate serviceTemplate) {
77     this.serviceTemplate = serviceTemplate;
78   }
79
80   public HeatOrchestrationTemplate getHeatOrchestrationTemplate() {
81     return heatOrchestrationTemplate;
82   }
83
84   public void setHeatOrchestrationTemplate(HeatOrchestrationTemplate heatOrchestrationTemplate) {
85     this.heatOrchestrationTemplate = heatOrchestrationTemplate;
86   }
87
88   public Resource getResource() {
89     return resource;
90   }
91
92   public void setResource(Resource resource) {
93     this.resource = resource;
94   }
95
96   public String getResourceId() {
97     return resourceId;
98   }
99
100   public void setResourceId(String resourceId) {
101     this.resourceId = resourceId;
102   }
103
104   public String getTranslatedId() {
105     return translatedId;
106   }
107
108   public void setTranslatedId(String translatedId) {
109     this.translatedId = translatedId;
110   }
111
112   public TranslationContext getContext() {
113     return context;
114   }
115
116   public void setContext(TranslationContext context) {
117     this.context = context;
118   }
119
120   @Override
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
130         + '}';
131   }
132 }