tech.deepdreams.worker.api.dtos.ElementDTO 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.BenefitCategoryDTO;
import tech.deepdreams.worker.api.dtos.CountryDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* ElementDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class ElementDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("code")
private String code;
@JsonProperty("label")
private String label;
@JsonProperty("elementType")
private String elementType;
@JsonProperty("country")
private CountryDTO country;
@JsonProperty("benefitCategory")
private BenefitCategoryDTO benefitCategory;
@JsonProperty("advantageInKind")
private Boolean advantageInKind;
@JsonProperty("exceptionalIncome")
private Boolean exceptionalIncome;
@JsonProperty("taxesExempted")
private String taxesExempted;
@JsonProperty("contributionsExempted")
private String contributionsExempted;
@JsonProperty("description")
private String description;
public ElementDTO 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 ElementDTO code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
*/
@ApiModelProperty(value = "")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public ElementDTO label(String label) {
this.label = label;
return this;
}
/**
* Get label
* @return label
*/
@ApiModelProperty(value = "")
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public ElementDTO elementType(String elementType) {
this.elementType = elementType;
return this;
}
/**
* Get elementType
* @return elementType
*/
@ApiModelProperty(value = "")
public String getElementType() {
return elementType;
}
public void setElementType(String elementType) {
this.elementType = elementType;
}
public ElementDTO 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 ElementDTO benefitCategory(BenefitCategoryDTO benefitCategory) {
this.benefitCategory = benefitCategory;
return this;
}
/**
* Get benefitCategory
* @return benefitCategory
*/
@ApiModelProperty(value = "")
public BenefitCategoryDTO getBenefitCategory() {
return benefitCategory;
}
public void setBenefitCategory(BenefitCategoryDTO benefitCategory) {
this.benefitCategory = benefitCategory;
}
public ElementDTO advantageInKind(Boolean advantageInKind) {
this.advantageInKind = advantageInKind;
return this;
}
/**
* Get advantageInKind
* @return advantageInKind
*/
@ApiModelProperty(value = "")
public Boolean getAdvantageInKind() {
return advantageInKind;
}
public void setAdvantageInKind(Boolean advantageInKind) {
this.advantageInKind = advantageInKind;
}
public ElementDTO exceptionalIncome(Boolean exceptionalIncome) {
this.exceptionalIncome = exceptionalIncome;
return this;
}
/**
* Get exceptionalIncome
* @return exceptionalIncome
*/
@ApiModelProperty(value = "")
public Boolean getExceptionalIncome() {
return exceptionalIncome;
}
public void setExceptionalIncome(Boolean exceptionalIncome) {
this.exceptionalIncome = exceptionalIncome;
}
public ElementDTO taxesExempted(String taxesExempted) {
this.taxesExempted = taxesExempted;
return this;
}
/**
* Get taxesExempted
* @return taxesExempted
*/
@ApiModelProperty(value = "")
public String getTaxesExempted() {
return taxesExempted;
}
public void setTaxesExempted(String taxesExempted) {
this.taxesExempted = taxesExempted;
}
public ElementDTO contributionsExempted(String contributionsExempted) {
this.contributionsExempted = contributionsExempted;
return this;
}
/**
* Get contributionsExempted
* @return contributionsExempted
*/
@ApiModelProperty(value = "")
public String getContributionsExempted() {
return contributionsExempted;
}
public void setContributionsExempted(String contributionsExempted) {
this.contributionsExempted = contributionsExempted;
}
public ElementDTO 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;
}
ElementDTO element = (ElementDTO) o;
return Objects.equals(this.id, element.id) &&
Objects.equals(this.code, element.code) &&
Objects.equals(this.label, element.label) &&
Objects.equals(this.elementType, element.elementType) &&
Objects.equals(this.country, element.country) &&
Objects.equals(this.benefitCategory, element.benefitCategory) &&
Objects.equals(this.advantageInKind, element.advantageInKind) &&
Objects.equals(this.exceptionalIncome, element.exceptionalIncome) &&
Objects.equals(this.taxesExempted, element.taxesExempted) &&
Objects.equals(this.contributionsExempted, element.contributionsExempted) &&
Objects.equals(this.description, element.description);
}
@Override
public int hashCode() {
return Objects.hash(id, code, label, elementType, country, benefitCategory, advantageInKind, exceptionalIncome, taxesExempted, contributionsExempted, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ElementDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" elementType: ").append(toIndentedString(elementType)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" benefitCategory: ").append(toIndentedString(benefitCategory)).append("\n");
sb.append(" advantageInKind: ").append(toIndentedString(advantageInKind)).append("\n");
sb.append(" exceptionalIncome: ").append(toIndentedString(exceptionalIncome)).append("\n");
sb.append(" taxesExempted: ").append(toIndentedString(taxesExempted)).append("\n");
sb.append(" contributionsExempted: ").append(toIndentedString(contributionsExempted)).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 ");
}
}