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.mso.db.catalog.beans;
23 import java.io.Serializable;
25 import org.apache.commons.lang3.builder.EqualsBuilder;
27 import com.openpojo.business.annotation.BusinessKey;
29 public class HeatTemplateParam implements Serializable {
32 private String heatTemplateArtifactUuid = null;
34 private String paramName = null;
35 private boolean required;
36 private String paramType = null;
37 private String paramAlias = null;
38 public static final long serialVersionUID = -1322322139926390329L;
40 public HeatTemplateParam() {}
42 public String getHeatTemplateArtifactUuid() {
43 return this.heatTemplateArtifactUuid;
45 public void setHeatTemplateArtifactUuid(String heatTemplateArtifactUuid) {
46 this.heatTemplateArtifactUuid = heatTemplateArtifactUuid;
49 public String getParamName() {
52 public void setParamName(String paramName) {
53 this.paramName = paramName;
55 public boolean isRequired() {
58 public void setRequired(boolean required) {
59 this.required = required;
61 public String getParamAlias() {
64 public void setParamAlias(String paramAlias) {
65 this.paramAlias = paramAlias;
68 public String getParamType() {
71 public void setParamType (String paramType) {
72 this.paramType = paramType;
77 public String toString () {
78 return "Param=" + paramName + ",type=" + paramType + ",required=" + required + ",paramAlias=" + paramAlias + ", heatTemplateArtifactUuid=" + this.heatTemplateArtifactUuid;
82 public boolean equals(final Object other) {
83 if (!(other instanceof HeatTemplateParam)) {
86 HeatTemplateParam castOther = (HeatTemplateParam) other;
87 return new EqualsBuilder().append(heatTemplateArtifactUuid, castOther.heatTemplateArtifactUuid)
88 .append(paramName, castOther.paramName).isEquals();
92 public int hashCode () {
94 result = this.paramName == null ? 0 : this.paramName.hashCode() + this.heatTemplateArtifactUuid == null ? 0 : this.heatTemplateArtifactUuid.hashCode();