c5a008085bec1ff0900f571f4ebb166f2d23d2e0
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / ComponentInstanceInterface.java
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.be.model;
18
19 import com.google.common.annotations.VisibleForTesting;
20 import org.openecomp.sdc.be.datatypes.elements.InterfaceDataDefinition;
21 import org.openecomp.sdc.be.datatypes.elements.InterfaceInstanceDataDefinition;
22
23 public class ComponentInstanceInterface extends InterfaceDefinition {
24   private String interfaceId;
25   private InterfaceInstanceDataDefinition interfaceInstanceDataDefinition;
26
27   @VisibleForTesting
28   ComponentInstanceInterface() {}
29
30   public ComponentInstanceInterface(String interfaceId,
31                                     InterfaceInstanceDataDefinition interfaceInstanceDataDefinition) {
32     this.interfaceId = interfaceId;
33     this.interfaceInstanceDataDefinition = interfaceInstanceDataDefinition;
34   }
35
36   public ComponentInstanceInterface(String interfaceId, InterfaceDataDefinition interfaceDataDefinition) {
37     super(interfaceDataDefinition);
38     this.interfaceId = interfaceId;
39   }
40
41   public String getInterfaceId() {
42     return interfaceId;
43   }
44
45   public void setInterfaceId(String interfaceId) {
46     this.interfaceId = interfaceId;
47   }
48
49   public InterfaceInstanceDataDefinition getInterfaceInstanceDataDefinition() {
50     return interfaceInstanceDataDefinition;
51   }
52
53   public void setInterfaceInstanceDataDefinition(
54       InterfaceInstanceDataDefinition interfaceInstanceDataDefinition) {
55     this.interfaceInstanceDataDefinition = interfaceInstanceDataDefinition;
56   }
57 }