2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.datatypes.elements;
23 import java.io.Serializable;
24 import java.util.HashMap;
27 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
29 public class InterfaceDataDefinition extends ToscaDataDefinition implements Serializable {
34 private static final long serialVersionUID = 2208369368489725049L;
38 private String description;
40 private String uniqueId;
43 * Timestamp of the resource (artifact) creation
45 private Long creationDate;
48 * Timestamp of the last resource (artifact) creation
50 private Long lastUpdateDate;
52 * Defines an operation available to manage particular aspects of the Node
55 private Map<String, OperationDataDefinition> operations = new HashMap<String, OperationDataDefinition>();
57 public InterfaceDataDefinition() {
61 public InterfaceDataDefinition(String type, String description) {
64 this.description = description;
68 public InterfaceDataDefinition(InterfaceDataDefinition p) {
69 this.uniqueId = p.uniqueId;
71 this.description = p.description;
75 public String getUniqueId() {
79 public void setUniqueId(String uniqueId) {
80 this.uniqueId = uniqueId;
83 public String getType() {
87 public void setType(String type) {
91 public Long getCreationDate() {
95 public void setCreationDate(Long creationDate) {
96 this.creationDate = creationDate;
99 public Long getLastUpdateDate() {
100 return lastUpdateDate;
103 public void setLastUpdateDate(Long lastUpdateDate) {
104 this.lastUpdateDate = lastUpdateDate;
107 public String getDescription() {
111 public void setDescription(String description) {
112 this.description = description;
114 public Map<String, OperationDataDefinition> getOperations() {
118 public void setOperations(Map<String, OperationDataDefinition> operations) {
119 this.operations = operations;