[SDC-29] catalog 1707 rebase commit.
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / InterfaceDataDefinition.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.be.datatypes.elements;
22
23 import java.io.Serializable;
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
28
29 public class InterfaceDataDefinition extends ToscaDataDefinition implements Serializable {
30
31         /**
32          * 
33          */
34         private static final long serialVersionUID = 2208369368489725049L;
35
36         private String type;
37
38         private String description;
39
40         private String uniqueId;
41
42         /**
43          * Timestamp of the resource (artifact) creation
44          */
45         private Long creationDate;
46
47         /**
48          * Timestamp of the last resource (artifact) creation
49          */
50         private Long lastUpdateDate;
51         /**
52          * Defines an operation available to manage particular aspects of the Node
53          * Type.
54          */
55         private Map<String, OperationDataDefinition> operations = new HashMap<String, OperationDataDefinition>();
56         
57         public InterfaceDataDefinition() {
58                 super();
59         }
60
61         public InterfaceDataDefinition(String type, String description) {
62                 super();
63                 this.type = type;
64                 this.description = description;
65
66         }
67
68         public InterfaceDataDefinition(InterfaceDataDefinition p) {
69                 this.uniqueId = p.uniqueId;
70                 this.type = p.type;
71                 this.description = p.description;
72
73         }
74
75         public String getUniqueId() {
76                 return uniqueId;
77         }
78
79         public void setUniqueId(String uniqueId) {
80                 this.uniqueId = uniqueId;
81         }
82
83         public String getType() {
84                 return type;
85         }
86
87         public void setType(String type) {
88                 this.type = type;
89         }
90
91         public Long getCreationDate() {
92                 return creationDate;
93         }
94
95         public void setCreationDate(Long creationDate) {
96                 this.creationDate = creationDate;
97         }
98
99         public Long getLastUpdateDate() {
100                 return lastUpdateDate;
101         }
102
103         public void setLastUpdateDate(Long lastUpdateDate) {
104                 this.lastUpdateDate = lastUpdateDate;
105         }
106
107         public String getDescription() {
108                 return description;
109         }
110
111         public void setDescription(String description) {
112                 this.description = description;
113         }
114         public Map<String, OperationDataDefinition> getOperations() {
115                 return operations;
116         }
117
118         public void setOperations(Map<String, OperationDataDefinition> operations) {
119                 this.operations = operations;
120         }
121 }