2 * Copyright © 2016-2018 European Support Limited
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openecomp.sdc.be.tosca.model;
19 import java.util.Objects;
23 * @since March 26, 2018
26 public class ToscaInterfaceNodeType {
28 private String derived_from;
29 private String description;
30 private Map<String, Object> operations;
33 public String getDerived_from() {
37 public void setDerived_from(String derived_from) {
38 this.derived_from = derived_from;
41 public String getDescription() {
45 public void setDescription(String description) {
46 this.description = description;
50 public boolean equals(Object o) {
54 if (o == null || getClass() != o.getClass()) {
57 ToscaInterfaceNodeType that = (ToscaInterfaceNodeType) o;
58 return Objects.equals(derived_from, that.derived_from) &&
59 Objects.equals(description, that.description);
63 public int hashCode() {
65 return Objects.hash(derived_from, description);
68 public Map<String, Object> getOperations() {
72 public void setOperations(Map<String, Object> operations) {
73 this.operations = operations;