com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseReviewsRequest 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 ShowTestCaseReviewsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "project_uuid")
private String projectUuid;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "version_uri")
private String versionUri;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_no")
private Integer pageNo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_size")
private Integer pageSize;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "testcase_uri")
private String testcaseUri;
public ShowTestCaseReviewsRequest withProjectUuid(String projectUuid) {
this.projectUuid = projectUuid;
return this;
}
/**
* 项目id
* @return projectUuid
*/
public String getProjectUuid() {
return projectUuid;
}
public void setProjectUuid(String projectUuid) {
this.projectUuid = projectUuid;
}
public ShowTestCaseReviewsRequest withVersionUri(String versionUri) {
this.versionUri = versionUri;
return this;
}
/**
* 版本URI
* @return versionUri
*/
public String getVersionUri() {
return versionUri;
}
public void setVersionUri(String versionUri) {
this.versionUri = versionUri;
}
public ShowTestCaseReviewsRequest withPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
/**
* 当前页数
* minimum: 1
* @return pageNo
*/
public Integer getPageNo() {
return pageNo;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public ShowTestCaseReviewsRequest withPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 每页条数
* minimum: 1
* @return pageSize
*/
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public ShowTestCaseReviewsRequest withTestcaseUri(String testcaseUri) {
this.testcaseUri = testcaseUri;
return this;
}
/**
* 分支用例URI
* @return testcaseUri
*/
public String getTestcaseUri() {
return testcaseUri;
}
public void setTestcaseUri(String testcaseUri) {
this.testcaseUri = testcaseUri;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowTestCaseReviewsRequest that = (ShowTestCaseReviewsRequest) obj;
return Objects.equals(this.projectUuid, that.projectUuid) && Objects.equals(this.versionUri, that.versionUri)
&& Objects.equals(this.pageNo, that.pageNo) && Objects.equals(this.pageSize, that.pageSize)
&& Objects.equals(this.testcaseUri, that.testcaseUri);
}
@Override
public int hashCode() {
return Objects.hash(projectUuid, versionUri, pageNo, pageSize, testcaseUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowTestCaseReviewsRequest {\n");
sb.append(" projectUuid: ").append(toIndentedString(projectUuid)).append("\n");
sb.append(" versionUri: ").append(toIndentedString(versionUri)).append("\n");
sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" testcaseUri: ").append(toIndentedString(testcaseUri)).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 ");
}
}