com.huaweicloud.sdk.cloudtest.v1.model.ShowApiTestcaseHistoriesRequest 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;
/**
* Request Object
*/
public class ShowApiTestcaseHistoriesRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "testcase_id")
private String testcaseId;
@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 = "plan_id")
private String planId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "project_id")
private String projectId;
public ShowApiTestcaseHistoriesRequest withTestcaseId(String testcaseId) {
this.testcaseId = testcaseId;
return this;
}
/**
* 测试用例id
* @return testcaseId
*/
public String getTestcaseId() {
return testcaseId;
}
public void setTestcaseId(String testcaseId) {
this.testcaseId = testcaseId;
}
public ShowApiTestcaseHistoriesRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 起始偏移量,表示从此偏移量开始查询, offset大于等于1
* minimum: 1
* maximum: 2147483647
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ShowApiTestcaseHistoriesRequest 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 ShowApiTestcaseHistoriesRequest withPlanId(String planId) {
this.planId = planId;
return this;
}
/**
* 测试计划id
* @return planId
*/
public String getPlanId() {
return planId;
}
public void setPlanId(String planId) {
this.planId = planId;
}
public ShowApiTestcaseHistoriesRequest withProjectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* 项目ID,固定长度32位字符(字母和数字)。
* @return projectId
*/
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowApiTestcaseHistoriesRequest that = (ShowApiTestcaseHistoriesRequest) obj;
return Objects.equals(this.testcaseId, that.testcaseId) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.limit, that.limit) && Objects.equals(this.planId, that.planId)
&& Objects.equals(this.projectId, that.projectId);
}
@Override
public int hashCode() {
return Objects.hash(testcaseId, offset, limit, planId, projectId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowApiTestcaseHistoriesRequest {\n");
sb.append(" testcaseId: ").append(toIndentedString(testcaseId)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" planId: ").append(toIndentedString(planId)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).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 ");
}
}