All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xero.models.payrolluk.PayRuns 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;

/** PayRuns */
public class PayRuns {
  StringUtil util = new StringUtil();

  @JsonProperty("pagination")
  private Pagination pagination;

  @JsonProperty("problem")
  private Problem problem;

  @JsonProperty("payRuns")
  private List payRuns = new ArrayList();
  /**
   * pagination
   *
   * @param pagination Pagination
   * @return PayRuns
   */
  public PayRuns 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 PayRuns
   */
  public PayRuns 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;
  }

  /**
   * payRuns
   *
   * @param payRuns List<PayRun>
   * @return PayRuns
   */
  public PayRuns payRuns(List payRuns) {
    this.payRuns = payRuns;
    return this;
  }

  /**
   * payRuns
   *
   * @param payRunsItem PayRun
   * @return PayRuns
   */
  public PayRuns addPayRunsItem(PayRun payRunsItem) {
    if (this.payRuns == null) {
      this.payRuns = new ArrayList();
    }
    this.payRuns.add(payRunsItem);
    return this;
  }

  /**
   * Get payRuns
   *
   * @return payRuns
   */
  @ApiModelProperty(value = "")
  /**
   * payRuns
   *
   * @return payRuns List
   */
  public List getPayRuns() {
    return payRuns;
  }

  /**
   * payRuns
   *
   * @param payRuns List<PayRun>
   */
  public void setPayRuns(List payRuns) {
    this.payRuns = payRuns;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayRuns payRuns = (PayRuns) o;
    return Objects.equals(this.pagination, payRuns.pagination)
        && Objects.equals(this.problem, payRuns.problem)
        && Objects.equals(this.payRuns, payRuns.payRuns);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pagination, problem, payRuns);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PayRuns {\n");
    sb.append("    pagination: ").append(toIndentedString(pagination)).append("\n");
    sb.append("    problem: ").append(toIndentedString(problem)).append("\n");
    sb.append("    payRuns: ").append(toIndentedString(payRuns)).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