com.huaweicloud.sdk.geip.v3.model.ListGlobalEipsResponseBodyPageInfo Maven / Gradle / Ivy
package com.huaweicloud.sdk.geip.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 分页页码信息
*/
public class ListGlobalEipsResponseBodyPageInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "next_marker")
private String nextMarker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "previous_marker")
private String previousMarker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "current_count")
private Integer currentCount;
public ListGlobalEipsResponseBodyPageInfo withNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
return this;
}
/**
* 翻页时,作为后一页的marker取值
* @return nextMarker
*/
public String getNextMarker() {
return nextMarker;
}
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
public ListGlobalEipsResponseBodyPageInfo withPreviousMarker(String previousMarker) {
this.previousMarker = previousMarker;
return this;
}
/**
* 翻页时,作为前一页的marker取值
* @return previousMarker
*/
public String getPreviousMarker() {
return previousMarker;
}
public void setPreviousMarker(String previousMarker) {
this.previousMarker = previousMarker;
}
public ListGlobalEipsResponseBodyPageInfo withCurrentCount(Integer currentCount) {
this.currentCount = currentCount;
return this;
}
/**
* 当前页的数据总数
* @return currentCount
*/
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;
}
ListGlobalEipsResponseBodyPageInfo that = (ListGlobalEipsResponseBodyPageInfo) obj;
return Objects.equals(this.nextMarker, that.nextMarker)
&& Objects.equals(this.previousMarker, that.previousMarker)
&& Objects.equals(this.currentCount, that.currentCount);
}
@Override
public int hashCode() {
return Objects.hash(nextMarker, previousMarker, currentCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListGlobalEipsResponseBodyPageInfo {\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 ");
}
}