
com.xero.models.payrollnz.TimesheetLineObject Maven / Gradle / Ivy
/*
* Xero Payroll NZ
* This is the Xero Payroll API for orgs in the NZ region.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.xero.models.payrollnz;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** TimesheetLineObject */
public class TimesheetLineObject {
StringUtil util = new StringUtil();
@JsonProperty("pagination")
private Pagination pagination;
@JsonProperty("problem")
private Problem problem;
@JsonProperty("timesheetLine")
private TimesheetLine timesheetLine;
/**
* pagination
*
* @param pagination Pagination
* @return TimesheetLineObject
*/
public TimesheetLineObject pagination(Pagination pagination) {
this.pagination = pagination;
return this;
}
/**
* Get pagination
*
* @return pagination
*/
@ApiModelProperty(value = "")
/**
* pagination
*
* @return pagination Pagination
*/
public Pagination getPagination() {
return pagination;
}
/**
* pagination
*
* @param pagination Pagination
*/
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
/**
* problem
*
* @param problem Problem
* @return TimesheetLineObject
*/
public TimesheetLineObject problem(Problem problem) {
this.problem = problem;
return this;
}
/**
* Get problem
*
* @return problem
*/
@ApiModelProperty(value = "")
/**
* problem
*
* @return problem Problem
*/
public Problem getProblem() {
return problem;
}
/**
* problem
*
* @param problem Problem
*/
public void setProblem(Problem problem) {
this.problem = problem;
}
/**
* timesheetLine
*
* @param timesheetLine TimesheetLine
* @return TimesheetLineObject
*/
public TimesheetLineObject timesheetLine(TimesheetLine timesheetLine) {
this.timesheetLine = timesheetLine;
return this;
}
/**
* Get timesheetLine
*
* @return timesheetLine
*/
@ApiModelProperty(value = "")
/**
* timesheetLine
*
* @return timesheetLine TimesheetLine
*/
public TimesheetLine getTimesheetLine() {
return timesheetLine;
}
/**
* timesheetLine
*
* @param timesheetLine TimesheetLine
*/
public void setTimesheetLine(TimesheetLine timesheetLine) {
this.timesheetLine = timesheetLine;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimesheetLineObject timesheetLineObject = (TimesheetLineObject) o;
return Objects.equals(this.pagination, timesheetLineObject.pagination)
&& Objects.equals(this.problem, timesheetLineObject.problem)
&& Objects.equals(this.timesheetLine, timesheetLineObject.timesheetLine);
}
@Override
public int hashCode() {
return Objects.hash(pagination, problem, timesheetLine);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimesheetLineObject {\n");
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
sb.append(" problem: ").append(toIndentedString(problem)).append("\n");
sb.append(" timesheetLine: ").append(toIndentedString(timesheetLine)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy