com.huaweicloud.sdk.cloudtest.v1.model.ListTestCasesRequestBody 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;
/**
* ListTestCasesRequestBody
*/
public class ListTestCasesRequestBody {
@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 = "execution_type_id")
private Integer executionTypeId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "version_id")
private String versionId;
public ListTestCasesRequestBody 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 ListTestCasesRequestBody 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 ListTestCasesRequestBody withExecutionTypeId(Integer executionTypeId) {
this.executionTypeId = executionTypeId;
return this;
}
/**
* 用例测试执行方式ID
* @return executionTypeId
*/
public Integer getExecutionTypeId() {
return executionTypeId;
}
public void setExecutionTypeId(Integer executionTypeId) {
this.executionTypeId = executionTypeId;
}
public ListTestCasesRequestBody withVersionId(String versionId) {
this.versionId = versionId;
return this;
}
/**
* 分支/测试计划ID,长度11-34位字符(字母和数字)。
* @return versionId
*/
public String getVersionId() {
return versionId;
}
public void setVersionId(String versionId) {
this.versionId = versionId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListTestCasesRequestBody that = (ListTestCasesRequestBody) obj;
return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit)
&& Objects.equals(this.executionTypeId, that.executionTypeId)
&& Objects.equals(this.versionId, that.versionId);
}
@Override
public int hashCode() {
return Objects.hash(offset, limit, executionTypeId, versionId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListTestCasesRequestBody {\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" executionTypeId: ").append(toIndentedString(executionTypeId)).append("\n");
sb.append(" versionId: ").append(toIndentedString(versionId)).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 ");
}
}