tech.deepdreams.worker.api.dtos.StatusDTO 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.CountryDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* StatusDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-27T12:27:26.661192300-04:00[America/Toronto]")
public class StatusDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("label")
private String label;
@JsonProperty("salarySupported")
private Boolean salarySupported;
@JsonProperty("expatriate")
private Boolean expatriate;
@JsonProperty("description")
private String description;
@JsonProperty("country")
private CountryDTO country;
public StatusDTO 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 StatusDTO 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 StatusDTO salarySupported(Boolean salarySupported) {
this.salarySupported = salarySupported;
return this;
}
/**
* Get salarySupported
* @return salarySupported
*/
@ApiModelProperty(value = "")
public Boolean getSalarySupported() {
return salarySupported;
}
public void setSalarySupported(Boolean salarySupported) {
this.salarySupported = salarySupported;
}
public StatusDTO expatriate(Boolean expatriate) {
this.expatriate = expatriate;
return this;
}
/**
* Get expatriate
* @return expatriate
*/
@ApiModelProperty(value = "")
public Boolean getExpatriate() {
return expatriate;
}
public void setExpatriate(Boolean expatriate) {
this.expatriate = expatriate;
}
public StatusDTO 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;
}
public StatusDTO 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;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StatusDTO status = (StatusDTO) o;
return Objects.equals(this.id, status.id) &&
Objects.equals(this.label, status.label) &&
Objects.equals(this.salarySupported, status.salarySupported) &&
Objects.equals(this.expatriate, status.expatriate) &&
Objects.equals(this.description, status.description) &&
Objects.equals(this.country, status.country);
}
@Override
public int hashCode() {
return Objects.hash(id, label, salarySupported, expatriate, description, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StatusDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" salarySupported: ").append(toIndentedString(salarySupported)).append("\n");
sb.append(" expatriate: ").append(toIndentedString(expatriate)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).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 ");
}
}