com.katalon.testops.model.PageProjectResource 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.Pageable;
import com.katalon.testops.model.ProjectResource;
import com.katalon.testops.model.Sort;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* PageProjectResource
*/
public class PageProjectResource {
@JsonProperty("totalElements")
private Long totalElements = null;
@JsonProperty("totalPages")
private Integer totalPages = null;
@JsonProperty("first")
private Boolean first = null;
@JsonProperty("sort")
private Sort sort = null;
@JsonProperty("size")
private Integer size = null;
@JsonProperty("content")
private List content = null;
@JsonProperty("number")
private Integer number = null;
@JsonProperty("numberOfElements")
private Integer numberOfElements = null;
@JsonProperty("pageable")
private Pageable pageable = null;
@JsonProperty("last")
private Boolean last = null;
@JsonProperty("empty")
private Boolean empty = null;
public PageProjectResource totalElements(Long totalElements) {
this.totalElements = totalElements;
return this;
}
/**
* Get totalElements
* @return totalElements
**/
@Schema(description = "")
public Long getTotalElements() {
return totalElements;
}
public void setTotalElements(Long totalElements) {
this.totalElements = totalElements;
}
public PageProjectResource totalPages(Integer totalPages) {
this.totalPages = totalPages;
return this;
}
/**
* Get totalPages
* @return totalPages
**/
@Schema(description = "")
public Integer getTotalPages() {
return totalPages;
}
public void setTotalPages(Integer totalPages) {
this.totalPages = totalPages;
}
public PageProjectResource first(Boolean first) {
this.first = first;
return this;
}
/**
* Get first
* @return first
**/
@Schema(description = "")
public Boolean isFirst() {
return first;
}
public void setFirst(Boolean first) {
this.first = first;
}
public PageProjectResource sort(Sort sort) {
this.sort = sort;
return this;
}
/**
* Get sort
* @return sort
**/
@Schema(description = "")
public Sort getSort() {
return sort;
}
public void setSort(Sort sort) {
this.sort = sort;
}
public PageProjectResource 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 PageProjectResource content(List content) {
this.content = content;
return this;
}
public PageProjectResource addContentItem(ProjectResource contentItem) {
if (this.content == null) {
this.content = new ArrayList();
}
this.content.add(contentItem);
return this;
}
/**
* Get content
* @return content
**/
@Schema(description = "")
public List getContent() {
return content;
}
public void setContent(List content) {
this.content = content;
}
public PageProjectResource number(Integer number) {
this.number = number;
return this;
}
/**
* Get number
* @return number
**/
@Schema(description = "")
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public PageProjectResource numberOfElements(Integer numberOfElements) {
this.numberOfElements = numberOfElements;
return this;
}
/**
* Get numberOfElements
* @return numberOfElements
**/
@Schema(description = "")
public Integer getNumberOfElements() {
return numberOfElements;
}
public void setNumberOfElements(Integer numberOfElements) {
this.numberOfElements = numberOfElements;
}
public PageProjectResource pageable(Pageable pageable) {
this.pageable = pageable;
return this;
}
/**
* Get pageable
* @return pageable
**/
@Schema(description = "")
public Pageable getPageable() {
return pageable;
}
public void setPageable(Pageable pageable) {
this.pageable = pageable;
}
public PageProjectResource last(Boolean last) {
this.last = last;
return this;
}
/**
* Get last
* @return last
**/
@Schema(description = "")
public Boolean isLast() {
return last;
}
public void setLast(Boolean last) {
this.last = last;
}
public PageProjectResource empty(Boolean empty) {
this.empty = empty;
return this;
}
/**
* Get empty
* @return empty
**/
@Schema(description = "")
public Boolean isEmpty() {
return empty;
}
public void setEmpty(Boolean empty) {
this.empty = empty;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PageProjectResource pageProjectResource = (PageProjectResource) o;
return Objects.equals(this.totalElements, pageProjectResource.totalElements) &&
Objects.equals(this.totalPages, pageProjectResource.totalPages) &&
Objects.equals(this.first, pageProjectResource.first) &&
Objects.equals(this.sort, pageProjectResource.sort) &&
Objects.equals(this.size, pageProjectResource.size) &&
Objects.equals(this.content, pageProjectResource.content) &&
Objects.equals(this.number, pageProjectResource.number) &&
Objects.equals(this.numberOfElements, pageProjectResource.numberOfElements) &&
Objects.equals(this.pageable, pageProjectResource.pageable) &&
Objects.equals(this.last, pageProjectResource.last) &&
Objects.equals(this.empty, pageProjectResource.empty);
}
@Override
public int hashCode() {
return Objects.hash(totalElements, totalPages, first, sort, size, content, number, numberOfElements, pageable, last, empty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PageProjectResource {\n");
sb.append(" totalElements: ").append(toIndentedString(totalElements)).append("\n");
sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n");
sb.append(" first: ").append(toIndentedString(first)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" numberOfElements: ").append(toIndentedString(numberOfElements)).append("\n");
sb.append(" pageable: ").append(toIndentedString(pageable)).append("\n");
sb.append(" last: ").append(toIndentedString(last)).append("\n");
sb.append(" empty: ").append(toIndentedString(empty)).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 ");
}
}