com.katalon.testops.model.PageTeamResource 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.Sort;
import com.katalon.testops.model.TeamResource;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* PageTeamResource
*/
public class PageTeamResource {
@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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource content(List content) {
this.content = content;
return this;
}
public PageTeamResource addContentItem(TeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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 PageTeamResource 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;
}
PageTeamResource pageTeamResource = (PageTeamResource) o;
return Objects.equals(this.totalElements, pageTeamResource.totalElements) &&
Objects.equals(this.totalPages, pageTeamResource.totalPages) &&
Objects.equals(this.first, pageTeamResource.first) &&
Objects.equals(this.sort, pageTeamResource.sort) &&
Objects.equals(this.size, pageTeamResource.size) &&
Objects.equals(this.content, pageTeamResource.content) &&
Objects.equals(this.number, pageTeamResource.number) &&
Objects.equals(this.numberOfElements, pageTeamResource.numberOfElements) &&
Objects.equals(this.pageable, pageTeamResource.pageable) &&
Objects.equals(this.last, pageTeamResource.last) &&
Objects.equals(this.empty, pageTeamResource.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 PageTeamResource {\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 ");
}
}