2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openecomp.sdc.translator.datatypes.heattotosca.to;
19 import org.onap.sdc.tosca.datatypes.model.NodeTemplate;
20 import org.onap.sdc.tosca.datatypes.model.ServiceTemplate;
22 public class ContrailServiceInstanceTo {
23 private final ServiceTemplate nestedSubstitutionServiceTemplate;
24 private final NodeTemplate substitutedNodeTemplate;
25 private final String heatStackGroupKey;
26 private final boolean orderedInterfaces;
27 private final String computeNodeTemplateId;
29 public ContrailServiceInstanceTo(ServiceTemplate nestedSubstitutionServiceTemplate,
30 NodeTemplate substitutedNodeTemplate, String heatStackGroupKey,
31 boolean orderedInterfaces, String computeNodeTemplateId) {
32 this.nestedSubstitutionServiceTemplate = nestedSubstitutionServiceTemplate;
33 this.substitutedNodeTemplate = substitutedNodeTemplate;
34 this.heatStackGroupKey = heatStackGroupKey;
35 this.orderedInterfaces = orderedInterfaces;
36 this.computeNodeTemplateId = computeNodeTemplateId;
39 public ServiceTemplate getNestedSubstitutionServiceTemplate() {
40 return nestedSubstitutionServiceTemplate;
43 public NodeTemplate getSubstitutedNodeTemplate() {
44 return substitutedNodeTemplate;
47 public String getHeatStackGroupKey() {
48 return heatStackGroupKey;
51 public boolean isOrderedInterfaces() {
52 return orderedInterfaces;
55 public String getComputeNodeTemplateId() {
56 return computeNodeTemplateId;