com.seeq.model.ItemFinderSearchesInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.FixedListSearchV1;
import com.seeq.model.PropertySearchV1;
import com.seeq.model.SwapAcrossAssetsSearchV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* ItemFinderSearchesInputV1
*/
public class ItemFinderSearchesInputV1 {
@JsonProperty("fixedListSearches")
private List fixedListSearches = new ArrayList();
@JsonProperty("propertySearches")
private List propertySearches = new ArrayList();
@JsonProperty("searches")
private List searches = new ArrayList();
public ItemFinderSearchesInputV1 fixedListSearches(List fixedListSearches) {
this.fixedListSearches = fixedListSearches;
return this;
}
public ItemFinderSearchesInputV1 addFixedListSearchesItem(FixedListSearchV1 fixedListSearchesItem) {
if (this.fixedListSearches == null) {
this.fixedListSearches = new ArrayList();
}
this.fixedListSearches.add(fixedListSearchesItem);
return this;
}
/**
* The list of searches containing a list of item IDs to always include or exclude in the output
* @return fixedListSearches
**/
@Schema(description = "The list of searches containing a list of item IDs to always include or exclude in the output")
public List getFixedListSearches() {
return fixedListSearches;
}
public void setFixedListSearches(List fixedListSearches) {
this.fixedListSearches = fixedListSearches;
}
public ItemFinderSearchesInputV1 propertySearches(List propertySearches) {
this.propertySearches = propertySearches;
return this;
}
public ItemFinderSearchesInputV1 addPropertySearchesItem(PropertySearchV1 propertySearchesItem) {
if (this.propertySearches == null) {
this.propertySearches = new ArrayList();
}
this.propertySearches.add(propertySearchesItem);
return this;
}
/**
* The list of searches based on properties
* @return propertySearches
**/
@Schema(description = "The list of searches based on properties")
public List getPropertySearches() {
return propertySearches;
}
public void setPropertySearches(List propertySearches) {
this.propertySearches = propertySearches;
}
public ItemFinderSearchesInputV1 searches(List searches) {
this.searches = searches;
return this;
}
public ItemFinderSearchesInputV1 addSearchesItem(SwapAcrossAssetsSearchV1 searchesItem) {
if (this.searches == null) {
this.searches = new ArrayList();
}
this.searches.add(searchesItem);
return this;
}
/**
* The list of searches for swapping across assets to find items
* @return searches
**/
@Schema(description = "The list of searches for swapping across assets to find items")
public List getSearches() {
return searches;
}
public void setSearches(List searches) {
this.searches = searches;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ItemFinderSearchesInputV1 itemFinderSearchesInputV1 = (ItemFinderSearchesInputV1) o;
return Objects.equals(this.fixedListSearches, itemFinderSearchesInputV1.fixedListSearches) &&
Objects.equals(this.propertySearches, itemFinderSearchesInputV1.propertySearches) &&
Objects.equals(this.searches, itemFinderSearchesInputV1.searches);
}
@Override
public int hashCode() {
return Objects.hash(fixedListSearches, propertySearches, searches);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ItemFinderSearchesInputV1 {\n");
sb.append(" fixedListSearches: ").append(toIndentedString(fixedListSearches)).append("\n");
sb.append(" propertySearches: ").append(toIndentedString(propertySearches)).append("\n");
sb.append(" searches: ").append(toIndentedString(searches)).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 ");
}
}