d6620ce5c8f466d94aaa4e04a17969d337069b27
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  * Modifications copyright (c) 2019 Nokia
20  * ================================================================================
21  */
22
23 package org.openecomp.sdc.generator.datatypes.tosca;
24
25 @SuppressWarnings("CheckStyle")
26 public class MultiFlavorVfcImage {
27
28   private String file_name;
29   private String file_hash;
30   private String file_hash_type;
31   private String software_version;
32
33   public String getFile_name() {
34     return file_name;
35   }
36
37   public void setFile_name(String file_name) {
38     this.file_name = file_name;
39   }
40
41   public String getFile_hash() {
42     return file_hash;
43   }
44
45   public void setFile_hash(String file_hash) {
46     this.file_hash = file_hash;
47   }
48
49   public String getFile_hash_type() {
50     return file_hash_type;
51   }
52
53   public void setFile_hash_type(String file_hash_type) {
54     this.file_hash_type = file_hash_type;
55   }
56
57   public String getSoftware_version() {
58     return software_version;
59   }
60
61   public void setSoftware_version(String software_version) {
62     this.software_version = software_version;
63   }
64
65   @Override
66   public String toString() {
67     return "MultiFlavorVfcImage{"
68         + "file_name='" + file_name + '\''
69         + ", file_hash='" + file_hash + '\''
70         + ", file_hash_type='" + file_hash_type + '\''
71         + ", software_version='" + software_version + '\''
72         + '}';
73   }
74
75   @Override
76   public boolean equals(Object obj) {
77     if (this == obj)
78       return true;
79     if (obj == null || getClass() != obj.getClass())
80       return false;
81     MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
82
83       if (this.file_name == null) {
84         if (other.file_name != null)
85           return false;
86       } else if (!file_name.equals(other.file_name))
87         return false;
88       if (this.file_hash == null) {
89         if (other.file_hash != null)
90           return false;
91       } else if (!file_hash.equals(other.file_hash))
92         return false;
93       if (this.file_hash_type == null) {
94         if (other.file_hash_type != null)
95           return false;
96       } else if (!file_hash_type.equals(other.file_hash_type))
97         return false;
98       if (this.software_version == null) {
99         if (other.software_version != null)
100           return false;
101       } else if (!software_version.equals(other.software_version))
102         return false;
103
104     return true;
105   }
106
107   @Override
108   public int hashCode() {
109     int result = file_name != null ? file_name.hashCode() : 0;
110     result = 31 * result + (file_hash != null ? file_hash.hashCode() : 0);
111     result = 31 * result + (file_hash_type != null ? file_hash_type.hashCode() : 0);
112     result = 31 * result + (software_version != null ? software_version.hashCode() : 0);
113     return result;
114   }
115 }