package com.qianwen.smartman.modules.smis.vo; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class ShiftUpdateBasicVO implements Serializable { private static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("主键") private Long id; @ApiModelProperty("班次名称") private String name; @ApiModelProperty("班次颜色") private String colour; @ApiModelProperty("启用禁用按钮1-启动0-禁用") private Integer status; public static class ShiftUpdateBasicVOBuilder { private Long id; private String name; private String colour; private Integer status; ShiftUpdateBasicVOBuilder() { } public ShiftUpdateBasicVOBuilder id(final Long id) { this.id = id; return this; } public ShiftUpdateBasicVOBuilder name(final String name) { this.name = name; return this; } public ShiftUpdateBasicVOBuilder colour(final String colour) { this.colour = colour; return this; } public ShiftUpdateBasicVOBuilder status(final Integer status) { this.status = status; return this; } public ShiftUpdateBasicVO build() { return new ShiftUpdateBasicVO(this.id, this.name, this.colour, this.status); } public String toString() { return "ShiftUpdateBasicVO.ShiftUpdateBasicVOBuilder(id=" + this.id + ", name=" + this.name + ", colour=" + this.colour + ", status=" + this.status + ")"; } } public void setId(final Long id) { this.id = id; } public void setName(final String name) { this.name = name; } public void setColour(final String colour) { this.colour = colour; } public void setStatus(final Integer status) { this.status = status; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof ShiftUpdateBasicVO) { ShiftUpdateBasicVO other = (ShiftUpdateBasicVO) o; if (other.canEqual(this)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$status = getStatus(); Object other$status = other.getStatus(); if (this$status == null) { if (other$status != null) { return false; } } else if (!this$status.equals(other$status)) { return false; } Object this$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$colour = getColour(); Object other$colour = other.getColour(); return this$colour == null ? other$colour == null : this$colour.equals(other$colour); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof ShiftUpdateBasicVO; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $status = getStatus(); int result2 = (result * 59) + ($status == null ? 43 : $status.hashCode()); Object $name = getName(); int result3 = (result2 * 59) + ($name == null ? 43 : $name.hashCode()); Object $colour = getColour(); return (result3 * 59) + ($colour == null ? 43 : $colour.hashCode()); } public String toString() { return "ShiftUpdateBasicVO(id=" + getId() + ", name=" + getName() + ", colour=" + getColour() + ", status=" + getStatus() + ")"; } public static ShiftUpdateBasicVOBuilder builder() { return new ShiftUpdateBasicVOBuilder(); } public ShiftUpdateBasicVO(final Long id, final String name, final String colour, final Integer status) { this.id = id; this.name = name; this.colour = colour; this.status = status; } public ShiftUpdateBasicVO() { } public Long getId() { return this.id; } public String getName() { return this.name; } public String getColour() { return this.colour; } public Integer getStatus() { return this.status; } }