
com.xero.models.accounting.Items 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;
/** Items */
public class Items {
StringUtil util = new StringUtil();
@JsonProperty("Items")
private List- items = new ArrayList
- ();
/**
* items
*
* @param items List<Item>
* @return Items
*/
public Items items(List
- items) {
this.items = items;
return this;
}
/**
* items
*
* @param itemsItem Item
* @return Items
*/
public Items addItemsItem(Item 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<Item>
*/
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;
}
Items items = (Items) o;
return Objects.equals(this.items, items.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Items {\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