tech.deepdreams.worker.api.dtos.WorkRiskDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-api Show documentation
Show all versions of worker-api Show documentation
Payroll Worker API project for Java 17
package tech.deepdreams.worker.api.dtos;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tech.deepdreams.worker.api.dtos.BranchDTO;
import tech.deepdreams.worker.api.dtos.CountryDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* WorkRiskDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class WorkRiskDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("country")
private CountryDTO country;
@JsonProperty("branch")
private BranchDTO branch;
@JsonProperty("rate")
private Float rate;
@JsonProperty("description")
private String description;
public WorkRiskDTO id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public WorkRiskDTO country(CountryDTO country) {
this.country = country;
return this;
}
/**
* Get country
* @return country
*/
@ApiModelProperty(value = "")
public CountryDTO getCountry() {
return country;
}
public void setCountry(CountryDTO country) {
this.country = country;
}
public WorkRiskDTO branch(BranchDTO branch) {
this.branch = branch;
return this;
}
/**
* Get branch
* @return branch
*/
@ApiModelProperty(value = "")
public BranchDTO getBranch() {
return branch;
}
public void setBranch(BranchDTO branch) {
this.branch = branch;
}
public WorkRiskDTO rate(Float rate) {
this.rate = rate;
return this;
}
/**
* Get rate
* @return rate
*/
@ApiModelProperty(value = "")
public Float getRate() {
return rate;
}
public void setRate(Float rate) {
this.rate = rate;
}
public WorkRiskDTO description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
*/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkRiskDTO workRisk = (WorkRiskDTO) o;
return Objects.equals(this.id, workRisk.id) &&
Objects.equals(this.country, workRisk.country) &&
Objects.equals(this.branch, workRisk.branch) &&
Objects.equals(this.rate, workRisk.rate) &&
Objects.equals(this.description, workRisk.description);
}
@Override
public int hashCode() {
return Objects.hash(id, country, branch, rate, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkRiskDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}