2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.db.catalog.beans;
\r
23 import java.io.Serializable;
\r
25 public class TempNetworkHeatTemplateLookup implements Serializable {
\r
27 private String networkResourceModelName;
\r
28 private String heatTemplateArtifactUuid;
\r
29 private String aicVersionMin;
\r
30 private String aicVersionMax;
\r
31 public static final long serialVersionUID = -1322322139926390329L;
\r
33 public TempNetworkHeatTemplateLookup() {
\r
37 public String getNetworkResourceModelName() {
\r
38 return this.networkResourceModelName;
\r
40 public void setNetworkResourceModelName(String networkResourceModelName) {
\r
41 this.networkResourceModelName = networkResourceModelName;
\r
44 public String getHeatTemplateArtifactUuid() {
\r
45 return this.heatTemplateArtifactUuid;
\r
47 public void setHeatTemplateArtifactUuid(String heatTemplateArtifactUuid) {
\r
48 this.heatTemplateArtifactUuid = heatTemplateArtifactUuid;
\r
50 public String getAicVersionMin() {
\r
51 return this.aicVersionMin;
\r
54 public void setAicVersionMin(String aicVersionMin) {
\r
55 this.aicVersionMin = aicVersionMin;
\r
58 public String getAicVersionMax() {
\r
59 return this.aicVersionMax;
\r
62 public void setAicVersionMax(String aicVersionMax) {
\r
63 this.aicVersionMax = aicVersionMax;
\r
67 public String toString() {
\r
68 StringBuilder sb = new StringBuilder();
\r
69 sb.append("NetworkResourceModelName=" + this.networkResourceModelName);
\r
70 sb.append("HeatTemplateArtifactUuid=" + this.heatTemplateArtifactUuid);
\r
71 sb.append("aicVersionMin=" + this.aicVersionMin);
\r
72 sb.append("aicVersionMax=" + this.aicVersionMax);
\r
73 return sb.toString();
\r
76 public boolean equals (Object o) {
\r
77 if (!(o instanceof TempNetworkHeatTemplateLookup)) {
\r
83 TempNetworkHeatTemplateLookup tnhtl = (TempNetworkHeatTemplateLookup) o;
\r
84 if (tnhtl.getHeatTemplateArtifactUuid().equals(this.getHeatTemplateArtifactUuid()) && tnhtl.getNetworkResourceModelName().equals(this.getNetworkResourceModelName())) {
\r
91 public int hashCode () {
\r
92 // hash code does not have to be a unique result - only that two objects that should be treated as equal
\r
93 // return the same value. so this should work.
\r
95 result = (this.networkResourceModelName != null ? this.networkResourceModelName.hashCode() : 0) + (this.heatTemplateArtifactUuid != null ? this.heatTemplateArtifactUuid.hashCode() : 0);
\r