com.clinia.model.common.V1ListResponseMeta 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;
/** V1ListResponseMeta */
public class V1ListResponseMeta {
@JsonProperty("numPages")
private Integer numPages;
@JsonProperty("page")
private Integer page;
@JsonProperty("perPage")
private Integer perPage;
@JsonProperty("total")
private Integer total;
public V1ListResponseMeta setNumPages(Integer numPages) {
this.numPages = numPages;
return this;
}
/** Get numPages */
@javax.annotation.Nonnull
public Integer getNumPages() {
return numPages;
}
public V1ListResponseMeta setPage(Integer page) {
this.page = page;
return this;
}
/** Get page */
@javax.annotation.Nonnull
public Integer getPage() {
return page;
}
public V1ListResponseMeta setPerPage(Integer perPage) {
this.perPage = perPage;
return this;
}
/** Get perPage */
@javax.annotation.Nonnull
public Integer getPerPage() {
return perPage;
}
public V1ListResponseMeta setTotal(Integer total) {
this.total = total;
return this;
}
/** Get total */
@javax.annotation.Nonnull
public Integer getTotal() {
return total;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListResponseMeta v1ListResponseMeta = (V1ListResponseMeta) o;
return (
Objects.equals(this.numPages, v1ListResponseMeta.numPages) &&
Objects.equals(this.page, v1ListResponseMeta.page) &&
Objects.equals(this.perPage, v1ListResponseMeta.perPage) &&
Objects.equals(this.total, v1ListResponseMeta.total)
);
}
@Override
public int hashCode() {
return Objects.hash(numPages, page, perPage, total);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListResponseMeta {\n");
sb.append(" numPages: ").append(toIndentedString(numPages)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).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 ");
}
}