com.huaweicloud.sdk.cloudtest.v1.model.ShowTestCaseDetailV2Request 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 ShowTestCaseDetailV2Request {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "project_id")
private String projectId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "testcase_number")
private String testcaseNumber;
public ShowTestCaseDetailV2Request withProjectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* 项目唯一标识,固定长度32位字符
* @return projectId
*/
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public ShowTestCaseDetailV2Request withTestcaseNumber(String testcaseNumber) {
this.testcaseNumber = testcaseNumber;
return this;
}
/**
* 用例编号,长度为[3-128]位字符
* @return testcaseNumber
*/
public String getTestcaseNumber() {
return testcaseNumber;
}
public void setTestcaseNumber(String testcaseNumber) {
this.testcaseNumber = testcaseNumber;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ShowTestCaseDetailV2Request that = (ShowTestCaseDetailV2Request) obj;
return Objects.equals(this.projectId, that.projectId)
&& Objects.equals(this.testcaseNumber, that.testcaseNumber);
}
@Override
public int hashCode() {
return Objects.hash(projectId, testcaseNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShowTestCaseDetailV2Request {\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" testcaseNumber: ").append(toIndentedString(testcaseNumber)).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 ");
}
}