
com.squareup.connect.models.V1ListItemsResponse Maven / Gradle / Ivy
/*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Item;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListItemsResponse {
@JsonProperty("items")
private List items = new ArrayList();
public V1ListItemsResponse items(List items) {
this.items = items;
return this;
}
public V1ListItemsResponse addItemsItem(V1Item itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List getItems() {
return items;
}
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;
}
V1ListItemsResponse v1ListItemsResponse = (V1ListItemsResponse) o;
return Objects.equals(this.items, v1ListItemsResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListItemsResponse {\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