com.katalon.testops.model.SearchRequestPagination Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-client-openapi Show documentation
Show all versions of testops-client-openapi Show documentation
Katalon TestOps Client generated by OpenAPI
/*
* Katalon TestOps API reference
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* 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.katalon.testops.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.katalon.testops.model.SearchRequestSortOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* SearchRequestPagination
*/
public class SearchRequestPagination {
@JsonProperty("page")
private Integer page = null;
@JsonProperty("size")
private Integer size = null;
@JsonProperty("sorts")
private List sorts = null;
public SearchRequestPagination page(Integer page) {
this.page = page;
return this;
}
/**
* Get page
* @return page
**/
@Schema(description = "")
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public SearchRequestPagination size(Integer size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@Schema(description = "")
public Integer getSize() {
return size;
}
public void setSize(Integer size) {
this.size = size;
}
public SearchRequestPagination sorts(List sorts) {
this.sorts = sorts;
return this;
}
public SearchRequestPagination addSortsItem(SearchRequestSortOrder sortsItem) {
if (this.sorts == null) {
this.sorts = new ArrayList();
}
this.sorts.add(sortsItem);
return this;
}
/**
* Get sorts
* @return sorts
**/
@Schema(description = "")
public List getSorts() {
return sorts;
}
public void setSorts(List sorts) {
this.sorts = sorts;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchRequestPagination searchRequestPagination = (SearchRequestPagination) o;
return Objects.equals(this.page, searchRequestPagination.page) &&
Objects.equals(this.size, searchRequestPagination.size) &&
Objects.equals(this.sorts, searchRequestPagination.sorts);
}
@Override
public int hashCode() {
return Objects.hash(page, size, sorts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchRequestPagination {\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" sorts: ").append(toIndentedString(sorts)).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 ");
}
}