[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 / DeploymentFlavorModel.java
1 package org.openecomp.sdc.generator.datatypes.tosca;
2
3 @SuppressWarnings("CheckStyle")
4 public class DeploymentFlavorModel {
5
6   private String sp_part_number;
7   private VendorInfo vendor_info;
8   private ComputeFlavor compute_flavor;
9   private LicenseFlavor license_flavor;
10
11   public String getSp_part_number() {
12     return sp_part_number;
13   }
14
15   public void setSp_part_number(String sp_part_number) {
16     this.sp_part_number = sp_part_number;
17   }
18
19   public VendorInfo getVendor_info() {
20     return vendor_info;
21   }
22
23   public void setVendor_info(VendorInfo vendor_info) {
24     this.vendor_info = vendor_info;
25   }
26
27   public ComputeFlavor getCompute_flavor() {
28     return compute_flavor;
29   }
30
31   public void setCompute_flavor(ComputeFlavor compute_flavor) {
32     this.compute_flavor = compute_flavor;
33   }
34
35   public LicenseFlavor getLicense_flavor() {
36     return license_flavor;
37   }
38
39   public void setLicense_flavor(LicenseFlavor license_flavor) {
40     this.license_flavor = license_flavor;
41   }
42
43   @Override
44   public String toString() {
45     return "DeploymentFlavorModel{" + "sp_part_number='" + sp_part_number + '\''
46         + ", vendor_info=" + vendor_info
47         + ", compute_flavor=" + compute_flavor
48         + ", license_flavor=" + license_flavor
49         + '}';
50   }
51
52   @Override
53   public boolean equals(Object obj) {
54     if (this == obj)
55       return true;
56     if (getClass() != obj.getClass())
57       return false;
58     DeploymentFlavorModel other = (DeploymentFlavorModel) obj;
59     if (this.sp_part_number == null) {
60       if (other.sp_part_number != null)
61         return false;
62     } else if (!sp_part_number.equals(other.sp_part_number))
63       return false;
64     if (this.vendor_info == null) {
65       if (other.vendor_info != null)
66         return false;
67     } else if (!vendor_info.equals(other.vendor_info))
68       return false;
69     if (this.compute_flavor == null) {
70       if (other.compute_flavor != null)
71         return false;
72     } else if (!compute_flavor.equals(other.compute_flavor))
73       return false;
74     if (this.license_flavor == null) {
75       if (other.license_flavor != null)
76         return false;
77     } else if (!license_flavor.equals(other.license_flavor))
78       return false;
79     return true;
80   }
81
82   @Override
83   public int hashCode() {
84     int result = sp_part_number != null ? sp_part_number.hashCode() : 0;
85     result = 31 * result + (vendor_info != null ? vendor_info.hashCode() : 0);
86     result = 31 * result + (compute_flavor != null ? compute_flavor.hashCode() : 0);
87     result = 31 * result + (license_flavor != null ? license_flavor.hashCode() : 0);
88     return result;
89   }
90 }