Tosca for Workflow operations
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaInterfaceNodeType.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 package org.openecomp.sdc.be.tosca.model;
17
18 import java.util.Map;
19 import java.util.Objects;
20
21 /**
22  * @author KATYR
23  * @since March 26, 2018
24  */
25
26 public class ToscaInterfaceNodeType {
27
28   private String derived_from;
29   private String description;
30   private Map<String, Object> operations;
31
32
33   public String getDerived_from() {
34     return derived_from;
35   }
36
37   public void setDerived_from(String derived_from) {
38     this.derived_from = derived_from;
39   }
40
41   public String getDescription() {
42     return description;
43   }
44
45   public void setDescription(String description) {
46     this.description = description;
47   }
48
49   @Override
50   public boolean equals(Object o) {
51     if (this == o) {
52       return true;
53     }
54     if (o == null || getClass() != o.getClass()) {
55       return false;
56     }
57     ToscaInterfaceNodeType that = (ToscaInterfaceNodeType) o;
58     return Objects.equals(derived_from, that.derived_from) &&
59         Objects.equals(description, that.description);
60   }
61
62   @Override
63   public int hashCode() {
64
65     return Objects.hash(derived_from, description);
66   }
67
68   public Map<String, Object> getOperations() {
69     return operations;
70   }
71
72   public void setOperations(Map<String, Object> operations) {
73     this.operations = operations;
74   }
75 }