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

com.xero.models.accounting.Users Maven / Gradle / Ivy

/*
 * Xero Accounting API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * 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.accounting;

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;

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

  @JsonProperty("Users")
  private List users = new ArrayList();
  /**
   * users
   *
   * @param users List<User>
   * @return Users
   */
  public Users users(List users) {
    this.users = users;
    return this;
  }

  /**
   * users
   *
   * @param usersItem User
   * @return Users
   */
  public Users addUsersItem(User usersItem) {
    if (this.users == null) {
      this.users = new ArrayList();
    }
    this.users.add(usersItem);
    return this;
  }

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

  /**
   * users
   *
   * @param users List<User>
   */
  public void setUsers(List users) {
    this.users = users;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Users users = (Users) o;
    return Objects.equals(this.users, users.users);
  }

  @Override
  public int hashCode() {
    return Objects.hash(users);
  }

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