org.finra.herd.sdk.model.IndexSearchResponse Maven / Gradle / Ivy
/*
* herd-external
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.125.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.finra.herd.sdk.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.Facet;
import org.finra.herd.sdk.model.IndexSearchResult;
/**
* IndexSearchResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class IndexSearchResponse {
@JsonProperty("totalIndexSearchResults")
private Long totalIndexSearchResults = null;
@JsonProperty("indexSearchResults")
private List indexSearchResults = null;
@JsonProperty("facets")
private List facets = null;
public IndexSearchResponse totalIndexSearchResults(Long totalIndexSearchResults) {
this.totalIndexSearchResults = totalIndexSearchResults;
return this;
}
/**
* The total number of index search results that matched the search term query
* @return totalIndexSearchResults
**/
@ApiModelProperty(value = "The total number of index search results that matched the search term query")
public Long getTotalIndexSearchResults() {
return totalIndexSearchResults;
}
public void setTotalIndexSearchResults(Long totalIndexSearchResults) {
this.totalIndexSearchResults = totalIndexSearchResults;
}
public IndexSearchResponse indexSearchResults(List indexSearchResults) {
this.indexSearchResults = indexSearchResults;
return this;
}
public IndexSearchResponse addIndexSearchResultsItem(IndexSearchResult indexSearchResultsItem) {
if (this.indexSearchResults == null) {
this.indexSearchResults = new ArrayList();
}
this.indexSearchResults.add(indexSearchResultsItem);
return this;
}
/**
* The top 200 index search results that matched the search term query
* @return indexSearchResults
**/
@ApiModelProperty(value = "The top 200 index search results that matched the search term query")
public List getIndexSearchResults() {
return indexSearchResults;
}
public void setIndexSearchResults(List indexSearchResults) {
this.indexSearchResults = indexSearchResults;
}
public IndexSearchResponse facets(List facets) {
this.facets = facets;
return this;
}
public IndexSearchResponse addFacetsItem(Facet facetsItem) {
if (this.facets == null) {
this.facets = new ArrayList();
}
this.facets.add(facetsItem);
return this;
}
/**
* Values that identifies a list of facet information.
* @return facets
**/
@ApiModelProperty(value = " Values that identifies a list of facet information. ")
public List getFacets() {
return facets;
}
public void setFacets(List facets) {
this.facets = facets;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IndexSearchResponse indexSearchResponse = (IndexSearchResponse) o;
return Objects.equals(this.totalIndexSearchResults, indexSearchResponse.totalIndexSearchResults) &&
Objects.equals(this.indexSearchResults, indexSearchResponse.indexSearchResults) &&
Objects.equals(this.facets, indexSearchResponse.facets);
}
@Override
public int hashCode() {
return Objects.hash(totalIndexSearchResults, indexSearchResults, facets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IndexSearchResponse {\n");
sb.append(" totalIndexSearchResults: ").append(toIndentedString(totalIndexSearchResults)).append("\n");
sb.append(" indexSearchResults: ").append(toIndentedString(indexSearchResults)).append("\n");
sb.append(" facets: ").append(toIndentedString(facets)).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 ");
}
}