com.clinia.model.common.V1FacetParameters Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.common;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1FacetParameters */
public class V1FacetParameters {
@JsonProperty("searchParams")
private V1SearchParameters searchParams;
@JsonProperty("pattern")
private String pattern;
@JsonProperty("page")
private Integer page;
@JsonProperty("perPage")
private Integer perPage;
public V1FacetParameters setSearchParams(V1SearchParameters searchParams) {
this.searchParams = searchParams;
return this;
}
/** Get searchParams */
@javax.annotation.Nullable
public V1SearchParameters getSearchParams() {
return searchParams;
}
public V1FacetParameters setPattern(String pattern) {
this.pattern = pattern;
return this;
}
/** Get pattern */
@javax.annotation.Nullable
public String getPattern() {
return pattern;
}
public V1FacetParameters setPage(Integer page) {
this.page = page;
return this;
}
/** Get page */
@javax.annotation.Nullable
public Integer getPage() {
return page;
}
public V1FacetParameters setPerPage(Integer perPage) {
this.perPage = perPage;
return this;
}
/** Get perPage */
@javax.annotation.Nullable
public Integer getPerPage() {
return perPage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1FacetParameters v1FacetParameters = (V1FacetParameters) o;
return (
Objects.equals(this.searchParams, v1FacetParameters.searchParams) &&
Objects.equals(this.pattern, v1FacetParameters.pattern) &&
Objects.equals(this.page, v1FacetParameters.page) &&
Objects.equals(this.perPage, v1FacetParameters.perPage)
);
}
@Override
public int hashCode() {
return Objects.hash(searchParams, pattern, page, perPage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1FacetParameters {\n");
sb.append(" searchParams: ").append(toIndentedString(searchParams)).append("\n");
sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" perPage: ").append(toIndentedString(perPage)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}