Added oparent to sdc main
[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 /*-
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  */
20
21 package org.openecomp.sdc.generator.datatypes.tosca;
22
23 @SuppressWarnings("CheckStyle")
24 public class MultiFlavorVfcImage {
25
26   private String file_name;
27   private String file_hash;
28   private String file_hash_type;
29   private String software_version;
30
31   public String getFile_name() {
32     return file_name;
33   }
34
35   public void setFile_name(String file_name) {
36     this.file_name = file_name;
37   }
38
39   public String getFile_hash() {
40     return file_hash;
41   }
42
43   public void setFile_hash(String file_hash) {
44     this.file_hash = file_hash;
45   }
46
47   public String getFile_hash_type() {
48     return file_hash_type;
49   }
50
51   public void setFile_hash_type(String file_hash_type) {
52     this.file_hash_type = file_hash_type;
53   }
54
55   public String getSoftware_version() {
56     return software_version;
57   }
58
59   public void setSoftware_version(String software_version) {
60     this.software_version = software_version;
61   }
62
63   @Override
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 + '\''
70         + '}';
71   }
72
73   @Override
74   public boolean equals(Object obj) {
75     if (this == obj)
76       return true;
77     if (obj != null && getClass() != obj.getClass())
78       return false;
79     MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
80     if (other != null) {
81       if (this.file_name == null) {
82         if (other.file_name != null)
83           return false;
84       } else if (!file_name.equals(other.file_name))
85         return false;
86       if (this.file_hash == null) {
87         if (other.file_hash != null)
88           return false;
89       } else if (!file_hash.equals(other.file_hash))
90         return false;
91       if (this.file_hash_type == null) {
92         if (other.file_hash_type != null)
93           return false;
94       } else if (!file_hash_type.equals(other.file_hash_type))
95         return false;
96       if (this.software_version == null) {
97         if (other.software_version != null)
98           return false;
99       } else if (!software_version.equals(other.software_version))
100         return false;
101     }
102     return true;
103   }
104
105   @Override
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);
111     return result;
112   }
113 }