tech.deepdreams.worker.api.dtos.ChildDTO 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 java.time.LocalDate;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* ChildDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class ChildDTO {
@JsonProperty("index")
private Integer index;
@JsonProperty("firstName")
private String firstName;
@JsonProperty("lastName")
private String lastName;
@JsonProperty("gender")
private String gender;
@JsonProperty("birthDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate birthDate;
@JsonProperty("dead")
private Boolean dead;
@JsonProperty("disabled")
private Boolean disabled;
@JsonProperty("inStudy")
private Boolean inStudy;
public ChildDTO index(Integer index) {
this.index = index;
return this;
}
/**
* Get index
* @return index
*/
@ApiModelProperty(value = "")
public Integer getIndex() {
return index;
}
public void setIndex(Integer index) {
this.index = index;
}
public ChildDTO firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
*/
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public ChildDTO lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get lastName
* @return lastName
*/
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public ChildDTO gender(String gender) {
this.gender = gender;
return this;
}
/**
* Get gender
* @return gender
*/
@ApiModelProperty(value = "")
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public ChildDTO birthDate(LocalDate birthDate) {
this.birthDate = birthDate;
return this;
}
/**
* Get birthDate
* @return birthDate
*/
@ApiModelProperty(value = "")
public LocalDate getBirthDate() {
return birthDate;
}
public void setBirthDate(LocalDate birthDate) {
this.birthDate = birthDate;
}
public ChildDTO dead(Boolean dead) {
this.dead = dead;
return this;
}
/**
* Get dead
* @return dead
*/
@ApiModelProperty(value = "")
public Boolean getDead() {
return dead;
}
public void setDead(Boolean dead) {
this.dead = dead;
}
public ChildDTO disabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* Get disabled
* @return disabled
*/
@ApiModelProperty(value = "")
public Boolean getDisabled() {
return disabled;
}
public void setDisabled(Boolean disabled) {
this.disabled = disabled;
}
public ChildDTO inStudy(Boolean inStudy) {
this.inStudy = inStudy;
return this;
}
/**
* Get inStudy
* @return inStudy
*/
@ApiModelProperty(value = "")
public Boolean getInStudy() {
return inStudy;
}
public void setInStudy(Boolean inStudy) {
this.inStudy = inStudy;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChildDTO child = (ChildDTO) o;
return Objects.equals(this.index, child.index) &&
Objects.equals(this.firstName, child.firstName) &&
Objects.equals(this.lastName, child.lastName) &&
Objects.equals(this.gender, child.gender) &&
Objects.equals(this.birthDate, child.birthDate) &&
Objects.equals(this.dead, child.dead) &&
Objects.equals(this.disabled, child.disabled) &&
Objects.equals(this.inStudy, child.inStudy);
}
@Override
public int hashCode() {
return Objects.hash(index, firstName, lastName, gender, birthDate, dead, disabled, inStudy);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChildDTO {\n");
sb.append(" index: ").append(toIndentedString(index)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" gender: ").append(toIndentedString(gender)).append("\n");
sb.append(" birthDate: ").append(toIndentedString(birthDate)).append("\n");
sb.append(" dead: ").append(toIndentedString(dead)).append("\n");
sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
sb.append(" inStudy: ").append(toIndentedString(inStudy)).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 ");
}
}