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
25 public class ToscaLifecycleOperationDefinition {
27 private String description;
28 private String implementation;
29 private Map<String, ToscaProperty> inputs;
31 public String getImplementation() {
32 return implementation;
35 public void setImplementation(String implementation) {
36 this.implementation = implementation;
39 public Map<String, ToscaProperty> getInputs() {
43 public void setInputs(Map<String, ToscaProperty> inputs) {
48 public boolean equals(Object o) {
52 if (o == null || getClass() != o.getClass()) {
55 ToscaLifecycleOperationDefinition that = (ToscaLifecycleOperationDefinition) o;
56 return Objects.equals(implementation, that.implementation) && Objects.equals(inputs, that.inputs);
60 public int hashCode() {
61 return Objects.hash(implementation, inputs);
64 public String getDescription() {
68 public void setDescription(String description) {
69 this.description = description;