
com.xero.models.payrolluk.Timesheets Maven / Gradle / Ivy
/*
* Xero Payroll UK
* This is the Xero Payroll API for orgs in the UK 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.payrolluk;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** Timesheets */
public class Timesheets {
StringUtil util = new StringUtil();
@JsonProperty("pagination")
private Pagination pagination;
@JsonProperty("problem")
private Problem problem;
@JsonProperty("timesheets")
private List timesheets = new ArrayList();
/**
* pagination
*
* @param pagination Pagination
* @return Timesheets
*/
public Timesheets 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 Timesheets
*/
public Timesheets 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;
}
/**
* timesheets
*
* @param timesheets List<Timesheet>
* @return Timesheets
*/
public Timesheets timesheets(List timesheets) {
this.timesheets = timesheets;
return this;
}
/**
* timesheets
*
* @param timesheetsItem Timesheet
* @return Timesheets
*/
public Timesheets addTimesheetsItem(Timesheet timesheetsItem) {
if (this.timesheets == null) {
this.timesheets = new ArrayList();
}
this.timesheets.add(timesheetsItem);
return this;
}
/**
* Get timesheets
*
* @return timesheets
*/
@ApiModelProperty(value = "")
/**
* timesheets
*
* @return timesheets List
*/
public List getTimesheets() {
return timesheets;
}
/**
* timesheets
*
* @param timesheets List<Timesheet>
*/
public void setTimesheets(List timesheets) {
this.timesheets = timesheets;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Timesheets timesheets = (Timesheets) o;
return Objects.equals(this.pagination, timesheets.pagination)
&& Objects.equals(this.problem, timesheets.problem)
&& Objects.equals(this.timesheets, timesheets.timesheets);
}
@Override
public int hashCode() {
return Objects.hash(pagination, problem, timesheets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Timesheets {\n");
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
sb.append(" problem: ").append(toIndentedString(problem)).append("\n");
sb.append(" timesheets: ").append(toIndentedString(timesheets)).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