2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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 * ================================================================================
23 package org.openecomp.sdc.generator.datatypes.tosca;
25 @SuppressWarnings("CheckStyle")
26 public class MultiFlavorVfcImage {
28 private String file_name;
29 private String file_hash;
30 private String file_hash_type;
31 private String software_version;
33 public String getFile_name() {
37 public void setFile_name(String file_name) {
38 this.file_name = file_name;
41 public String getFile_hash() {
45 public void setFile_hash(String file_hash) {
46 this.file_hash = file_hash;
49 public String getFile_hash_type() {
50 return file_hash_type;
53 public void setFile_hash_type(String file_hash_type) {
54 this.file_hash_type = file_hash_type;
57 public String getSoftware_version() {
58 return software_version;
61 public void setSoftware_version(String software_version) {
62 this.software_version = software_version;
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 + '\''
76 public boolean equals(Object obj) {
79 if (obj == null || getClass() != obj.getClass())
81 MultiFlavorVfcImage other = (MultiFlavorVfcImage) obj;
83 if (this.file_name == null) {
84 if (other.file_name != null)
86 } else if (!file_name.equals(other.file_name))
88 if (this.file_hash == null) {
89 if (other.file_hash != null)
91 } else if (!file_hash.equals(other.file_hash))
93 if (this.file_hash_type == null) {
94 if (other.file_hash_type != null)
96 } else if (!file_hash_type.equals(other.file_hash_type))
98 if (this.software_version == null) {
99 if (other.software_version != null)
101 } else if (!software_version.equals(other.software_version))
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);