
com.huaweicloud.sdk.functiongraph.v2.model.PageInfo Maven / Gradle / Ivy
package com.huaweicloud.sdk.functiongraph.v2.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 Long nextMarker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "previous_marker")
private Long previousMarker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "current_count")
private Long currentCount;
public PageInfo withNextMarker(Long nextMarker) {
this.nextMarker = nextMarker;
return this;
}
/** 返回下一页查询地址。 minimum: 0
*
* @return nextMarker */
public Long getNextMarker() {
return nextMarker;
}
public void setNextMarker(Long nextMarker) {
this.nextMarker = nextMarker;
}
public PageInfo withPreviousMarker(Long previousMarker) {
this.previousMarker = previousMarker;
return this;
}
/** 返回前一页查询地址。 minimum: 0
*
* @return previousMarker */
public Long getPreviousMarker() {
return previousMarker;
}
public void setPreviousMarker(Long previousMarker) {
this.previousMarker = previousMarker;
}
public PageInfo withCurrentCount(Long currentCount) {
this.currentCount = currentCount;
return this;
}
/** 本页返回条目数量。 minimum: 0
*
* @return currentCount */
public Long getCurrentCount() {
return currentCount;
}
public void setCurrentCount(Long currentCount) {
this.currentCount = currentCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PageInfo pageInfo = (PageInfo) o;
return Objects.equals(this.nextMarker, pageInfo.nextMarker)
&& Objects.equals(this.previousMarker, pageInfo.previousMarker)
&& Objects.equals(this.currentCount, pageInfo.currentCount);
}
@Override
public int hashCode() {
return Objects.hash(nextMarker, previousMarker, currentCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PageInfo {\n");
sb.append(" nextMarker: ").append(toIndentedString(nextMarker)).append("\n");
sb.append(" previousMarker: ").append(toIndentedString(previousMarker)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy