tech.deepdreams.worker.api.dtos.EmployeeDTO 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 tech.deepdreams.worker.api.dtos.BankDTO;
import tech.deepdreams.worker.api.dtos.FunctionDTO;
import tech.deepdreams.worker.api.dtos.OperatorDTO;
import tech.deepdreams.worker.api.dtos.StatusDTO;
import tech.deepdreams.worker.api.dtos.SubscriberDTO;
import tech.deepdreams.worker.api.dtos.UnitDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* EmployeeDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-27T12:27:26.661192300-04:00[America/Toronto]")
public class EmployeeDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("firstName")
private String firstName;
@JsonProperty("lastName")
private String lastName;
@JsonProperty("gender")
private String gender;
@JsonProperty("maritalStatus")
private String maritalStatus;
@JsonProperty("birthDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate birthDate;
@JsonProperty("children")
private Double children;
@JsonProperty("socialSecurityNumber")
private String socialSecurityNumber;
@JsonProperty("registrationNumber")
private String registrationNumber;
@JsonProperty("unit")
private UnitDTO unit;
@JsonProperty("function")
private FunctionDTO function;
@JsonProperty("status")
private StatusDTO status;
@JsonProperty("subscriber")
private SubscriberDTO subscriber;
@JsonProperty("startDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate startDate;
@JsonProperty("endDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate endDate;
@JsonProperty("contractType")
private String contractType;
@JsonProperty("contractDuration")
private Integer contractDuration;
@JsonProperty("weeklyWorkingHours")
private Double weeklyWorkingHours;
@JsonProperty("annualLeaveDays")
private Double annualLeaveDays;
@JsonProperty("monthlyLeaveDays")
private Double monthlyLeaveDays;
@JsonProperty("annualAbsenceDays")
private Double annualAbsenceDays;
@JsonProperty("retirementAge")
private Integer retirementAge;
@JsonProperty("bank")
private BankDTO bank;
@JsonProperty("bankAgencyCode")
private String bankAgencyCode;
@JsonProperty("bankAccountNumber")
private String bankAccountNumber;
@JsonProperty("bankAccountKey")
private String bankAccountKey;
@JsonProperty("codeSwift")
private String codeSwift;
@JsonProperty("ibanCountryCode")
private String ibanCountryCode;
@JsonProperty("ibanControlKey")
private String ibanControlKey;
@JsonProperty("operator")
private OperatorDTO operator;
@JsonProperty("momoNumber")
private String momoNumber;
@JsonProperty("phoneNumber")
private String phoneNumber;
@JsonProperty("emailAddress")
private String emailAddress;
@JsonProperty("address")
private String address;
@JsonProperty("suspensionDays")
private Integer suspensionDays;
@JsonProperty("suspensionDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate suspensionDate;
@JsonProperty("terminationReason")
private String terminationReason;
@JsonProperty("photoKey")
private String photoKey;
@JsonProperty("photoBody")
private String photoBody;
@JsonProperty("state")
private String state;
public EmployeeDTO 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 EmployeeDTO 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 EmployeeDTO 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 EmployeeDTO 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 EmployeeDTO maritalStatus(String maritalStatus) {
this.maritalStatus = maritalStatus;
return this;
}
/**
* Get maritalStatus
* @return maritalStatus
*/
@ApiModelProperty(value = "")
public String getMaritalStatus() {
return maritalStatus;
}
public void setMaritalStatus(String maritalStatus) {
this.maritalStatus = maritalStatus;
}
public EmployeeDTO 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 EmployeeDTO children(Double children) {
this.children = children;
return this;
}
/**
* Get children
* @return children
*/
@ApiModelProperty(value = "")
public Double getChildren() {
return children;
}
public void setChildren(Double children) {
this.children = children;
}
public EmployeeDTO socialSecurityNumber(String socialSecurityNumber) {
this.socialSecurityNumber = socialSecurityNumber;
return this;
}
/**
* Get socialSecurityNumber
* @return socialSecurityNumber
*/
@ApiModelProperty(value = "")
public String getSocialSecurityNumber() {
return socialSecurityNumber;
}
public void setSocialSecurityNumber(String socialSecurityNumber) {
this.socialSecurityNumber = socialSecurityNumber;
}
public EmployeeDTO registrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
return this;
}
/**
* Get registrationNumber
* @return registrationNumber
*/
@ApiModelProperty(value = "")
public String getRegistrationNumber() {
return registrationNumber;
}
public void setRegistrationNumber(String registrationNumber) {
this.registrationNumber = registrationNumber;
}
public EmployeeDTO unit(UnitDTO unit) {
this.unit = unit;
return this;
}
/**
* Get unit
* @return unit
*/
@ApiModelProperty(value = "")
public UnitDTO getUnit() {
return unit;
}
public void setUnit(UnitDTO unit) {
this.unit = unit;
}
public EmployeeDTO function(FunctionDTO function) {
this.function = function;
return this;
}
/**
* Get function
* @return function
*/
@ApiModelProperty(value = "")
public FunctionDTO getFunction() {
return function;
}
public void setFunction(FunctionDTO function) {
this.function = function;
}
public EmployeeDTO status(StatusDTO status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
*/
@ApiModelProperty(value = "")
public StatusDTO getStatus() {
return status;
}
public void setStatus(StatusDTO status) {
this.status = status;
}
public EmployeeDTO subscriber(SubscriberDTO subscriber) {
this.subscriber = subscriber;
return this;
}
/**
* Get subscriber
* @return subscriber
*/
@ApiModelProperty(value = "")
public SubscriberDTO getSubscriber() {
return subscriber;
}
public void setSubscriber(SubscriberDTO subscriber) {
this.subscriber = subscriber;
}
public EmployeeDTO startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* Get startDate
* @return startDate
*/
@ApiModelProperty(value = "")
public LocalDate getStartDate() {
return startDate;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public EmployeeDTO endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
* @return endDate
*/
@ApiModelProperty(value = "")
public LocalDate getEndDate() {
return endDate;
}
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public EmployeeDTO contractType(String contractType) {
this.contractType = contractType;
return this;
}
/**
* Get contractType
* @return contractType
*/
@ApiModelProperty(value = "")
public String getContractType() {
return contractType;
}
public void setContractType(String contractType) {
this.contractType = contractType;
}
public EmployeeDTO contractDuration(Integer contractDuration) {
this.contractDuration = contractDuration;
return this;
}
/**
* Get contractDuration
* @return contractDuration
*/
@ApiModelProperty(value = "")
public Integer getContractDuration() {
return contractDuration;
}
public void setContractDuration(Integer contractDuration) {
this.contractDuration = contractDuration;
}
public EmployeeDTO weeklyWorkingHours(Double weeklyWorkingHours) {
this.weeklyWorkingHours = weeklyWorkingHours;
return this;
}
/**
* Get weeklyWorkingHours
* @return weeklyWorkingHours
*/
@ApiModelProperty(value = "")
public Double getWeeklyWorkingHours() {
return weeklyWorkingHours;
}
public void setWeeklyWorkingHours(Double weeklyWorkingHours) {
this.weeklyWorkingHours = weeklyWorkingHours;
}
public EmployeeDTO annualLeaveDays(Double annualLeaveDays) {
this.annualLeaveDays = annualLeaveDays;
return this;
}
/**
* Get annualLeaveDays
* @return annualLeaveDays
*/
@ApiModelProperty(value = "")
public Double getAnnualLeaveDays() {
return annualLeaveDays;
}
public void setAnnualLeaveDays(Double annualLeaveDays) {
this.annualLeaveDays = annualLeaveDays;
}
public EmployeeDTO monthlyLeaveDays(Double monthlyLeaveDays) {
this.monthlyLeaveDays = monthlyLeaveDays;
return this;
}
/**
* Get monthlyLeaveDays
* @return monthlyLeaveDays
*/
@ApiModelProperty(value = "")
public Double getMonthlyLeaveDays() {
return monthlyLeaveDays;
}
public void setMonthlyLeaveDays(Double monthlyLeaveDays) {
this.monthlyLeaveDays = monthlyLeaveDays;
}
public EmployeeDTO annualAbsenceDays(Double annualAbsenceDays) {
this.annualAbsenceDays = annualAbsenceDays;
return this;
}
/**
* Get annualAbsenceDays
* @return annualAbsenceDays
*/
@ApiModelProperty(value = "")
public Double getAnnualAbsenceDays() {
return annualAbsenceDays;
}
public void setAnnualAbsenceDays(Double annualAbsenceDays) {
this.annualAbsenceDays = annualAbsenceDays;
}
public EmployeeDTO retirementAge(Integer retirementAge) {
this.retirementAge = retirementAge;
return this;
}
/**
* Get retirementAge
* @return retirementAge
*/
@ApiModelProperty(value = "")
public Integer getRetirementAge() {
return retirementAge;
}
public void setRetirementAge(Integer retirementAge) {
this.retirementAge = retirementAge;
}
public EmployeeDTO bank(BankDTO bank) {
this.bank = bank;
return this;
}
/**
* Get bank
* @return bank
*/
@ApiModelProperty(value = "")
public BankDTO getBank() {
return bank;
}
public void setBank(BankDTO bank) {
this.bank = bank;
}
public EmployeeDTO bankAgencyCode(String bankAgencyCode) {
this.bankAgencyCode = bankAgencyCode;
return this;
}
/**
* Get bankAgencyCode
* @return bankAgencyCode
*/
@ApiModelProperty(value = "")
public String getBankAgencyCode() {
return bankAgencyCode;
}
public void setBankAgencyCode(String bankAgencyCode) {
this.bankAgencyCode = bankAgencyCode;
}
public EmployeeDTO bankAccountNumber(String bankAccountNumber) {
this.bankAccountNumber = bankAccountNumber;
return this;
}
/**
* Get bankAccountNumber
* @return bankAccountNumber
*/
@ApiModelProperty(value = "")
public String getBankAccountNumber() {
return bankAccountNumber;
}
public void setBankAccountNumber(String bankAccountNumber) {
this.bankAccountNumber = bankAccountNumber;
}
public EmployeeDTO bankAccountKey(String bankAccountKey) {
this.bankAccountKey = bankAccountKey;
return this;
}
/**
* Get bankAccountKey
* @return bankAccountKey
*/
@ApiModelProperty(value = "")
public String getBankAccountKey() {
return bankAccountKey;
}
public void setBankAccountKey(String bankAccountKey) {
this.bankAccountKey = bankAccountKey;
}
public EmployeeDTO codeSwift(String codeSwift) {
this.codeSwift = codeSwift;
return this;
}
/**
* Get codeSwift
* @return codeSwift
*/
@ApiModelProperty(value = "")
public String getCodeSwift() {
return codeSwift;
}
public void setCodeSwift(String codeSwift) {
this.codeSwift = codeSwift;
}
public EmployeeDTO ibanCountryCode(String ibanCountryCode) {
this.ibanCountryCode = ibanCountryCode;
return this;
}
/**
* Get ibanCountryCode
* @return ibanCountryCode
*/
@ApiModelProperty(value = "")
public String getIbanCountryCode() {
return ibanCountryCode;
}
public void setIbanCountryCode(String ibanCountryCode) {
this.ibanCountryCode = ibanCountryCode;
}
public EmployeeDTO ibanControlKey(String ibanControlKey) {
this.ibanControlKey = ibanControlKey;
return this;
}
/**
* Get ibanControlKey
* @return ibanControlKey
*/
@ApiModelProperty(value = "")
public String getIbanControlKey() {
return ibanControlKey;
}
public void setIbanControlKey(String ibanControlKey) {
this.ibanControlKey = ibanControlKey;
}
public EmployeeDTO operator(OperatorDTO operator) {
this.operator = operator;
return this;
}
/**
* Get operator
* @return operator
*/
@ApiModelProperty(value = "")
public OperatorDTO getOperator() {
return operator;
}
public void setOperator(OperatorDTO operator) {
this.operator = operator;
}
public EmployeeDTO momoNumber(String momoNumber) {
this.momoNumber = momoNumber;
return this;
}
/**
* Get momoNumber
* @return momoNumber
*/
@ApiModelProperty(value = "")
public String getMomoNumber() {
return momoNumber;
}
public void setMomoNumber(String momoNumber) {
this.momoNumber = momoNumber;
}
public EmployeeDTO phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* Get phoneNumber
* @return phoneNumber
*/
@ApiModelProperty(value = "")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public EmployeeDTO emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Get emailAddress
* @return emailAddress
*/
@ApiModelProperty(value = "")
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public EmployeeDTO address(String address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
*/
@ApiModelProperty(value = "")
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public EmployeeDTO suspensionDays(Integer suspensionDays) {
this.suspensionDays = suspensionDays;
return this;
}
/**
* Get suspensionDays
* @return suspensionDays
*/
@ApiModelProperty(value = "")
public Integer getSuspensionDays() {
return suspensionDays;
}
public void setSuspensionDays(Integer suspensionDays) {
this.suspensionDays = suspensionDays;
}
public EmployeeDTO suspensionDate(LocalDate suspensionDate) {
this.suspensionDate = suspensionDate;
return this;
}
/**
* Get suspensionDate
* @return suspensionDate
*/
@ApiModelProperty(value = "")
public LocalDate getSuspensionDate() {
return suspensionDate;
}
public void setSuspensionDate(LocalDate suspensionDate) {
this.suspensionDate = suspensionDate;
}
public EmployeeDTO terminationReason(String terminationReason) {
this.terminationReason = terminationReason;
return this;
}
/**
* Get terminationReason
* @return terminationReason
*/
@ApiModelProperty(value = "")
public String getTerminationReason() {
return terminationReason;
}
public void setTerminationReason(String terminationReason) {
this.terminationReason = terminationReason;
}
public EmployeeDTO photoKey(String photoKey) {
this.photoKey = photoKey;
return this;
}
/**
* Get photoKey
* @return photoKey
*/
@ApiModelProperty(value = "")
public String getPhotoKey() {
return photoKey;
}
public void setPhotoKey(String photoKey) {
this.photoKey = photoKey;
}
public EmployeeDTO photoBody(String photoBody) {
this.photoBody = photoBody;
return this;
}
/**
* Get photoBody
* @return photoBody
*/
@ApiModelProperty(value = "")
public String getPhotoBody() {
return photoBody;
}
public void setPhotoBody(String photoBody) {
this.photoBody = photoBody;
}
public EmployeeDTO state(String state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
*/
@ApiModelProperty(value = "")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmployeeDTO employee = (EmployeeDTO) o;
return Objects.equals(this.id, employee.id) &&
Objects.equals(this.firstName, employee.firstName) &&
Objects.equals(this.lastName, employee.lastName) &&
Objects.equals(this.gender, employee.gender) &&
Objects.equals(this.maritalStatus, employee.maritalStatus) &&
Objects.equals(this.birthDate, employee.birthDate) &&
Objects.equals(this.children, employee.children) &&
Objects.equals(this.socialSecurityNumber, employee.socialSecurityNumber) &&
Objects.equals(this.registrationNumber, employee.registrationNumber) &&
Objects.equals(this.unit, employee.unit) &&
Objects.equals(this.function, employee.function) &&
Objects.equals(this.status, employee.status) &&
Objects.equals(this.subscriber, employee.subscriber) &&
Objects.equals(this.startDate, employee.startDate) &&
Objects.equals(this.endDate, employee.endDate) &&
Objects.equals(this.contractType, employee.contractType) &&
Objects.equals(this.contractDuration, employee.contractDuration) &&
Objects.equals(this.weeklyWorkingHours, employee.weeklyWorkingHours) &&
Objects.equals(this.annualLeaveDays, employee.annualLeaveDays) &&
Objects.equals(this.monthlyLeaveDays, employee.monthlyLeaveDays) &&
Objects.equals(this.annualAbsenceDays, employee.annualAbsenceDays) &&
Objects.equals(this.retirementAge, employee.retirementAge) &&
Objects.equals(this.bank, employee.bank) &&
Objects.equals(this.bankAgencyCode, employee.bankAgencyCode) &&
Objects.equals(this.bankAccountNumber, employee.bankAccountNumber) &&
Objects.equals(this.bankAccountKey, employee.bankAccountKey) &&
Objects.equals(this.codeSwift, employee.codeSwift) &&
Objects.equals(this.ibanCountryCode, employee.ibanCountryCode) &&
Objects.equals(this.ibanControlKey, employee.ibanControlKey) &&
Objects.equals(this.operator, employee.operator) &&
Objects.equals(this.momoNumber, employee.momoNumber) &&
Objects.equals(this.phoneNumber, employee.phoneNumber) &&
Objects.equals(this.emailAddress, employee.emailAddress) &&
Objects.equals(this.address, employee.address) &&
Objects.equals(this.suspensionDays, employee.suspensionDays) &&
Objects.equals(this.suspensionDate, employee.suspensionDate) &&
Objects.equals(this.terminationReason, employee.terminationReason) &&
Objects.equals(this.photoKey, employee.photoKey) &&
Objects.equals(this.photoBody, employee.photoBody) &&
Objects.equals(this.state, employee.state);
}
@Override
public int hashCode() {
return Objects.hash(id, firstName, lastName, gender, maritalStatus, birthDate, children, socialSecurityNumber, registrationNumber, unit, function, status, subscriber, startDate, endDate, contractType, contractDuration, weeklyWorkingHours, annualLeaveDays, monthlyLeaveDays, annualAbsenceDays, retirementAge, bank, bankAgencyCode, bankAccountNumber, bankAccountKey, codeSwift, ibanCountryCode, ibanControlKey, operator, momoNumber, phoneNumber, emailAddress, address, suspensionDays, suspensionDate, terminationReason, photoKey, photoBody, state);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmployeeDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).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(" maritalStatus: ").append(toIndentedString(maritalStatus)).append("\n");
sb.append(" birthDate: ").append(toIndentedString(birthDate)).append("\n");
sb.append(" children: ").append(toIndentedString(children)).append("\n");
sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n");
sb.append(" registrationNumber: ").append(toIndentedString(registrationNumber)).append("\n");
sb.append(" unit: ").append(toIndentedString(unit)).append("\n");
sb.append(" function: ").append(toIndentedString(function)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" subscriber: ").append(toIndentedString(subscriber)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" contractType: ").append(toIndentedString(contractType)).append("\n");
sb.append(" contractDuration: ").append(toIndentedString(contractDuration)).append("\n");
sb.append(" weeklyWorkingHours: ").append(toIndentedString(weeklyWorkingHours)).append("\n");
sb.append(" annualLeaveDays: ").append(toIndentedString(annualLeaveDays)).append("\n");
sb.append(" monthlyLeaveDays: ").append(toIndentedString(monthlyLeaveDays)).append("\n");
sb.append(" annualAbsenceDays: ").append(toIndentedString(annualAbsenceDays)).append("\n");
sb.append(" retirementAge: ").append(toIndentedString(retirementAge)).append("\n");
sb.append(" bank: ").append(toIndentedString(bank)).append("\n");
sb.append(" bankAgencyCode: ").append(toIndentedString(bankAgencyCode)).append("\n");
sb.append(" bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n");
sb.append(" bankAccountKey: ").append(toIndentedString(bankAccountKey)).append("\n");
sb.append(" codeSwift: ").append(toIndentedString(codeSwift)).append("\n");
sb.append(" ibanCountryCode: ").append(toIndentedString(ibanCountryCode)).append("\n");
sb.append(" ibanControlKey: ").append(toIndentedString(ibanControlKey)).append("\n");
sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
sb.append(" momoNumber: ").append(toIndentedString(momoNumber)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" suspensionDays: ").append(toIndentedString(suspensionDays)).append("\n");
sb.append(" suspensionDate: ").append(toIndentedString(suspensionDate)).append("\n");
sb.append(" terminationReason: ").append(toIndentedString(terminationReason)).append("\n");
sb.append(" photoKey: ").append(toIndentedString(photoKey)).append("\n");
sb.append(" photoBody: ").append(toIndentedString(photoBody)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).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 ");
}
}