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.
17 package org.openecomp.sdc.be.tosca.model;
20 import java.util.Objects;
24 * @since March 26, 2018
27 public class ToscaInterfaceNodeType {
29 private String derived_from;
30 private String description;
31 private Map<String, Object> operations;
34 public String getDerived_from() {
38 public void setDerived_from(String derived_from) {
39 this.derived_from = derived_from;
42 public String getDescription() {
46 public void setDescription(String description) {
47 this.description = description;
51 public boolean equals(Object o) {
55 if (o == null || getClass() != o.getClass()) {
58 ToscaInterfaceNodeType that = (ToscaInterfaceNodeType) o;
59 return Objects.equals(derived_from, that.derived_from) &&
60 Objects.equals(description, that.description);
64 public int hashCode() {
66 return Objects.hash(derived_from, description);
69 public Map<String, Object> getOperations() {
73 public void setOperations(Map<String, Object> operations) {
74 this.operations = operations;