2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.sdc.generator.datatypes.tosca;
23 @SuppressWarnings("CheckStyle")
24 public class MultiFlavorVfcImage {
26 private String file_name;
27 private String file_hash;
28 private String file_hash_type;
29 private String software_version;
31 public String getFile_name() {
35 public void setFile_name(String file_name) {
36 this.file_name = file_name;
39 public String getFile_hash() {
43 public void setFile_hash(String file_hash) {
44 this.file_hash = file_hash;
47 public String getFile_hash_type() {
48 return file_hash_type;
51 public void setFile_hash_type(String file_hash_type) {
52 this.file_hash_type = file_hash_type;
55 public String getSoftware_version() {
56 return software_version;
59 public void setSoftware_version(String software_version) {
60 this.software_version = software_version;
64 public String toString() {
65 return "MultiFlavorVfcImage{"
66 + "file_name='" + file_name + '\''
67 + ", file_hash='" + file_hash + '\''
68 + ", file_hash_type='" + file_hash_type + '\''
69 + ", software_version='" + software_version + '\''
74 public boolean equals(Object obj) {
77 if (obj != null && getClass() != obj.getClass())
79 MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
81 if (this.file_name == null) {
82 if (other.file_name != null)
84 } else if (!file_name.equals(other.file_name))
86 if (this.file_hash == null) {
87 if (other.file_hash != null)
89 } else if (!file_hash.equals(other.file_hash))
91 if (this.file_hash_type == null) {
92 if (other.file_hash_type != null)
94 } else if (!file_hash_type.equals(other.file_hash_type))
96 if (this.software_version == null) {
97 if (other.software_version != null)
99 } else if (!software_version.equals(other.software_version))
106 public int hashCode() {
107 int result = file_name != null ? file_name.hashCode() : 0;
108 result = 31 * result + (file_hash != null ? file_hash.hashCode() : 0);
109 result = 31 * result + (file_hash_type != null ? file_hash_type.hashCode() : 0);
110 result = 31 * result + (software_version != null ? software_version.hashCode() : 0);