[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-tosca-generator-lib / openecomp-sdc-tosca-generator-api / src / main / java / org / openecomp / sdc / generator / datatypes / tosca / MultiFlavorVfcImage.java
1 package org.openecomp.sdc.generator.datatypes.tosca;
2
3 @SuppressWarnings("CheckStyle")
4 public class MultiFlavorVfcImage {
5
6   private String file_name;
7   private String file_hash;
8   private String file_hash_type;
9   private String software_version;
10
11   public String getFile_name() {
12     return file_name;
13   }
14
15   public void setFile_name(String file_name) {
16     this.file_name = file_name;
17   }
18
19   public String getFile_hash() {
20     return file_hash;
21   }
22
23   public void setFile_hash(String file_hash) {
24     this.file_hash = file_hash;
25   }
26
27   public String getFile_hash_type() {
28     return file_hash_type;
29   }
30
31   public void setFile_hash_type(String file_hash_type) {
32     this.file_hash_type = file_hash_type;
33   }
34
35   public String getSoftware_version() {
36     return software_version;
37   }
38
39   public void setSoftware_version(String software_version) {
40     this.software_version = software_version;
41   }
42
43   @Override
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 + '\''
50         + '}';
51   }
52
53   @Override
54   public boolean equals(Object obj) {
55     if (this == obj)
56       return true;
57     if (getClass() != obj.getClass())
58       return false;
59     MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
60     if (this.file_name == null) {
61       if (other.file_name != null)
62         return false;
63     } else if (!file_name.equals(other.file_name))
64       return false;
65     if (this.file_hash == null) {
66       if (other.file_hash != null)
67         return false;
68     } else if (!file_hash.equals(other.file_hash))
69       return false;
70     if (this.file_hash_type == null) {
71       if (other.file_hash_type != null)
72         return false;
73     } else if (!file_hash_type.equals(other.file_hash_type))
74       return false;
75     if (this.software_version == null) {
76       if (other.software_version != null)
77         return false;
78     } else if (!software_version.equals(other.software_version))
79       return false;
80     return true;
81   }
82
83   @Override
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);
89     return result;
90   }
91 }