Added oparent to sdc main
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / java / org / openecomp / sdc / translator / SubInterfaceConsolidationDataTestInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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 package org.openecomp.sdc.translator;
21
22 import org.apache.commons.lang3.tuple.Pair;
23 import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation.ConsolidationData;
24 import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.consolidation.GetAttrFuncData;
25
26 import java.util.List;
27
28 public class SubInterfaceConsolidationDataTestInfo {
29   private final String serviceTemplateFileName;
30   private final String portNodeTemplateId;
31   private final String subInterfaceType;
32   private final int resourceGroupCount;
33   private final String networkRole;
34   private final String subInterfaceId;
35   private final List<String> nodesConnectedIn;
36   private final List<String> nodesConnectedOut;
37   private final List<String> nodesGetAttrIn;
38   private final List<Pair<String, GetAttrFuncData>> nodesGetAttrOut;
39   private final ConsolidationData consolidationData;
40
41   public SubInterfaceConsolidationDataTestInfo(String serviceTemplateFileName,
42                                                String portNodeTemplateId, String subInterfaceType,
43                                                int resourceGroupCount, String networkRole,
44                                                String subInterfaceId, List<String> nodesConnectedIn,
45                                                List<String> nodesConnectedOut,
46                                                List<String> nodesGetAttrIn,
47                                                List<Pair<String, GetAttrFuncData>> nodesGetAttrOut,
48                                                ConsolidationData consolidationData) {
49     this.serviceTemplateFileName = serviceTemplateFileName;
50     this.portNodeTemplateId = portNodeTemplateId;
51     this.subInterfaceType = subInterfaceType;
52     this.resourceGroupCount = resourceGroupCount;
53     this.networkRole = networkRole;
54     this.subInterfaceId = subInterfaceId;
55     this.nodesConnectedIn = nodesConnectedIn;
56     this.nodesConnectedOut = nodesConnectedOut;
57     this.nodesGetAttrIn = nodesGetAttrIn;
58     this.nodesGetAttrOut = nodesGetAttrOut;
59     this.consolidationData = consolidationData;
60   }
61
62   public String getServiceTemplateFileName() {
63     return serviceTemplateFileName;
64   }
65
66   public String getPortNodeTemplateId() {
67     return portNodeTemplateId;
68   }
69
70   public String getSubInterfaceType() {
71     return subInterfaceType;
72   }
73
74   public int getResourceGroupCount() {
75     return resourceGroupCount;
76   }
77
78   public String getNetworkRole() {
79     return networkRole;
80   }
81
82   public String getSubInterfaceId() {
83     return subInterfaceId;
84   }
85
86   public List<String> getNodesConnectedIn() {
87     return nodesConnectedIn;
88   }
89
90   public List<String> getNodesConnectedOut() {
91     return nodesConnectedOut;
92   }
93
94   public List<String> getNodesGetAttrIn() {
95     return nodesGetAttrIn;
96   }
97
98   public List<Pair<String, GetAttrFuncData>> getNodesGetAttrOut() {
99     return nodesGetAttrOut;
100   }
101
102   public ConsolidationData getConsolidationData() {
103     return consolidationData;
104   }
105 }