com.huaweicloud.sdk.cloudtest.v1.model.TemplatePageParam Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* TemplatePageParam
*/
public class TemplatePageParam {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "creator_num")
private String creatorNum;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
public TemplatePageParam withCreatorNum(String creatorNum) {
this.creatorNum = creatorNum;
return this;
}
/**
* 创建人ID
* @return creatorNum
*/
public String getCreatorNum() {
return creatorNum;
}
public void setCreatorNum(String creatorNum) {
this.creatorNum = creatorNum;
}
public TemplatePageParam withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 起始偏移量,表示从此偏移量开始查询,offset大于等于0,小于等于100000
* minimum: 0
* maximum: 100000
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public TemplatePageParam withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页显示的条目数量,最大支持200条
* minimum: 1
* maximum: 200
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public TemplatePageParam withName(String name) {
this.name = name;
return this;
}
/**
* 脑图名称
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
TemplatePageParam that = (TemplatePageParam) obj;
return Objects.equals(this.creatorNum, that.creatorNum) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(creatorNum, offset, limit, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TemplatePageParam {\n");
sb.append(" creatorNum: ").append(toIndentedString(creatorNum)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).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 ");
}
}