com.g42cloud.sdk.er.v3.model.PageInfo Maven / Gradle / Ivy
The newest version!
package com.g42cloud.sdk.er.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 分页查询的信息
*/
public class PageInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "next_marker")
private String nextMarker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "current_count")
private Integer currentCount;
public PageInfo withNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
return this;
}
public String getNextMarker() {
return nextMarker;
}
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
public PageInfo withCurrentCount(Integer currentCount) {
this.currentCount = currentCount;
return this;
}
public Integer getCurrentCount() {
return currentCount;
}
public void setCurrentCount(Integer currentCount) {
this.currentCount = currentCount;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
PageInfo that = (PageInfo) obj;
return Objects.equals(this.nextMarker, that.nextMarker) && Objects.equals(this.currentCount, that.currentCount);
}
@Override
public int hashCode() {
return Objects.hash(nextMarker, currentCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PageInfo {\n");
sb.append(" nextMarker: ").append(toIndentedString(nextMarker)).append("\n");
sb.append(" currentCount: ").append(toIndentedString(currentCount)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}