tech.deepdreams.worker.api.dtos.AllowanceSchemeDTO 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;
/**
* AllowanceSchemeDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class AllowanceSchemeDTO {
@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 AllowanceSchemeDTO 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 AllowanceSchemeDTO 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 AllowanceSchemeDTO 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 AllowanceSchemeDTO 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 AllowanceSchemeDTO 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;
}
AllowanceSchemeDTO allowanceScheme = (AllowanceSchemeDTO) o;
return Objects.equals(this.id, allowanceScheme.id) &&
Objects.equals(this.country, allowanceScheme.country) &&
Objects.equals(this.branch, allowanceScheme.branch) &&
Objects.equals(this.rate, allowanceScheme.rate) &&
Objects.equals(this.description, allowanceScheme.description);
}
@Override
public int hashCode() {
return Objects.hash(id, country, branch, rate, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AllowanceSchemeDTO {\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 ");
}
}