com.huaweicloud.sdk.aom.v3.model.WaterfallPageListParam Maven / Gradle / Ivy
package com.huaweicloud.sdk.aom.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* WaterfallPageListParam
*/
public class WaterfallPageListParam {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "marker")
private String marker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
public WaterfallPageListParam withMarker(String marker) {
this.marker = marker;
return this;
}
/**
* 页面的分页标志位,为分页的最后一条记录的id
* @return marker
*/
public String getMarker() {
return marker;
}
public void setMarker(String marker) {
this.marker = marker;
}
public WaterfallPageListParam withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 查询返回记录的数量限制。limit可以为空,如果值小于1或者大于100,则会使用默认值100
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
WaterfallPageListParam that = (WaterfallPageListParam) obj;
return Objects.equals(this.marker, that.marker) && Objects.equals(this.limit, that.limit);
}
@Override
public int hashCode() {
return Objects.hash(marker, limit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WaterfallPageListParam {\n");
sb.append(" marker: ").append(toIndentedString(marker)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).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 ");
}
}