560a7765f2508dadc85ab866feb4a913fcf74f70
[sdc.git] /
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 (obj != null && getClass() != obj.getClass())
58       return false;
59     MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
60     if (other != null) {
61       if (this.file_name == null) {
62         if (other.file_name != null)
63           return false;
64       } else if (!file_name.equals(other.file_name))
65         return false;
66       if (this.file_hash == null) {
67         if (other.file_hash != null)
68           return false;
69       } else if (!file_hash.equals(other.file_hash))
70         return false;
71       if (this.file_hash_type == null) {
72         if (other.file_hash_type != null)
73           return false;
74       } else if (!file_hash_type.equals(other.file_hash_type))
75         return false;
76       if (this.software_version == null) {
77         if (other.software_version != null)
78           return false;
79       } else if (!software_version.equals(other.software_version))
80         return false;
81     }
82     return true;
83   }
84
85   @Override
86   public int hashCode() {
87     int result = file_name != null ? file_name.hashCode() : 0;
88     result = 31 * result + (file_hash != null ? file_hash.hashCode() : 0);
89     result = 31 * result + (file_hash_type != null ? file_hash_type.hashCode() : 0);
90     result = 31 * result + (software_version != null ? software_version.hashCode() : 0);
91     return result;
92   }
93 }