99b3f502b49954938ea421323c2086142c90763d
[sdc.git] /
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.openecomp.sdc.translator.datatypes.heattotosca.to;
18
19 import org.onap.sdc.tosca.datatypes.model.NodeTemplate;
20 import org.onap.sdc.tosca.datatypes.model.ServiceTemplate;
21
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;
28
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;
37     }
38
39     public ServiceTemplate getNestedSubstitutionServiceTemplate() {
40         return nestedSubstitutionServiceTemplate;
41     }
42
43     public NodeTemplate getSubstitutedNodeTemplate() {
44         return substitutedNodeTemplate;
45     }
46
47     public String getHeatStackGroupKey() {
48         return heatStackGroupKey;
49     }
50
51     public boolean isOrderedInterfaces() {
52         return orderedInterfaces;
53     }
54
55     public String getComputeNodeTemplateId() {
56         return computeNodeTemplateId;
57     }
58 }