1 package org.openecomp.sdc.generator.datatypes.tosca;
3 @SuppressWarnings("CheckStyle")
4 public class MultiFlavorVfcImage {
6 private String file_name;
7 private String file_hash;
8 private String file_hash_type;
9 private String software_version;
11 public String getFile_name() {
15 public void setFile_name(String file_name) {
16 this.file_name = file_name;
19 public String getFile_hash() {
23 public void setFile_hash(String file_hash) {
24 this.file_hash = file_hash;
27 public String getFile_hash_type() {
28 return file_hash_type;
31 public void setFile_hash_type(String file_hash_type) {
32 this.file_hash_type = file_hash_type;
35 public String getSoftware_version() {
36 return software_version;
39 public void setSoftware_version(String software_version) {
40 this.software_version = software_version;
44 public String toString() {
45 return "MultiFlavorVfcImage{"
46 + "file_name='" + file_name + '\''
47 + ", file_hash='" + file_hash + '\''
48 + ", file_hash_type='" + file_hash_type + '\''
49 + ", software_version='" + software_version + '\''
54 public boolean equals(Object obj) {
57 if (getClass() != obj.getClass())
59 MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
60 if (this.file_name == null) {
61 if (other.file_name != null)
63 } else if (!file_name.equals(other.file_name))
65 if (this.file_hash == null) {
66 if (other.file_hash != null)
68 } else if (!file_hash.equals(other.file_hash))
70 if (this.file_hash_type == null) {
71 if (other.file_hash_type != null)
73 } else if (!file_hash_type.equals(other.file_hash_type))
75 if (this.software_version == null) {
76 if (other.software_version != null)
78 } else if (!software_version.equals(other.software_version))
84 public int hashCode() {
85 int result = file_name != null ? file_name.hashCode() : 0;
86 result = 31 * result + (file_hash != null ? file_hash.hashCode() : 0);
87 result = 31 * result + (file_hash_type != null ? file_hash_type.hashCode() : 0);
88 result = 31 * result + (software_version != null ? software_version.hashCode() : 0);