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

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

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

  @JsonProperty("pagination")
  private Pagination pagination;

  @JsonProperty("problem")
  private Problem problem;

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

  /**
   * benefits
   *
   * @param benefits List<Benefit>
   * @return Benefits
   */
  public Benefits benefits(List benefits) {
    this.benefits = benefits;
    return this;
  }

  /**
   * benefits
   *
   * @param benefitsItem Benefit
   * @return Benefits
   */
  public Benefits addBenefitsItem(Benefit benefitsItem) {
    if (this.benefits == null) {
      this.benefits = new ArrayList();
    }
    this.benefits.add(benefitsItem);
    return this;
  }

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

  /**
   * benefits
   *
   * @param benefits List<Benefit>
   */
  public void setBenefits(List benefits) {
    this.benefits = benefits;
  }

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

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

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