1 package org.openecomp.sdc.generator.datatypes.tosca;
3 @SuppressWarnings("CheckStyle")
4 public class DeploymentFlavorModel {
6 private String sp_part_number;
7 private VendorInfo vendor_info;
8 private ComputeFlavor compute_flavor;
9 private LicenseFlavor license_flavor;
11 public String getSp_part_number() {
12 return sp_part_number;
15 public void setSp_part_number(String sp_part_number) {
16 this.sp_part_number = sp_part_number;
19 public VendorInfo getVendor_info() {
23 public void setVendor_info(VendorInfo vendor_info) {
24 this.vendor_info = vendor_info;
27 public ComputeFlavor getCompute_flavor() {
28 return compute_flavor;
31 public void setCompute_flavor(ComputeFlavor compute_flavor) {
32 this.compute_flavor = compute_flavor;
35 public LicenseFlavor getLicense_flavor() {
36 return license_flavor;
39 public void setLicense_flavor(LicenseFlavor license_flavor) {
40 this.license_flavor = license_flavor;
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
53 public boolean equals(Object obj) {
56 if (obj != null && getClass() != obj.getClass())
58 DeploymentFlavorModel other = (DeploymentFlavorModel) obj;
60 if (this.sp_part_number == null) {
61 if (other.sp_part_number != null)
63 } else if (!sp_part_number.equals(other.sp_part_number))
65 if (this.vendor_info == null) {
66 if (other.vendor_info != null)
68 } else if (!vendor_info.equals(other.vendor_info))
70 if (this.compute_flavor == null) {
71 if (other.compute_flavor != null)
73 } else if (!compute_flavor.equals(other.compute_flavor))
75 if (this.license_flavor == null) {
76 if (other.license_flavor != null)
78 } else if (!license_flavor.equals(other.license_flavor))
85 public int hashCode() {
86 int result = sp_part_number != null ? sp_part_number.hashCode() : 0;
87 result = 31 * result + (vendor_info != null ? vendor_info.hashCode() : 0);
88 result = 31 * result + (compute_flavor != null ? compute_flavor.hashCode() : 0);
89 result = 31 * result + (license_flavor != null ? license_flavor.hashCode() : 0);