
com.xero.models.project.Projects Maven / Gradle / Ivy
/*
* Xero Projects API
* This is the Xero Projects API
*
* 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.project;
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;
/** Projects */
public class Projects {
StringUtil util = new StringUtil();
@JsonProperty("pagination")
private Pagination pagination;
@JsonProperty("items")
private List items = new ArrayList();
/**
* pagination
*
* @param pagination Pagination
* @return Projects
*/
public Projects 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;
}
/**
* items
*
* @param items List<Project>
* @return Projects
*/
public Projects items(List items) {
this.items = items;
return this;
}
/**
* items
*
* @param itemsItem Project
* @return Projects
*/
public Projects addItemsItem(Project itemsItem) {
if (this.items == null) {
this.items = new ArrayList();
}
this.items.add(itemsItem);
return this;
}
/**
* Get items
*
* @return items
*/
@ApiModelProperty(value = "")
/**
* items
*
* @return items List
*/
public List getItems() {
return items;
}
/**
* items
*
* @param items List<Project>
*/
public void setItems(List items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Projects projects = (Projects) o;
return Objects.equals(this.pagination, projects.pagination)
&& Objects.equals(this.items, projects.items);
}
@Override
public int hashCode() {
return Objects.hash(pagination, items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Projects {\n");
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).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